KVIrc  4.9.2
DeveloperAPIs
RegistrationWizard.h
Go to the documentation of this file.
1 #ifndef _WIZARD_H_
2 #define _WIZARD_H_
3 //=============================================================================
4 //
5 // File : RegistrationWizard.h
6 // Creation date : Fri Jun 26 2002 21:21:21 CEST by Szymon Stefanek
7 //
8 // This file is part of the KVIrc IRC client distribution
9 // Copyright (C) 2002-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 "KviCString.h"
28 #include "KviTalWizard.h"
29 
30 #include <QCheckBox>
31 
32 class QGridLayout;
33 class QLabel;
34 class QLineEdit;
35 class QWidget;
36 class KviPixmap;
37 class KviPixmapSelector;
38 class KviTalVBoxLayout;
39 class KviTalHBoxLayout;
41 
43 {
44  Q_OBJECT
45 public:
46  RegistrationWizard(const QString & startMask, KviRegisteredUserDataBase * db = 0, QWidget * par = 0, bool bModal = false);
48 
50 
52 
53  bool m_bModal;
54 
55  QWidget * m_pPage1;
56  QLabel * m_pLabel1;
58  QLineEdit * m_pEditRealName;
59  QWidget * m_pPage2;
60  QLabel * m_pLabel2;
61  QLineEdit * m_pNicknameEdit1;
62  QLineEdit * m_pNicknameEdit2;
63  QLineEdit * m_pHostEdit1;
64  QLineEdit * m_pHostEdit2;
65  QLineEdit * m_pUsernameEdit1;
66  QLineEdit * m_pUsernameEdit2;
67  QWidget * m_pPage3;
68  QLabel * m_pLabel3;
70  QWidget * m_pPage4;
71  QCheckBox * m_pNotifyCheck;
74  QLabel * m_pLabel4;
75  QLineEdit * m_pNotifyNickEdit1;
76  QLineEdit * m_pNotifyNickEdit2;
77  QWidget * m_pPage5;
78  QLabel * m_pTextLabel5;
79 
81 
82 protected:
83  virtual void showEvent(QShowEvent * e);
84  virtual void accept();
85  virtual void reject();
86 protected slots:
87  void realNameChanged(const QString & str);
88  void maskChanged(const QString & str);
89  void notifyNickChanged(const QString &);
90  void notifyCheckToggled(bool);
91 };
92 
93 #endif // _WIZARD_H_
void realNameChanged(const QString &str)
Definition: RegistrationWizard.cpp:443
QLineEdit * m_pNotifyNickEdit2
Definition: RegistrationWizard.h:76
Definition: KviCString.h:105
QLabel * m_pLabel1
Definition: RegistrationWizard.h:56
void maskChanged(const QString &str)
Definition: RegistrationWizard.cpp:412
Definition: RegistrationWizard.h:42
KviPixmapSelector * m_pAvatarSelector
Definition: RegistrationWizard.h:69
virtual void reject()
Definition: RegistrationWizard.cpp:277
void notifyCheckToggled(bool)
Definition: RegistrationWizard.cpp:472
virtual void accept()
Definition: RegistrationWizard.cpp:286
QLineEdit * m_pHostEdit1
Definition: RegistrationWizard.h:63
KviCString m_szStartMask
Definition: RegistrationWizard.h:51
QLineEdit * m_pNicknameEdit2
Definition: RegistrationWizard.h:62
Definition: KviSelectors.h:163
KviRegisteredUserDataBase * m_pDb
Definition: RegistrationWizard.h:49
#define e
Definition: detector.cpp:69
QLabel * m_pNotifyNickLabel1
Definition: RegistrationWizard.h:72
Definition: KviPixmap.h:33
QLabel * m_pTextLabel5
Definition: RegistrationWizard.h:78
KviPixmap * m_pAvatar
Definition: RegistrationWizard.h:80
QWidget * m_pPage3
Definition: RegistrationWizard.h:67
QLabel * m_pEntryNameLabel
Definition: RegistrationWizard.h:57
QLineEdit * m_pEditRealName
Definition: RegistrationWizard.h:58
void notifyNickChanged(const QString &)
Definition: RegistrationWizard.cpp:449
QLabel * m_pLabel4
Definition: RegistrationWizard.h:74
QLineEdit * m_pUsernameEdit2
Definition: RegistrationWizard.h:66
QWidget * m_pPage4
Definition: RegistrationWizard.h:70
Definition: KviRegisteredUserDataBase.h:53
QWidget * m_pPage2
Definition: RegistrationWizard.h:59
QLabel * m_pLabel2
Definition: RegistrationWizard.h:60
RegistrationWizard(const QString &startMask, KviRegisteredUserDataBase *db=0, QWidget *par=0, bool bModal=false)
Definition: RegistrationWizard.cpp:48
QLineEdit * m_pHostEdit2
Definition: RegistrationWizard.h:64
bool m_bModal
Definition: RegistrationWizard.h:53
QWidget * m_pPage1
Definition: RegistrationWizard.h:55
QLineEdit * m_pNicknameEdit1
Definition: RegistrationWizard.h:61
QLineEdit * m_pNotifyNickEdit1
Definition: RegistrationWizard.h:75
Provides a wizard-style dialog with steps.
Definition: KviTalWizard.h:42
QLabel * m_pLabel3
Definition: RegistrationWizard.h:68
QLabel * m_pNotifyNickLabel2
Definition: RegistrationWizard.h:73
~RegistrationWizard()
Definition: RegistrationWizard.cpp:269
QWidget * m_pPage5
Definition: RegistrationWizard.h:77
QCheckBox * m_pNotifyCheck
Definition: RegistrationWizard.h:71
virtual void showEvent(QShowEvent *e)
Definition: RegistrationWizard.cpp:402
QLineEdit * m_pUsernameEdit1
Definition: RegistrationWizard.h:65