]> git.saurik.com Git - wxWidgets.git/blame - src/stubs/tabctrl.cpp
attempts at making modal dialogs without parent work - failed
[wxWidgets.git] / src / stubs / tabctrl.cpp
CommitLineData
93cf77c0
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: tabctrl.cpp
3// Purpose: wxTabCtrl
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 "tabctrl.h"
14#endif
15
34138703 16#include "wx/control.h"
93cf77c0
JS
17#include "wx/tabctrl.h"
18
93cf77c0
JS
19IMPLEMENT_DYNAMIC_CLASS(wxTabCtrl, wxControl)
20
21BEGIN_EVENT_TABLE(wxTabCtrl, wxControl)
93cf77c0 22END_EVENT_TABLE()
93cf77c0
JS
23
24wxTabCtrl::wxTabCtrl()
25{
26 m_imageList = NULL;
27}
28
29bool wxTabCtrl::Create(wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size,
30 long style, const wxString& name)
31{
32 m_imageList = NULL;
33
34 SetName(name);
35
36 m_windowStyle = style;
37
38 SetParent(parent);
39
40 m_windowId = (id < 0 ? NewControlId() : id);
41
42 if (parent) parent->AddChild(this);
43
44 // TODO: create tab control
45 return FALSE;
46}
47
48wxTabCtrl::~wxTabCtrl()
49{
50}
51
52void wxTabCtrl::Command(wxCommandEvent& event)
53{
54}
55
56// Delete all items
57bool wxTabCtrl::DeleteAllItems()
58{
59 // TODO
60 return FALSE;
61}
62
63// Delete an item
64bool wxTabCtrl::DeleteItem(int item)
65{
66 // TODO
67 return FALSE;
68}
69
70// Get the selection
71int wxTabCtrl::GetSelection() const
72{
73 // TODO
74 return 0;
75}
76
77// Get the tab with the current keyboard focus
78int wxTabCtrl::GetCurFocus() const
79{
80 // TODO
81 return 0;
82}
83
84// Get the associated image list
85wxImageList* wxTabCtrl::GetImageList() const
86{
87 return m_imageList;
88}
89
90// Get the number of items
91int wxTabCtrl::GetItemCount() const
92{
93 // TODO
94 return 0;
95}
96
97// Get the rect corresponding to the tab
98bool wxTabCtrl::GetItemRect(int item, wxRect& wxrect) const
99{
100 // TODO
101 return FALSE;
102}
103
104// Get the number of rows
105int wxTabCtrl::GetRowCount() const
106{
107 // TODO
108 return 0;
109}
110
111// Get the item text
112wxString wxTabCtrl::GetItemText(int item) const
113{
114 // TODO
115 return wxString("");
116}
117
118// Get the item image
119int wxTabCtrl::GetItemImage(int item) const
120{
121 // TODO
122 return 0;
123}
124
125// Get the item data
126void* wxTabCtrl::GetItemData(int item) const
127{
128 // TODO
129 return NULL;
130}
131
132// Hit test
133int wxTabCtrl::HitTest(const wxPoint& pt, long& flags)
134{
135 // TODO
136 return 0;
137}
138
139// Insert an item
140bool wxTabCtrl::InsertItem(int item, const wxString& text, int imageId, void* data)
141{
142 // TODO
143 return FALSE;
144}
145
146// Set the selection
147int wxTabCtrl::SetSelection(int item)
148{
149 // TODO
150 return 0;
151}
152
153// Set the image list
154void wxTabCtrl::SetImageList(wxImageList* imageList)
155{
156 // TODO
157}
158
159// Set the text for an item
160bool wxTabCtrl::SetItemText(int item, const wxString& text)
161{
162 // TODO
163 return FALSE;
164}
165
166// Set the image for an item
167bool wxTabCtrl::SetItemImage(int item, int image)
168{
169 // TODO
170 return FALSE;
171}
172
173// Set the data for an item
174bool wxTabCtrl::SetItemData(int item, void* data)
175{
176 // TODO
177 return FALSE;
178}
179
180// Set the size for a fixed-width tab control
181void wxTabCtrl::SetItemSize(const wxSize& size)
182{
183 // TODO
184}
185
186// Set the padding between tabs
187void wxTabCtrl::SetPadding(const wxSize& padding)
188{
189 // TODO
190}
191
192// Tab event
193IMPLEMENT_DYNAMIC_CLASS(wxTabEvent, wxCommandEvent)
194
195wxTabEvent::wxTabEvent(wxEventType commandType, int id):
196 wxCommandEvent(commandType, id)
197{
198}
199