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