libyui  3.2.3
 All Classes Files Functions Variables Typedefs Enumerations Friends Pages
YTypes.h
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 
17 /*-/
18 
19  File: YTypes.h
20 
21  Author: Stefan Hundhammer <sh@suse.de>
22 
23  Header file for frequently used simple types to reduce interdependencies
24  between important headers (e.g., YWidget.h, YUI.h).
25 
26 /-*/
27 
28 
29 #ifndef YTypes_h
30 #define YTypes_h
31 
32 #include <list>
33 
34 typedef double YLayoutSize_t;
35 typedef long long YFileSize_t;
36 
37 class YWidget;
38 
39 typedef std::list<YWidget *> YWidgetList;
40 typedef std::list<YWidget *>::iterator YWidgetListIterator;
41 typedef std::list<YWidget *>::const_iterator YWidgetListConstIterator;
42 typedef std::list<YWidget *>::reverse_iterator YWidgetListReverseIterator;
43 typedef std::list<YWidget *>::const_reverse_iterator YWidgetListConstReverseIterator;
44 
45 
46 #define YUIAllDimensions 2
47 
48 enum YUIDimension
49 {
50  YD_HORIZ = 0,
51  YD_VERT = 1
52 };
53 
54 
55 enum YAlignmentType
56 {
57  YAlignUnchanged,
58  YAlignBegin,
59  YAlignEnd,
60  YAlignCenter
61 };
62 
63 
64 enum YDialogType
65 {
66  YMainDialog,
67  YPopupDialog,
68  YWizardDialog,
69 };
70 
71 
72 enum YDialogColorMode
73 {
74  YDialogNormalColor, // Default
75  YDialogInfoColor, // Brighter colors
76  YDialogWarnColor // Very bright Warning colors
77 };
78 
79 
80 enum YButtonRole
81 {
82  YCustomButton = 0, // No predefined role
83  YOKButton, // [OK], [Continue], [Yes], [Accept], [Next]
84  YApplyButton, // [Apply]
85  YCancelButton, // [Cancel]
86  YHelpButton, // [Help]
87  YRelNotesButton, // [Release Notes]
88 
89  YMaxButtonRole // For use as array size
90 };
91 
92 
93 enum YButtonOrder
94 {
95  YKDEButtonOrder, // [OK] [Apply] [Cancel] [Custom1] [Custom2] [Help]
96  // [Yes] [No]
97  // [Continue] [Cancel]
98 
99  YGnomeButtonOrder // [Help] [Custom1] [Custom2] [Apply] [Cancel] [OK]
100  // [No] [Yes]
101  // [Cancel] [Continue]
102 };
103 
104 
105 
106 #endif // YTypes_h
Abstract base class of all UI widgets.
Definition: YWidget.h:54