YDialog.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                                                                      |
00003 |                      __   __    ____ _____ ____                      |
00004 |                      \ \ / /_ _/ ___|_   _|___ \                     |
00005 |                       \ V / _` \___ \ | |   __) |                    |
00006 |                        | | (_| |___) || |  / __/                     |
00007 |                        |_|\__,_|____/ |_| |_____|                    |
00008 |                                                                      |
00009 |                               core system                            |
00010 |                                                        (C) SuSE GmbH |
00011 \----------------------------------------------------------------------/
00012 
00013   File:       YDialog.h
00014 
00015   Author:     Mathias Kettner <kettner@suse.de>
00016   Maintainer: Stefan Hundhammer <sh@suse.de>
00017 
00018 /-*/
00019 
00020 
00021 #ifndef YDialog_h
00022 #define YDialog_h
00023 
00024 #include "YContainerWidget.h"
00025 
00026 class YMacroRecorder;
00027 class YShortcutManager;
00028 
00029 
00034 class YDialog : public YContainerWidget
00035 {
00036 public:
00040     YDialog( const YWidgetOpt & opt );
00041 
00045     virtual ~YDialog();
00046 
00051     virtual char *widgetClass() { return "YDialog"; }
00052 
00056     bool isDialog() const;
00057 
00062     void setInitialSize();
00063 
00067     bool hasDefaultSize() { return _hasDefaultSize.value(); }
00068 
00072     bool hasWarnColor() { return _hasWarnColor.value(); }
00073 
00077     bool hasInfoColor() { return _hasInfoColor.value(); }
00078 
00082     bool isDecorated() { return _isDecorated.value(); }
00083 
00087     bool isCentered() { return _isCentered.value(); }
00088 
00092     bool hasSmallDecorations() { return _hasSmallDecorations.value(); }
00093 
00101     void checkShortcuts( bool force = false );
00102 
00109     void postponeShortcutCheck() { _shortcutCheckPostponed = true; }
00110 
00114     bool shortcutCheckPostponed() const { return _shortcutCheckPostponed; }
00115 
00119     YCPValue queryWidget( const YCPSymbol & property );
00120 
00124     YWidgetList widgets() const;
00125 
00130     virtual std::string dialogDebugLabel();
00131 
00135     virtual std::string debugLabel()            { return dialogDebugLabel(); }
00136 
00137 
00138 protected:
00139 
00144     void fillWidgetList( YWidgetList &                  widgetList,
00145                          const YContainerWidget *       parent )        const;
00146 
00150     string formatDebugLabel( YWidget * widget, const string & debLabel );
00151 
00152 
00153     //
00154     // Data members
00155     //
00156     
00157     YBoolOpt    _hasDefaultSize;
00158     YBoolOpt    _hasWarnColor;
00159     YBoolOpt    _hasInfoColor;
00160     YBoolOpt    _isDecorated;
00161     YBoolOpt    _isCentered;
00162     YBoolOpt    _hasSmallDecorations;
00163 
00164     bool        _shortcutCheckPostponed;
00165 };
00166 
00167 
00168 #endif // YDialog_h

Generated on Fri Jun 16 18:07:45 2006 for yast2-core by  doxygen 1.4.6