Crazy Eddie's GUI System
0.8.2
Main Page
Related Pages
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Pages
ComboDropList.h
1
/***********************************************************************
2
filename: CEGUIComboDropList.h
3
created: 13/6/2004
4
author: Paul D Turner
5
6
purpose: Interface for the Combobox Drop-List widget base class
7
*************************************************************************/
8
/***************************************************************************
9
* Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
10
*
11
* Permission is hereby granted, free of charge, to any person obtaining
12
* a copy of this software and associated documentation files (the
13
* "Software"), to deal in the Software without restriction, including
14
* without limitation the rights to use, copy, modify, merge, publish,
15
* distribute, sublicense, and/or sell copies of the Software, and to
16
* permit persons to whom the Software is furnished to do so, subject to
17
* the following conditions:
18
*
19
* The above copyright notice and this permission notice shall be
20
* included in all copies or substantial portions of the Software.
21
*
22
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
25
* IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
26
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
27
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28
* OTHER DEALINGS IN THE SOFTWARE.
29
***************************************************************************/
30
#ifndef _CEGUIComboDropList_h_
31
#define _CEGUIComboDropList_h_
32
33
#include "./Listbox.h"
34
35
36
#if defined(_MSC_VER)
37
# pragma warning(push)
38
# pragma warning(disable : 4251)
39
#endif
40
41
42
// Start of CEGUI namespace section
43
namespace
CEGUI
44
{
49
class
CEGUIEXPORT
ComboDropList
:
public
Listbox
50
{
51
public
:
52
static
const
String
EventNamespace
;
53
static
const
String
WidgetTypeName
;
54
55
56
/*************************************************************************
57
Constants
58
*************************************************************************/
59
// Event names
65
static
const
String
EventListSelectionAccepted
;
66
67
78
virtual
void
initialiseComponents(
void
);
79
80
99
void
setArmed
(
bool
setting) { d_armed = setting; }
100
101
112
bool
isArmed
(
void
)
const
{
return
d_armed; }
113
114
126
void
setAutoArmEnabled
(
bool
setting) { d_autoArm = setting; }
127
128
137
bool
isAutoArmEnabled
(
void
)
const
{
return
d_autoArm; }
138
140
void
resizeToContent(
bool
fit_width,
bool
fit_height);
141
142
/*************************************************************************
143
Constructor & Destructor
144
*************************************************************************/
149
ComboDropList
(
const
String
& type,
const
String
& name);
150
151
156
virtual
~
ComboDropList
(
void
);
157
158
159
protected
:
160
/*************************************************************************
161
New event handlers
162
*************************************************************************/
167
void
onListSelectionAccepted(
WindowEventArgs
& e);
168
169
170
/*************************************************************************
171
Overridden Event handling
172
*************************************************************************/
173
virtual
void
onMouseMove(
MouseEventArgs
& e);
174
virtual
void
onMouseButtonDown(
MouseEventArgs
& e);
175
virtual
void
onMouseButtonUp(
MouseEventArgs
& e);
176
virtual
void
onCaptureLost(
WindowEventArgs
& e);
177
virtual
void
onActivated(
ActivationEventArgs
& e);
178
virtual
void
onListContentsChanged(
WindowEventArgs
& e);
179
virtual
void
onSelectionChanged(
WindowEventArgs
& e);
180
181
/*************************************************************************
182
Implementation Data
183
*************************************************************************/
184
bool
d_autoArm
;
185
bool
d_armed
;
186
ListboxItem
*
d_lastClickSelected
;
187
};
188
189
}
// End of CEGUI namespace section
190
191
#if defined(_MSC_VER)
192
# pragma warning(pop)
193
#endif
194
195
#endif // end of guard _CEGUIComboDropList_h_
cegui
include
CEGUI
widgets
ComboDropList.h
Generated by
1.8.3.1