23 #include "wxgis/framework/framework.h"
24 #include "wxgis/core/app.h"
25 #include "wxgis/framework/commandbar.h"
26 #include "wxgis/framework/menubar.h"
28 #include <wx/window.h>
29 #include <wx/dynarray.h>
43 ID_PLUGINCMD = wxID_HIGHEST + 2001,
44 ID_PLUGINCMDMAX = ID_PLUGINCMD + 255,
45 ID_TOOLBARCMD = ID_PLUGINCMDMAX + 1,
46 ID_TOOLBARCMDMAX = ID_TOOLBARCMD + 255,
47 ID_MENUCMD = ID_TOOLBARCMDMAX + 1,
48 ID_MENUCMDMAX = ID_MENUCMD + 255
57 typedef wxArrayInt WINDOWARRAY;
71 virtual wxGISCommandBarPtrArray GetCommandBars(
void)
const;
72 virtual wxCommandPtrArray GetCommands(
void)
const;
76 virtual void Customize(
void){};
77 virtual void FitToolbars(
void){};
78 virtual void OptimizeToolbars(
void){};
79 virtual wxIcon GetAppIcon(
void){
return wxNullIcon;};
81 virtual wxGISCommand* GetCommand(
const wxString &sCmdName,
unsigned char nCmdSubType)
const;
83 virtual void ShowStatusBar(
bool bShow){};
84 virtual bool IsStatusBarShown(
void){
return false;};
85 virtual void ShowToolBarMenu(
void){};
87 virtual void ShowApplicationWindow(wxWindow* pWnd,
bool bShow =
true){};
88 virtual bool IsApplicationWindowShown(wxWindow* pWnd){
return true;};
89 virtual WINDOWARRAY GetChildWindows(
void)
const{
return m_anWindowsIDs;};
90 virtual void RegisterChildWindow(wxWindowID nWndID);
91 virtual void UnRegisterChildWindow(wxWindowID nWndID);
92 virtual wxWindow* GetRegisteredWindowByType(
const wxClassInfo * info)
const;
95 virtual wxString GetAppName(
void)
const{
return wxEmptyString;};
96 virtual wxString GetAppVersionString(
void)
const{
return wxEmptyString;};
97 virtual void OnAppAbout(
void){};
98 virtual void OnAppOptions(
void){};
99 virtual bool CreateApp(
void);
100 virtual bool SetupLog(
const wxString &sLogPath,
const wxString &sNamePrefix = wxEmptyString){
return true;};
101 virtual bool SetupLoc(
const wxString &sLoc,
const wxString &sLocPath){
return true;};
102 virtual wxString GetDecimalPoint(
void)
const {
return wxLocale::GetInfo(wxLOCALE_DECIMAL_POINT, wxLOCALE_CAT_NUMBER);};
103 virtual bool SetupSys(
const wxString &sSysPath){
return true;};
104 virtual void SetDebugMode(
bool bDebugMode){};
106 virtual void OnMouseDown(wxMouseEvent& event);
107 virtual void OnMouseUp(wxMouseEvent& event);
108 virtual void OnMouseDoubleClick(wxMouseEvent& event);
109 virtual void OnMouseMove(wxMouseEvent& event);
111 virtual void LoadCommands(wxXmlNode* pRootNode);
112 virtual void LoadMenues(wxXmlNode* pRootNode);
114 wxCommandPtrArray m_CommandArray;
115 wxGISCommandBarPtrArray m_CommandBarArray;
116 ITool* m_CurrentTool;
118 WINDOWARRAY m_anWindowsIDs;
127 void WXDLLIMPEXP_GIS_FRW wxGISErrorMessageBox(
const wxString& sAppErr,
const wxString &sLibError = wxEmptyString,
const wxString &sLibErrorPrepend = wxEmptyString);
Definition: applicationbase.h:65
Definition: commandbar.h:60
Definition: statusbar.h:58