libyui  3.3.1
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 
17 /**
18  @file YTypes.h
19 
20  Author: Stefan Hundhammer <sh@suse.de>
21 
22  Header file for frequently used simple types to reduce interdependencies
23  between important headers (e.g., YWidget.h, YUI.h).
24 
25 **/
26 
27 
28 #ifndef YTypes_h
29 #define YTypes_h
30 
31 #include <list>
32 
33 typedef double YLayoutSize_t;
34 typedef long long YFileSize_t;
35 
36 class YWidget;
37 
38 typedef std::list<YWidget *> YWidgetList;
39 typedef std::list<YWidget *>::iterator YWidgetListIterator;
40 typedef std::list<YWidget *>::const_iterator YWidgetListConstIterator;
41 typedef std::list<YWidget *>::reverse_iterator YWidgetListReverseIterator;
42 typedef std::list<YWidget *>::const_reverse_iterator YWidgetListConstReverseIterator;
43 
44 
45 #define YUIAllDimensions 2
46 
47 enum YUIDimension
48 {
49  YD_HORIZ = 0,
50  YD_VERT = 1
51 };
52 
53 
54 enum YAlignmentType
55 {
56  YAlignUnchanged,
57  YAlignBegin,
58  YAlignEnd,
59  YAlignCenter
60 };
61 
62 
63 /**
64  * Type of dialog: Main / Popup / Wizard.
65  **/
67 {
68  YMainDialog,
69  YPopupDialog,
70  YWizardDialog,
71 };
72 
73 
74 enum YDialogColorMode
75 {
76  YDialogNormalColor, // Default
77  YDialogInfoColor, // Brighter colors
78  YDialogWarnColor // Very bright Warning colors
79 };
80 
81 
82 enum 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 
95 enum 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
Type of dialog: Main / Popup / Wizard.
Definition: YTypes.h:66
Abstract base class of all UI widgets.
Definition: YWidget.h:54