Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

YQIntField.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:       YQIntField.h
00014 
00015   Author:     Stefan Hundhammer <sh@suse.de>
00016 
00017 /-*/
00018 
00019 // -*- c++ -*-
00020 
00021 #ifndef YQIntField_h
00022 #define YQIntField_h
00023 
00024 #include <qslider.h>
00025 #include <qspinbox.h>
00026 #include <qlabel.h>
00027 #include <qvbox.h>
00028 #include <ycp/YCPString.h>
00029 
00030 #include "YIntField.h"
00031 
00032 
00033 class QString;
00034 class QLabel;
00035 class QIntField;
00036 
00037 class YQIntField : public QVBox, public YIntField
00038 {
00039     Q_OBJECT
00040 
00041 public:
00042 
00046     YQIntField( QWidget *               parent,
00047                 const YWidgetOpt &      opt,
00048                 const YCPString &       label,
00049                 int                     minValue,
00050                 int                     maxValue,
00051                 int                     initialValue );
00052 
00057     void setEnabling( bool enabled );
00058 
00063     long nicesize( YUIDimension dim );
00064 
00069     void setSize( long newWidth, long newHeight );
00070 
00076     void setLabel( const YCPString & label );
00077 
00081     virtual bool setKeyboardFocus();
00082 
00088     void setValue( int newValue );
00089 
00090     virtual int value();
00091 
00092 public slots:
00098     void setValueSlot( int newValue );
00099 
00100 
00101 protected:
00102 
00103     QLabel *    _qt_label;
00104     QSpinBox *  _qt_spinbox;
00105 };
00106 
00107 
00108 #endif // YQIntField_h

Generated on Wed Sep 14 10:59:02 2005 for yast2-qt by  doxygen 1.4.4