1 /////////////////////////////////////////////////////////////////////////////
2 // Name: configbrowser.h
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _CONFIGBROWSER_H_
13 #define _CONFIGBROWSER_H_
23 * Forward declarations
26 ////@begin forward declarations
27 class ctConfigurationBrowserControlPanel
;
28 ////@end forward declarations
34 ////@begin control identifiers
35 #define ID_DIALOG 2000
36 #define ID_CONFIGBROWSER_SPLITTERWINDOW 2001
37 #define ID_CONFIGURATION_BROWSER_TREECTRL 2002
39 #define ID_ADD_CONFIGURATION 2004
40 #define ID_REMOVE_CONFIGURATION 2005
41 #define ID_RENAME_CONFIGURATION 2006
42 #define ID_CONFIGURATION_NAME 2007
43 #define ID_CONFIGURATION_DESCRIPTION 2008
44 ////@end control identifiers
47 * ctConfigurationBrowserWindow class declaration
50 class ctConfigurationBrowserWindow
: public wxPanel
52 DECLARE_CLASS( ctConfigurationBrowserWindow
)
57 ctConfigurationBrowserWindow( wxWindow
* parent
, wxWindowID id
= -1, const wxPoint
& pos
= wxDefaultPosition
, const wxSize
& size
= wxDefaultSize
, long style
= wxCAPTION
|wxRESIZE_BORDER
|wxSYSTEM_MENU
|wxNO_FULL_REPAINT_ON_RESIZE
|wxCLIP_CHILDREN
);
59 /// Creates the controls and sizers
60 void CreateControls();
62 ////@begin ctConfigurationBrowserWindow event handler declarations
64 /// Event handler for ID_CONFIGURATION_BROWSER_TREECTRL
65 void OnConfigurationBrowserTreectrl( wxTreeEvent
& event
);
67 ////@end ctConfigurationBrowserWindow event handler declarations
69 ////@begin ctConfigurationBrowserWindow member function declarations
71 ////@end ctConfigurationBrowserWindow member function declarations
73 /// Should we show tooltips?
74 static bool ShowToolTips();
76 ////@begin ctConfigurationBrowserWindow member variables
77 ////@end ctConfigurationBrowserWindow member variables
81 * ctConfigurationBrowserControlPanel class declaration
84 class ctConfigurationBrowserControlPanel
: public wxPanel
86 DECLARE_CLASS( ctConfigurationBrowserControlPanel
)
91 ctConfigurationBrowserControlPanel( wxWindow
* parent
, wxWindowID id
= -1, const wxPoint
& pos
= wxDefaultPosition
, const wxSize
& size
= wxDefaultSize
, long style
= wxNO_BORDER
|wxTAB_TRAVERSAL
);
93 /// Creates the controls and sizers
94 void CreateControls();
96 ////@begin ctConfigurationBrowserControlPanel event handler declarations
98 /// Event handler for ID_ADD_CONFIGURATION
99 void OnAddConfiguration( wxCommandEvent
& event
);
101 /// Update event handler for ID_ADD_CONFIGURATION
102 void OnUpdateAddConfiguration( wxUpdateUIEvent
& event
);
104 /// Event handler for ID_REMOVE_CONFIGURATION
105 void OnRemoveConfiguration( wxCommandEvent
& event
);
107 /// Update event handler for ID_REMOVE_CONFIGURATION
108 void OnUpdateRemoveConfiguration( wxUpdateUIEvent
& event
);
110 /// Event handler for ID_RENAME_CONFIGURATION
111 void OnRenameConfiguration( wxCommandEvent
& event
);
113 /// Update event handler for ID_RENAME_CONFIGURATION
114 void OnUpdateRenameConfiguration( wxUpdateUIEvent
& event
);
116 ////@end ctConfigurationBrowserControlPanel event handler declarations
118 ////@begin ctConfigurationBrowserControlPanel member function declarations
120 ////@end ctConfigurationBrowserControlPanel member function declarations
122 /// Should we show tooltips?
123 static bool ShowToolTips();
125 ////@begin ctConfigurationBrowserControlPanel member variables
126 ////@end ctConfigurationBrowserControlPanel member variables