]> git.saurik.com Git - wxWidgets.git/blame - utils/configtool/src/custompropertydialog.h
overseeing the obvious, there is already a perfect scroll call for HIView...
[wxWidgets.git] / utils / configtool / src / custompropertydialog.h
CommitLineData
d7463f75
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: custompropertydialog.h
3// Purpose: Custom property dialog
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 _CUSTOMPROPERTYDIALOG_H_
13#define _CUSTOMPROPERTYDIALOG_H_
14
71ada1a5 15#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
f8105809 16#pragma interface "custompropertydialog.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_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
47
48/*!
49 * ctCustomPropertyDialog class declaration
50 */
51
52class ctCustomPropertyDialog: public wxDialog
53{
54public:
55 /// Constructor
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 );
57
58 /// Creates the controls and sizers
59 void CreateControls();
60
61////@begin ctCustomPropertyDialog event handler declarations
62
63 /// Update event handler for ID_PROPERTY_CHOICES
64 void OnUpdatePropertyChoices( wxUpdateUIEvent& event );
65
66 /// Event handler for ID_PROPERTY_CHOICE_ADD
67 void OnPropertyChoiceAdd( wxCommandEvent& event );
68
69 /// Update event handler for ID_PROPERTY_CHOICE_ADD
70 void OnUpdatePropertyChoiceAdd( wxUpdateUIEvent& event );
71
72 /// Event handler for ID_PROPERTY_CHOICE_REMOVE
73 void OnPropertyChoiceRemove( wxCommandEvent& event );
74
75 /// Update event handler for ID_PROPERTY_CHOICE_REMOVE
76 void OnUpdatePropertyChoiceRemove( wxUpdateUIEvent& event );
77
78////@end ctCustomPropertyDialog event handler declarations
79
80////@begin ctCustomPropertyDialog member function declarations
81
82////@end ctCustomPropertyDialog member function declarations
83
84 /// Should we show tooltips?
85 static bool ShowToolTips();
86
87 void SetPropertyName(const wxString& name) { m_name = name; }
88 wxString GetPropertyName() { return m_name; }
89
90 void SetPropertyType(const wxString& type) { m_type = type; }
91 wxString GetPropertyType() { return m_type; }
92
93 void SetEditorType(const wxString& type) { m_editorType = type; }
94 wxString GetEditorType() { return m_editorType; }
95
96 void SetPropertyDescription(const wxString& descr) { m_description = descr; }
97 wxString GetPropertyDescription() { return m_description; }
98
99 void SetChoices(const wxArrayString& choices) ;
100 wxArrayString GetChoices() { return m_choices; }
101
102 DECLARE_CLASS( ctCustomPropertyDialog )
103 DECLARE_EVENT_TABLE()
104
105 wxString m_name;
106 wxString m_type;
107 wxString m_description;
108 wxString m_editorType;
109 wxArrayString m_choices;
110};
111
112#endif
113 // _CUSTOMPROPERTYDIALOG_H_