]>
git.saurik.com Git - wxWidgets.git/blob - utils/configtool/src/custompropertydialog.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: custompropertydialog.h
3 // Purpose: Custom property dialog
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _CUSTOMPROPERTYDIALOG_H_
13 #define _CUSTOMPROPERTYDIALOG_H_
16 #pragma interface "custompropertydialog.cpp"
27 * Forward declarations
30 ////@begin forward declarations
31 ////@end forward declarations
37 ////@begin control identifiers
38 #define ID_CUSTOMPROPERTYDIALOG 10000
39 #define ID_CUSTOMPROPERTYNAME 10003
40 #define ID_CUSTOMPROPERTYTYPE 10002
41 #define ID_CUSTOMPROPERTYEDITORTYPE 10008
42 #define ID_PROPERTY_CHOICES 10001
43 #define ID_PROPERTY_CHOICE_ADD 10005
44 #define ID_PROPERTY_CHOICE_REMOVE 10006
45 #define ID_CUSTOMPROPERTYDESCRIPTION 10004
46 ////@end control identifiers
49 * ctCustomPropertyDialog class declaration
52 class ctCustomPropertyDialog
: public wxDialog
56 ctCustomPropertyDialog( wxWindow
* parent
, wxWindowID id
= -1, const wxString
& caption
= _("Edit Custom Property"), const wxPoint
& pos
= wxDefaultPosition
, const wxSize
& size
= wxDefaultSize
, long style
= wxCAPTION
|wxRESIZE_BORDER
|wxSYSTEM_MENU
);
58 /// Creates the controls and sizers
59 void CreateControls();
61 ////@begin ctCustomPropertyDialog event handler declarations
63 /// Update event handler for ID_PROPERTY_CHOICES
64 void OnUpdatePropertyChoices( wxUpdateUIEvent
& event
);
66 /// Event handler for ID_PROPERTY_CHOICE_ADD
67 void OnPropertyChoiceAdd( wxCommandEvent
& event
);
69 /// Update event handler for ID_PROPERTY_CHOICE_ADD
70 void OnUpdatePropertyChoiceAdd( wxUpdateUIEvent
& event
);
72 /// Event handler for ID_PROPERTY_CHOICE_REMOVE
73 void OnPropertyChoiceRemove( wxCommandEvent
& event
);
75 /// Update event handler for ID_PROPERTY_CHOICE_REMOVE
76 void OnUpdatePropertyChoiceRemove( wxUpdateUIEvent
& event
);
78 ////@end ctCustomPropertyDialog event handler declarations
80 ////@begin ctCustomPropertyDialog member function declarations
82 ////@end ctCustomPropertyDialog member function declarations
84 /// Should we show tooltips?
85 static bool ShowToolTips();
87 void SetPropertyName(const wxString
& name
) { m_name
= name
; }
88 wxString
GetPropertyName() { return m_name
; }
90 void SetPropertyType(const wxString
& type
) { m_type
= type
; }
91 wxString
GetPropertyType() { return m_type
; }
93 void SetEditorType(const wxString
& type
) { m_editorType
= type
; }
94 wxString
GetEditorType() { return m_editorType
; }
96 void SetPropertyDescription(const wxString
& descr
) { m_description
= descr
; }
97 wxString
GetPropertyDescription() { return m_description
; }
99 void SetChoices(const wxArrayString
& choices
) ;
100 wxArrayString
GetChoices() { return m_choices
; }
102 DECLARE_CLASS( ctCustomPropertyDialog
)
103 DECLARE_EVENT_TABLE()
107 wxString m_description
;
108 wxString m_editorType
;
109 wxArrayString m_choices
;
113 // _CUSTOMPROPERTYDIALOG_H_