libyui-qt
Loading...
Searching...
No Matches
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
32using std::string;
33class YQDialog;
34class YQWizard;
35
36
38{
39 Q_OBJECT
40
41public:
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
107signals:
108
112 void clicked();
113
114
115private:
116
117 YQWizard * _wizard;
118};
119
120#endif // YQWizardButton_h
Definition YQDialog.h:47
Definition YQGenericButton.h:45
Definition YQWizardButton.h:38
void hide()
Definition YQWizardButton.cc:68
bool isHidden() const
Definition YQWizardButton.cc:91
virtual ~YQWizardButton()
Definition YQWizardButton.cc:61
virtual int preferredWidth()
Definition YQWizardButton.cc:97
YQWizard * wizard() const
Definition YQWizardButton.h:105
virtual const char * widgetClass() const
Definition YQWizardButton.h:58
virtual void setSize(int newWidth, int newHeight)
Definition YQWizardButton.cc:115
virtual int preferredHeight()
Definition YQWizardButton.cc:106
bool isShown() const
Definition YQWizardButton.cc:82
void show()
Definition YQWizardButton.cc:75
Definition YQWizard.h:64