Debian Codegraph @

wxcrafter/controls/custom_control_wrapper.h

raw
1 #ifndef CUSTOMCONTROLWRAPPER_H
2 #define CUSTOMCONTROLWRAPPER_H
3
4 #include "wxc_settings.h"
5 #include "wxc_widget.h" // Base class: WrapperBase
6
7 class CustomControlWrapper : public wxcWidget
8 {
9 wxString m_templInfoName;
10
11 protected:
12 void DoUpdateEvents();
13
14 public:
15 CustomControlWrapper();
16 virtual ~CustomControlWrapper();
17
18 protected:
19 void DoDeepCopy(const wxcWidget& rhs, enum DuplicatingOptions nametypesToChange,
20 const std::set<wxString>& existingNames, const wxString& chosenName = "",
21 const wxString& chosenInheritedName = "", const wxString& chosenFilename = "");
22
23 public:
24 virtual void Serialize(JSONElement& json) const;
25 virtual void UnSerialize(const JSONElement& json);
26
27 void SetTemplInfoName(const wxString& templInfoName);
28 const wxString& GetTemplInfoName() const { return m_templInfoName; }
29 virtual wxcWidget* Clone() const;
30 virtual wxString CppCtorCode() const;
31 void GetIncludeFile(wxArrayString& headers) const;
32 wxString GetWxClassName() const;
33 virtual void LoadPropertiesFromwxFB(const wxXmlNode* node);
34 void ToXRC(wxString& text, XRC_TYPE type) const;
35 };
36 #endif // CUSTOMCONTROLWRAPPER_H