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

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

Generated on Wed Nov 12 06:11:16 2008 for yast2-qt by  doxygen 1.3.9.1