00001 /*---------------------------------------------------------------------\ 00002 | | 00003 | __ __ ____ _____ ____ | 00004 | \ \ / /_ _/ ___|_ _|___ \ | 00005 | \ V / _` \___ \ | | __) | | 00006 | | | (_| |___) || | / __/ | 00007 | |_|\__,_|____/ |_| |_____| | 00008 | | 00009 | core system | 00010 | (C) SuSE GmbH | 00011 \----------------------------------------------------------------------/ 00012 00013 File: YQPushButton.h 00014 00015 Author: Stefan Hundhammer <sh@suse.de> 00016 00017 /-*/ 00018 00019 // -*- c++ -*- 00020 00021 #ifndef YQPushButton_h 00022 #define YQPushButton_h 00023 00024 #include <ycp/YCPString.h> 00025 00026 #include "YQGenericButton.h" 00027 00028 00029 class YQDialog; 00030 00031 class YQPushButton : public YQGenericButton 00032 { 00033 Q_OBJECT 00034 00035 public: 00039 YQPushButton( QWidget * parent, 00040 YQDialog * dialog, 00041 const YWidgetOpt & opt, 00042 const YCPString & label ); 00043 00047 virtual ~YQPushButton(); 00048 00054 long nicesize( YUIDimension dim ); 00055 00060 void setSize( long newWidth, long newHeight ); 00061 00062 00063 public slots: 00064 00069 void hit(); 00070 }; 00071 00072 #endif // YQPushButton_h