libyui
 
Loading...
Searching...
No Matches
YTypes.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2000-2012 Novell, Inc
3 This library is free software; you can redistribute it and/or modify
4 it under the terms of the GNU Lesser General Public License as
5 published by the Free Software Foundation; either version 2.1 of the
6 License, or (at your option) version 3.0 of the License. This library
7 is distributed in the hope that it will be useful, but WITHOUT ANY
8 WARRANTY; without even the implied warranty of MERCHANTABILITY or
9 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
10 License for more details. You should have received a copy of the GNU
11 Lesser General Public License along with this library; if not, write
12 to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
13 Floor, Boston, MA 02110-1301 USA
14*/
15
16
26
27
28#ifndef YTypes_h
29#define YTypes_h
30
31#include <list>
32
33typedef double YLayoutSize_t;
34typedef long long YFileSize_t;
35
36class YWidget;
37
38typedef std::list<YWidget *> YWidgetList;
39typedef std::list<YWidget *>::iterator YWidgetListIterator;
40typedef std::list<YWidget *>::const_iterator YWidgetListConstIterator;
41typedef std::list<YWidget *>::reverse_iterator YWidgetListReverseIterator;
42typedef std::list<YWidget *>::const_reverse_iterator YWidgetListConstReverseIterator;
43
44
45#define YUIAllDimensions 2
46
47enum YUIDimension
48{
49 YD_HORIZ = 0,
50 YD_VERT = 1
51};
52
53
54enum YAlignmentType
55{
56 YAlignUnchanged,
57 YAlignBegin,
58 YAlignEnd,
59 YAlignCenter
60};
61
62
67{
68 YMainDialog,
69 YPopupDialog,
70 YWizardDialog,
71};
72
73
74enum YDialogColorMode
75{
76 YDialogNormalColor, // Default
77 YDialogInfoColor, // Brighter colors
78 YDialogWarnColor // Very bright Warning colors
79};
80
81
82enum YButtonRole
83{
84 YCustomButton = 0, // No predefined role
85 YOKButton, // [OK], [Continue], [Yes], [Accept], [Next]
86 YApplyButton, // [Apply]
87 YCancelButton, // [Cancel]
88 YHelpButton, // [Help]
89 YRelNotesButton, // [Release Notes]
90
91 YMaxButtonRole // For use as array size
92};
93
94
95enum YButtonOrder
96{
97 YKDEButtonOrder, // [OK] [Apply] [Cancel] [Custom1] [Custom2] [Help]
98 // [Yes] [No]
99 // [Continue] [Cancel]
100
101 YGnomeButtonOrder // [Help] [Custom1] [Custom2] [Apply] [Cancel] [OK]
102 // [No] [Yes]
103 // [Cancel] [Continue]
104};
105
106
107
108#endif // YTypes_h
YDialogType
Definition YTypes.h:67
Definition YWidget.h:55