Code::Blocks  SVN r11506
xtra_res.h
Go to the documentation of this file.
1 /*
2  * This file is part of the Code::Blocks IDE and licensed under the GNU Lesser General Public License, version 3
3  * http://www.gnu.org/licenses/lgpl-3.0.html
4  */
5 
6 #ifndef XTRA_RES_H
7 #define XTRA_RES_H
8 
9 #include <wx/xrc/xmlres.h>
10 #include <wx/xrc/xh_dlg.h>
11 #include <wx/toolbar.h>
12 
13 #include "settings.h" // DLLIMPORT
14 
16 
18 {
19  public:
21  wxObject *DoCreateResource() override;
22  bool CanHandle(wxXmlNode *node) override;
23 
24  protected:
25  bool m_isInside;
26  bool m_isAddon;
28 
29  wxBitmap GetCenteredBitmap(const wxString& param = wxT("bitmap"),
30  const wxArtClient& defaultArtClient = wxART_OTHER,
31  wxSize size = wxDefaultSize);
32 };
33 
34 class DLLIMPORT wxScrollingDialogXmlHandler : public wxDialogXmlHandler
35 {
36  DECLARE_DYNAMIC_CLASS(wxScrollingDialogXmlHandler)
37 
38 public:
40  wxObject *DoCreateResource() override;
41  bool CanHandle(wxXmlNode *node) override;
42 };
43 
44 #endif
virtual bool CanHandle(wxXmlNode *node)=0
#define wxT(string)
virtual wxObject * DoCreateResource()=0
#define DLLIMPORT
Definition: settings.h:16
wxToolBar * m_toolbar
Definition: xtra_res.h:27