KVIrc 5.2.0
Developer APIs
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
32class QGridLayout;
33class QLabel;
34class QLineEdit;
35class QWidget;
36class KviPixmap;
38class KviTalVBoxLayout;
39class KviTalHBoxLayout;
41
43{
44 Q_OBJECT
45public:
46 RegistrationWizard(const QString & startMask, KviRegisteredUserDataBase * db = nullptr, QWidget * par = nullptr, bool bModal = false);
48
50
52
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
82protected:
83 void showEvent(QShowEvent * e) override;
84 void accept() override;
85 void reject() override;
86protected 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_
Definition KviCString.h:102
Definition KviSelectors.h:163
Definition KviPixmap.h:35
Definition KviRegisteredUserDataBase.h:56
Provides a wizard-style dialog with steps.
Definition KviTalWizard.h:42
Definition RegistrationWizard.h:43
QWidget * m_pPage1
Definition RegistrationWizard.h:55
QLineEdit * m_pNicknameEdit1
Definition RegistrationWizard.h:61
void notifyCheckToggled(bool)
Definition RegistrationWizard.cpp:472
void showEvent(QShowEvent *e) override
Definition RegistrationWizard.cpp:402
QLabel * m_pNotifyNickLabel2
Definition RegistrationWizard.h:73
QLineEdit * m_pEditRealName
Definition RegistrationWizard.h:58
KviCString m_szStartMask
Definition RegistrationWizard.h:51
QLabel * m_pLabel4
Definition RegistrationWizard.h:74
QLineEdit * m_pUsernameEdit1
Definition RegistrationWizard.h:65
QLineEdit * m_pUsernameEdit2
Definition RegistrationWizard.h:66
QLabel * m_pNotifyNickLabel1
Definition RegistrationWizard.h:72
QLineEdit * m_pHostEdit2
Definition RegistrationWizard.h:64
QCheckBox * m_pNotifyCheck
Definition RegistrationWizard.h:71
void accept() override
Definition RegistrationWizard.cpp:286
QLabel * m_pLabel1
Definition RegistrationWizard.h:56
QLabel * m_pLabel3
Definition RegistrationWizard.h:68
void reject() override
Definition RegistrationWizard.cpp:277
void maskChanged(const QString &str)
Definition RegistrationWizard.cpp:412
QWidget * m_pPage2
Definition RegistrationWizard.h:59
KviPixmap * m_pAvatar
Definition RegistrationWizard.h:80
QWidget * m_pPage4
Definition RegistrationWizard.h:70
KviRegisteredUserDataBase * m_pDb
Definition RegistrationWizard.h:49
QWidget * m_pPage3
Definition RegistrationWizard.h:67
KviPixmapSelector * m_pAvatarSelector
Definition RegistrationWizard.h:69
QLineEdit * m_pNotifyNickEdit2
Definition RegistrationWizard.h:76
QLabel * m_pLabel2
Definition RegistrationWizard.h:60
void notifyNickChanged(const QString &)
Definition RegistrationWizard.cpp:449
QLineEdit * m_pNicknameEdit2
Definition RegistrationWizard.h:62
QWidget * m_pPage5
Definition RegistrationWizard.h:77
void realNameChanged(const QString &str)
Definition RegistrationWizard.cpp:443
QLineEdit * m_pHostEdit1
Definition RegistrationWizard.h:63
QLabel * m_pEntryNameLabel
Definition RegistrationWizard.h:57
bool m_bModal
Definition RegistrationWizard.h:53
QLabel * m_pTextLabel5
Definition RegistrationWizard.h:78
QLineEdit * m_pNotifyNickEdit1
Definition RegistrationWizard.h:75
~RegistrationWizard()
Definition RegistrationWizard.cpp:269
#define e
Definition detector.cpp:70