Added first cut wxWindows Configuration Tool
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21083 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
104
utils/configtool/src/configitemselector.h
Normal file
104
utils/configtool/src/configitemselector.h
Normal file
@@ -0,0 +1,104 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: configitemselector.h
|
||||
// Purpose: Selector for one or more config items
|
||||
// Author: Julian Smart
|
||||
// Modified by:
|
||||
// Created: 2003-06-04
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) Julian Smart
|
||||
// Licence:
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _CONFIGITEMSELECTOR_H_
|
||||
#define _CONFIGITEMSELECTOR_H_
|
||||
|
||||
#ifdef __GNUG__
|
||||
#pragma interface configitemselector.h
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* Includes
|
||||
*/
|
||||
|
||||
////@begin includes
|
||||
////@end includes
|
||||
|
||||
/*!
|
||||
* Forward declarations
|
||||
*/
|
||||
|
||||
////@begin forward declarations
|
||||
////@end forward declarations
|
||||
|
||||
/*!
|
||||
* Control identifiers
|
||||
*/
|
||||
|
||||
////@begin control identifiers
|
||||
#define ID_DIALOG 10000
|
||||
#define ID_AVAILABLE_CONFIG_ITEMS 10002
|
||||
#define ID_CONFIG_ITEMS 10005
|
||||
#define ID_CONFIG_ADD 10006
|
||||
#define ID_CONFIG_REMOVE 10007
|
||||
////@end control identifiers
|
||||
|
||||
class ctConfigItem;
|
||||
|
||||
/*!
|
||||
* ctConfigItemsSelector class declaration
|
||||
*/
|
||||
|
||||
class ctConfigItemsSelector: public wxDialog
|
||||
{
|
||||
public:
|
||||
/// Constructor
|
||||
ctConfigItemsSelector( wxWindow* parent, wxWindowID id = -1, const wxString& caption = _("Configuration Items Selector"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU );
|
||||
|
||||
/// Creates the controls and sizers
|
||||
void CreateControls();
|
||||
|
||||
////@begin ctConfigItemsSelector event handler declarations
|
||||
|
||||
/// Event handler for ID_CONFIG_ADD
|
||||
void OnConfigAdd( wxCommandEvent& event );
|
||||
|
||||
/// Update event handler for ID_CONFIG_ADD
|
||||
void OnUpdateConfigAdd( wxUpdateUIEvent& event );
|
||||
|
||||
/// Event handler for ID_CONFIG_REMOVE
|
||||
void OnConfigRemove( wxCommandEvent& event );
|
||||
|
||||
/// Update event handler for ID_CONFIG_REMOVE
|
||||
void OnUpdateConfigRemove( wxUpdateUIEvent& event );
|
||||
|
||||
/// Event handler for wxID_OK
|
||||
void OnOk( wxCommandEvent& event );
|
||||
|
||||
////@end ctConfigItemsSelector event handler declarations
|
||||
|
||||
////@begin ctConfigItemsSelector member function declarations
|
||||
|
||||
////@end ctConfigItemsSelector member function declarations
|
||||
|
||||
/// Initialise the master list
|
||||
void InitSourceConfigList(ctConfigItem* item = NULL);
|
||||
|
||||
/// Set the initial list
|
||||
void SetConfigList(const wxArrayString& items);
|
||||
|
||||
/// Get the list
|
||||
const wxArrayString& GetConfigList() const { return m_configItems; }
|
||||
|
||||
/// Should we show tooltips?
|
||||
static bool ShowToolTips();
|
||||
|
||||
DECLARE_CLASS( ctConfigItemsSelector )
|
||||
DECLARE_EVENT_TABLE()
|
||||
|
||||
protected:
|
||||
wxArrayString m_configItems;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
// _CONFIGITEMSELECTOR_H_
|
||||
Reference in New Issue
Block a user