]>
Commit | Line | Data |
---|---|---|
0e320a79 DW |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: combobox.cpp | |
3 | // Purpose: wxComboBox class | |
4 | // Author: AUTHOR | |
5 | // Modified by: | |
6 | // Created: ??/??/98 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) AUTHOR | |
9 | // Licence: wxWindows licence | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifdef __GNUG__ | |
13 | #pragma implementation "combobox.h" | |
14 | #endif | |
15 | ||
16 | #include "wx/combobox.h" | |
17 | ||
18 | #if !USE_SHARED_LIBRARY | |
19 | IMPLEMENT_DYNAMIC_CLASS(wxComboBox, wxControl) | |
20 | #endif | |
21 | ||
22 | bool wxComboBox::Create(wxWindow *parent, wxWindowID id, | |
23 | const wxString& value, | |
24 | const wxPoint& pos, | |
25 | const wxSize& size, | |
26 | int n, const wxString choices[], | |
27 | long style, | |
28 | const wxValidator& validator, | |
29 | const wxString& name) | |
30 | { | |
31 | SetName(name); | |
32 | SetValidator(validator); | |
33 | m_noStrings = n; | |
34 | m_windowStyle = style; | |
35 | ||
36 | if (parent) parent->AddChild(this); | |
37 | ||
38 | if ( id == -1 ) | |
39 | m_windowId = (int)NewControlId(); | |
40 | else | |
41 | m_windowId = id; | |
42 | ||
43 | // TODO: create combobox control | |
44 | ||
45 | return TRUE; | |
46 | } | |
47 | ||
48 | wxString wxComboBox::GetValue() const | |
49 | { | |
50 | // TODO | |
51 | return wxString(""); | |
52 | } | |
53 | ||
54 | void wxComboBox::SetValue(const wxString& value) | |
55 | { | |
56 | // TODO | |
57 | } | |
58 | ||
59 | // Clipboard operations | |
60 | void wxComboBox::Copy() | |
61 | { | |
62 | // TODO | |
63 | } | |
64 | ||
65 | void wxComboBox::Cut() | |
66 | { | |
67 | // TODO | |
68 | } | |
69 | ||
70 | void wxComboBox::Paste() | |
71 | { | |
72 | // TODO | |
73 | } | |
74 | ||
75 | void wxComboBox::SetEditable(bool editable) | |
76 | { | |
77 | // TODO | |
78 | } | |
79 | ||
80 | void wxComboBox::SetInsertionPoint(long pos) | |
81 | { | |
82 | // TODO | |
83 | } | |
84 | ||
85 | void wxComboBox::SetInsertionPointEnd() | |
86 | { | |
87 | // TODO | |
88 | } | |
89 | ||
90 | long wxComboBox::GetInsertionPoint() const | |
91 | { | |
92 | // TODO | |
93 | return 0; | |
94 | } | |
95 | ||
96 | long wxComboBox::GetLastPosition() const | |
97 | { | |
98 | // TODO | |
99 | return 0; | |
100 | } | |
101 | ||
102 | void wxComboBox::Replace(long from, long to, const wxString& value) | |
103 | { | |
104 | // TODO | |
105 | } | |
106 | ||
107 | void wxComboBox::Remove(long from, long to) | |
108 | { | |
109 | // TODO | |
110 | } | |
111 | ||
112 | void wxComboBox::SetSelection(long from, long to) | |
113 | { | |
114 | // TODO | |
115 | } | |
116 | ||
117 | void wxComboBox::Append(const wxString& item) | |
118 | { | |
119 | // TODO | |
120 | } | |
121 | ||
122 | void wxComboBox::Delete(int n) | |
123 | { | |
124 | // TODO | |
125 | } | |
126 | ||
127 | void wxComboBox::Clear() | |
128 | { | |
129 | // TODO | |
130 | } | |
131 | ||
132 | int wxComboBox::GetSelection() const | |
133 | { | |
134 | // TODO | |
135 | return -1; | |
136 | } | |
137 | ||
138 | void wxComboBox::SetSelection(int n) | |
139 | { | |
140 | // TODO | |
141 | } | |
142 | ||
143 | int wxComboBox::FindString(const wxString& s) const | |
144 | { | |
145 | // TODO | |
146 | return -1; | |
147 | } | |
148 | ||
149 | wxString wxComboBox::GetString(int n) const | |
150 | { | |
151 | // TODO | |
152 | return wxString(""); | |
153 | } | |
154 | ||
155 | wxString wxComboBox::GetStringSelection() const | |
156 | { | |
157 | // TODO | |
158 | return wxString(""); | |
159 | } | |
160 | ||
161 | bool wxComboBox::SetStringSelection(const wxString& sel) | |
162 | { | |
163 | // TODO | |
164 | return FALSE; | |
165 | } |