KVIrc  4.9.2
DeveloperAPIs
KviTalWizard.h
Go to the documentation of this file.
1 #ifndef _KVI_TAL_WIZARD_H_
2 #define _KVI_TAL_WIZARD_H_
3 
4 //=============================================================================
5 //
6 // File : KviTalWizard.h
7 // Creation date : Tue Feb 06 2007 14:35:08 by Szymon Stefanek
8 //
9 // This file is part of the KVIrc IRC client distribution
10 // Copyright (C) 2007-2010 Szymon Stefanek (pragma at kvirc dot net)
11 //
12 // This program is FREE software. You can redistribute it and/or
13 // modify it under the terms of the GNU General Public License
14 // as published by the Free Software Foundation; either version 2
15 // of the License, or (at your option) any later version.
16 //
17 // This program is distributed in the HOPE that it will be USEFUL,
18 // but WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20 // See the GNU General Public License for more details.
21 //
22 // You should have received a copy of the GNU General Public License
23 // along with this program. If not, write to the Free Software Foundation,
24 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25 //
26 //=============================================================================
27 
28 #include "kvi_settings.h"
29 
30 #include <QDialog>
31 
32 class QShowEvent;
33 class QPushButton;
36 
42 class KVILIB_API KviTalWizard : public QDialog
43 {
44  Q_OBJECT
45 public:
46  KviTalWizard(QWidget * pParent);
47  ~KviTalWizard();
48 
49 protected:
51 
52 public:
59  void addPage(QWidget * pWidget, const QString & szTitle);
66  void insertPage(QWidget * pWidget, const QString & szTitle, int iIndex);
76  bool setPageEnabled(QWidget * pWidget, bool bEnabled);
83  bool setPageTitle(QWidget * pWidget, const QString & szTitle);
92  bool setCurrentPage(QWidget * pWidget);
96  QWidget * currentPage();
101  void setHelpEnabled(QWidget * pWidget, bool bEnabled);
106  void setCancelEnabled(QWidget * pWidget, bool bEnabled);
111  void setFinishEnabled(QWidget * pWidget, bool bEnabled);
116  void setNextEnabled(QWidget * pWidget, bool bEnabled);
121  void setBackEnabled(QWidget * pWidget, bool bEnabled);
125  QPushButton * cancelButton();
129  QPushButton * helpButton();
133  QPushButton * finishButton();
137  QPushButton * nextButton();
141  QPushButton * backButton();
142 signals:
146  void helpClicked();
147  void pageChanged(QString title);
148 
149 protected:
153  virtual void showEvent(QShowEvent * e);
154 
158  virtual void closeEvent(QCloseEvent * e);
159 
160 protected:
161  void setCurrentPage(KviTalWizardPageData * pData);
162 protected slots:
163  void backButtonClicked();
164  void nextButtonClicked();
165  void helpButtonClicked();
166  void cancelButtonClicked();
167  void finishButtonClicked();
168 };
169 
170 #endif // _KVI_TAL_WIZARD_H_
Definition: KviTalWizard.cpp:38
#define e
Definition: detector.cpp:69
KviTalWizardPrivate * m_p
Definition: KviTalWizard.h:50
Definition: KviTalWizard.cpp:58
Provides a wizard-style dialog with steps.
Definition: KviTalWizard.h:42
This file contains compile time settings.
#define KVILIB_API
Definition: kvi_settings.h:125