libyui

/data/gitorious.org/libyui/libyui-master/src/YTypes.h

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