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