]> git.saurik.com Git - wxWidgets.git/blame - utils/configtool/src/configitemselector.h
Missing headers.
[wxWidgets.git] / utils / configtool / src / configitemselector.h
CommitLineData
d7463f75
JS
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
71ada1a5 15#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
f8105809 16#pragma interface "configitemselector.cpp"
d7463f75
JS
17#endif
18
19/*!
20 * Includes
21 */
22
23////@begin includes
24////@end includes
25
26/*!
27 * Forward declarations
28 */
29
30////@begin forward declarations
31////@end forward declarations
32
33/*!
34 * Control identifiers
35 */
36
37////@begin control identifiers
38#define ID_DIALOG 10000
39#define ID_AVAILABLE_CONFIG_ITEMS 10002
40#define ID_CONFIG_ITEMS 10005
41#define ID_CONFIG_ADD 10006
42#define ID_CONFIG_REMOVE 10007
43////@end control identifiers
44
45class ctConfigItem;
46
47/*!
48 * ctConfigItemsSelector class declaration
49 */
50
51class ctConfigItemsSelector: public wxDialog
52{
53public:
54 /// Constructor
4fe30bce 55 ctConfigItemsSelector( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& caption = _("Configuration Items Selector"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU );
d7463f75
JS
56
57 /// Creates the controls and sizers
58 void CreateControls();
59
60////@begin ctConfigItemsSelector event handler declarations
61
62 /// Event handler for ID_CONFIG_ADD
63 void OnConfigAdd( wxCommandEvent& event );
64
65 /// Update event handler for ID_CONFIG_ADD
66 void OnUpdateConfigAdd( wxUpdateUIEvent& event );
67
68 /// Event handler for ID_CONFIG_REMOVE
69 void OnConfigRemove( wxCommandEvent& event );
70
71 /// Update event handler for ID_CONFIG_REMOVE
72 void OnUpdateConfigRemove( wxUpdateUIEvent& event );
73
74 /// Event handler for wxID_OK
75 void OnOk( wxCommandEvent& event );
76
77////@end ctConfigItemsSelector event handler declarations
78
79////@begin ctConfigItemsSelector member function declarations
80
81////@end ctConfigItemsSelector member function declarations
82
83 /// Initialise the master list
84 void InitSourceConfigList(ctConfigItem* item = NULL);
85
86 /// Set the initial list
87 void SetConfigList(const wxArrayString& items);
88
89 /// Get the list
90 const wxArrayString& GetConfigList() const { return m_configItems; }
91
92 /// Should we show tooltips?
93 static bool ShowToolTips();
94
95 DECLARE_CLASS( ctConfigItemsSelector )
96 DECLARE_EVENT_TABLE()
97
98protected:
99 wxArrayString m_configItems;
100
101};
102
103#endif
104 // _CONFIGITEMSELECTOR_H_