Crazy Eddies GUI System
0.7.1
Main Page
Related Pages
Namespaces
Classes
Files
File List
cegui
include
elements
CEGUIComboDropList.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 "CEGUIListbox.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
60
static
const
String
EventListSelectionAccepted
;
61
62
73
virtual
void
initialiseComponents(
void
);
74
75
94
void
setArmed
(
bool
setting) { d_armed = setting; }
95
96
107
bool
isArmed
(
void
)
const
{
return
d_armed; }
108
109
121
void
setAutoArmEnabled
(
bool
setting) { d_autoArm = setting; }
122
123
132
bool
isAutoArmEnabled
(
void
)
const
{
return
d_autoArm; }
133
134
135
/*************************************************************************
136
Constructor & Destructor
137
*************************************************************************/
142
ComboDropList
(
const
String
& type,
const
String
& name);
143
144
149
virtual
~
ComboDropList
(
void
);
150
151
152
protected
:
163
virtual
bool
testClassName_impl(
const
String
& class_name)
const
164
{
165
if
(class_name==
"ComboDropList"
)
return
true
;
166
return
Listbox::testClassName_impl
(class_name);
167
}
168
169
/*************************************************************************
170
New event handlers
171
*************************************************************************/
176
void
onListSelectionAccepted(
WindowEventArgs
& e);
177
178
179
/*************************************************************************
180
Overridden Event handling
181
*************************************************************************/
182
virtual
void
onMouseMove(
MouseEventArgs
& e);
183
virtual
void
onMouseButtonDown(
MouseEventArgs
& e);
184
virtual
void
onMouseButtonUp(
MouseEventArgs
& e);
185
virtual
void
onCaptureLost(
WindowEventArgs
& e);
186
virtual
void
onActivated(
ActivationEventArgs
& e);
187
virtual
void
onListContentsChanged(
WindowEventArgs
& e);
188
virtual
void
onSelectionChanged(
WindowEventArgs
& e);
189
190
/*************************************************************************
191
Implementation Data
192
*************************************************************************/
193
bool
d_autoArm
;
194
bool
d_armed
;
195
ListboxItem
*
d_lastClickSelected
;
196
};
197
198
}
// End of CEGUI namespace section
199
200
#if defined(_MSC_VER)
201
# pragma warning(pop)
202
#endif
203
204
#endif // end of guard _CEGUIComboDropList_h_
Generated by
1.8.3.1