]> git.saurik.com Git - wxWidgets.git/blob - src/stubs/combobox.cpp
Some more Motif work; included utils.h in fileconf.cpp (for wxGetHomeDir or something)
[wxWidgets.git] / src / stubs / combobox.cpp
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