]> git.saurik.com Git - wxWidgets.git/blob - utils/configtool/src/configitemselector.h
Clipboard usage fixes inspired by Tinderbox logs.
[wxWidgets.git] / utils / configtool / src / configitemselector.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: configitemselector.h
3 // Purpose: Selector for one or more config items
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 2003-06-04
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence:
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _CONFIGITEMSELECTOR_H_
13 #define _CONFIGITEMSELECTOR_H_
14
15 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "configitemselector.cpp"
17 #endif
18
19 /*!
20 * Includes
21 */
22
23 ////@begin includes
24
25 #include "wx/intl.h"
26 #include "wx/dialog.h"
27
28 ////@end includes
29
30 /*!
31 * Forward declarations
32 */
33
34 ////@begin forward declarations
35 ////@end forward declarations
36
37 /*!
38 * Control identifiers
39 */
40
41 ////@begin control identifiers
42 #define ID_DIALOG 10000
43 #define ID_AVAILABLE_CONFIG_ITEMS 10002
44 #define ID_CONFIG_ITEMS 10005
45 #define ID_CONFIG_ADD 10006
46 #define ID_CONFIG_REMOVE 10007
47 ////@end control identifiers
48
49 class ctConfigItem;
50
51 /*!
52 * ctConfigItemsSelector class declaration
53 */
54
55 class ctConfigItemsSelector: public wxDialog
56 {
57 public:
58 /// Constructor
59 ctConfigItemsSelector( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& caption = _("Configuration Items Selector"));
60
61 /// Creates the controls and sizers
62 void CreateControls();
63
64 ////@begin ctConfigItemsSelector event handler declarations
65
66 /// Event handler for ID_CONFIG_ADD
67 void OnConfigAdd( wxCommandEvent& event );
68
69 /// Update event handler for ID_CONFIG_ADD
70 void OnUpdateConfigAdd( wxUpdateUIEvent& event );
71
72 /// Event handler for ID_CONFIG_REMOVE
73 void OnConfigRemove( wxCommandEvent& event );
74
75 /// Update event handler for ID_CONFIG_REMOVE
76 void OnUpdateConfigRemove( wxUpdateUIEvent& event );
77
78 /// Event handler for wxID_OK
79 void OnOk( wxCommandEvent& event );
80
81 ////@end ctConfigItemsSelector event handler declarations
82
83 ////@begin ctConfigItemsSelector member function declarations
84
85 ////@end ctConfigItemsSelector member function declarations
86
87 /// Initialise the master list
88 void InitSourceConfigList(ctConfigItem* item = NULL);
89
90 /// Set the initial list
91 void SetConfigList(const wxArrayString& items);
92
93 /// Get the list
94 const wxArrayString& GetConfigList() const { return m_configItems; }
95
96 /// Should we show tooltips?
97 static bool ShowToolTips();
98
99 DECLARE_CLASS( ctConfigItemsSelector )
100 DECLARE_EVENT_TABLE()
101
102 protected:
103 wxArrayString m_configItems;
104
105 };
106
107 #endif
108 // _CONFIGITEMSELECTOR_H_