libyui-qt
YQWizardButton.h
1 /*
2  Copyright (C) 2000-2012 Novell, Inc
3  This library is free software; you can redistribute it and/or modify
4  it under the terms of the GNU Lesser General Public License as
5  published by the Free Software Foundation; either version 2.1 of the
6  License, or (at your option) version 3.0 of the License. This library
7  is distributed in the hope that it will be useful, but WITHOUT ANY
8  WARRANTY; without even the implied warranty of MERCHANTABILITY or
9  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
10  License for more details. You should have received a copy of the GNU
11  Lesser General Public License along with this library; if not, write
12  to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
13  Floor, Boston, MA 02110-1301 USA
14 */
15 
16 
17 /*-/
18 
19  File: YQWizardButton.h
20 
21  Author: Stefan Hundhammer <shundhammer@suse.de>
22 
23 /-*/
24 
25 
26 #ifndef YQWizardButton_h
27 #define YQWizardButton_h
28 
29 #include <qwidget.h>
30 #include "YQGenericButton.h"
31 
32 using std::string;
33 class YQDialog;
34 class YQWizard;
35 
36 
38 {
39  Q_OBJECT
40 
41 public:
46  QWidget * buttonParent,
47  const std::string & label );
48 
52  virtual ~YQWizardButton();
53 
58  virtual const char *widgetClass() const { return "YQWizardButton"; }
59 
63  void hide();
64 
69  void show();
70 
74  bool isShown() const;
75 
79  bool isHidden() const;
80 
86  virtual int preferredWidth();
87 
93  virtual int preferredHeight();
94 
100  virtual void setSize( int newWidth, int newHeight );
101 
105  YQWizard * wizard() const { return _wizard; }
106 
107 signals:
108 
112  void clicked();
113 
114 
115 private:
116 
117  YQWizard * _wizard;
118 };
119 
120 #endif // YQWizardButton_h
Definition: YQWizard.h:64
bool isShown() const
Definition: YQWizardButton.cc:82
YQWizard * wizard() const
Definition: YQWizardButton.h:105
virtual void setSize(int newWidth, int newHeight)
Definition: YQWizardButton.cc:115
YQWizardButton(YQWizard *wizard, QWidget *buttonParent, const std::string &label)
Definition: YQWizardButton.cc:39
virtual const char * widgetClass() const
Definition: YQWizardButton.h:58
virtual int preferredHeight()
Definition: YQWizardButton.cc:106
Definition: YQGenericButton.h:44
virtual int preferredWidth()
Definition: YQWizardButton.cc:97
Definition: YQWizardButton.h:37
Definition: YQDialog.h:42
void hide()
Definition: YQWizardButton.cc:68
virtual ~YQWizardButton()
Definition: YQWizardButton.cc:61
bool isHidden() const
Definition: YQWizardButton.cc:91
void show()
Definition: YQWizardButton.cc:75