Debian Codegraph @

wxcrafter/src/import_from_wxSmith.h

raw
1 #ifndef IMPORTFROMSMITH_H
2 #define IMPORTFROMSMITH_H
3
4 #include "import_dlg.h"
5 #include "wxc_widget.h"
6 #include "wxgui_defs.h"
7 #include <map>
8
9 class wxWindow;
10 class NotebookPageWrapper;
11
12 class ImportFromwxSmith
13 {
14 static std::map<wxString, wxString> sm_eventMap;
15 wxWindow* m_Parent;
16 bool m_loadWhenDone;
17
18 public:
19 ImportFromwxSmith(wxWindow* parent);
20 ~ImportFromwxSmith();
21
22 bool ImportProject(ImportDlg::ImportFileData& data, const wxString& sourceFile = "") const;
23 bool GetProject() const;
24
25 bool IsLoadWhenDone() const { return m_loadWhenDone; }
26
27 protected:
28 bool ParseFile(wxXmlDocument& doc, wxcWidget::List_t& toplevels) const;
29 wxcWidget* ParseNode(wxXmlNode* node, wxcWidget* parentwrapper, bool& alreadyParented) const;
30 void GetSizeritemContents(const wxXmlNode* node, wxcWidget* wrapper) const;
31 void GetGridBagSizerData(const wxXmlNode* node, wxcWidget* wrapper) const;
32 void GetBookitemContents(const wxXmlNode* node, NotebookPageWrapper* wrapper, int& depth) const;
33 };
34
35 #endif // IMPORTFROMSMITH_H