libyui
3.0.10
|
00001 /* 00002 Copyright (C) 2000-2012 Novell, Inc 00003 This library is free software; you can redistribute it and/or modify 00004 it under the terms of the GNU Lesser General Public License as 00005 published by the Free Software Foundation; either version 2.1 of the 00006 License, or (at your option) version 3.0 of the License. This library 00007 is distributed in the hope that it will be useful, but WITHOUT ANY 00008 WARRANTY; without even the implied warranty of MERCHANTABILITY or 00009 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 00010 License for more details. You should have received a copy of the GNU 00011 Lesser General Public License along with this library; if not, write 00012 to the Free Software Foundation, Inc., 51 Franklin Street, Fifth 00013 Floor, Boston, MA 02110-1301 USA 00014 */ 00015 00016 00017 /*-/ 00018 00019 File: YTypes.h 00020 00021 Author: Stefan Hundhammer <sh@suse.de> 00022 00023 Header file for frequently used simple types to reduce interdependencies 00024 between important headers (e.g., YWidget.h, YUI.h). 00025 00026 /-*/ 00027 00028 00029 #ifndef YTypes_h 00030 #define YTypes_h 00031 00032 #include <list> 00033 00034 typedef double YLayoutSize_t; 00035 typedef long long YFileSize_t; 00036 00037 class YWidget; 00038 00039 typedef std::list<YWidget *> YWidgetList; 00040 typedef std::list<YWidget *>::iterator YWidgetListIterator; 00041 typedef std::list<YWidget *>::const_iterator YWidgetListConstIterator; 00042 typedef std::list<YWidget *>::reverse_iterator YWidgetListReverseIterator; 00043 typedef std::list<YWidget *>::const_reverse_iterator YWidgetListConstReverseIterator; 00044 00045 00046 #define YUIAllDimensions 2 00047 00048 enum YUIDimension 00049 { 00050 YD_HORIZ = 0, 00051 YD_VERT = 1 00052 }; 00053 00054 00055 enum YAlignmentType 00056 { 00057 YAlignUnchanged, 00058 YAlignBegin, 00059 YAlignEnd, 00060 YAlignCenter 00061 }; 00062 00063 00064 enum YDialogType 00065 { 00066 YMainDialog, 00067 YPopupDialog, 00068 YWizardDialog, 00069 }; 00070 00071 00072 enum YDialogColorMode 00073 { 00074 YDialogNormalColor, // Default 00075 YDialogInfoColor, // Brighter colors 00076 YDialogWarnColor // Very bright Warning colors 00077 }; 00078 00079 00080 enum YButtonRole 00081 { 00082 YCustomButton = 0, // No predefined role 00083 YOKButton, // [OK], [Continue], [Yes], [Accept], [Next] 00084 YApplyButton, // [Apply] 00085 YCancelButton, // [Cancel] 00086 YHelpButton, // [Help] 00087 00088 YMaxButtonRole // For use as array size 00089 }; 00090 00091 00092 enum YButtonOrder 00093 { 00094 YKDEButtonOrder, // [OK] [Apply] [Cancel] [Custom1] [Custom2] [Help] 00095 // [Yes] [No] 00096 // [Continue] [Cancel] 00097 00098 YGnomeButtonOrder // [Help] [Custom1] [Custom2] [Apply] [Cancel] [OK] 00099 // [No] [Yes] 00100 // [Cancel] [Continue] 00101 }; 00102 00103 00104 00105 #endif // YTypes_h