aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/reguser/wizard.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/reguser/wizard.cpp')
-rw-r--r--src/modules/reguser/wizard.cpp23
1 files changed, 14 insertions, 9 deletions
diff --git a/src/modules/reguser/wizard.cpp b/src/modules/reguser/wizard.cpp
index eeaee88fb..fd70a99a6 100644
--- a/src/modules/reguser/wizard.cpp
+++ b/src/modules/reguser/wizard.cpp
@@ -75,7 +75,7 @@ KviRegistrationWizard::KviRegistrationWizard(const QString &startMask,KviRegiste
// resize( 490, 456 );
setWindowTitle(__tr2qs("User Registration Wizard - KVIrc"));
- setIcon(*(g_pIconManager->getSmallIcon(KVI_SMALLICON_LINUX)));
+ setWindowIcon(*(g_pIconManager->getSmallIcon(KVI_SMALLICON_LINUX)));
setSizeGripEnabled( TRUE );
@@ -86,6 +86,7 @@ KviRegistrationWizard::KviRegistrationWizard(const QString &startMask,KviRegiste
m_pLabel1 = new QLabel(m_pPage1);
m_pLabel1->setText(__tr2qs("<p>Welcome to the user registration wizard.<br>This process allows you to add an IRC user to the database and set properties for that user. KVIrc will be (hopefully) able to recognize the user, add him to the notify list, and display the associated avatar.<br><br>First of all, you must insert an <b>entry name or real name</b> for the user you're going to register. The name will be used to identify the database entry and has no specific requirements, it can be a given name, nickname, or just some text to remind you of the real person.<br>Examples: \"George W Bush\", \"Dubya\".\n</p>" ));
+ m_pLabel1->setWordWrap(true);
m_pPage1Layout->addWidget(m_pLabel1, 0, 0);
@@ -109,8 +110,9 @@ KviRegistrationWizard::KviRegistrationWizard(const QString &startMask,KviRegiste
m_pLabel2 = new QLabel( m_pPage2);
m_pLabel2->setText(__tr2qs("<p>A registered user is identified by one or more <b>IRC masks</b>.<br>A mask must be in the following form:<br><b>nickname!username@hostname</b><br>and can contain wildcard characters '*' and '?'. Be careful in choosing the masks, as they are the only way to verify the identity of a registered user.<br><br>You can enter at most two masks here, if you wish to add more masks, use the \"<b>Edit</b>\" button in the Registered Users dialog. You must enter at least one mask.</p>"));
+ m_pLabel2->setWordWrap(true);
- m_pPage2Layout->addMultiCellWidget(m_pLabel2,0,0,0,4);
+ m_pPage2Layout->addWidget(m_pLabel2,0,0,1,5);
//KviStr szMask;
@@ -148,22 +150,22 @@ KviRegistrationWizard::KviRegistrationWizard(const QString &startMask,KviRegiste
TextLabel10_2 = new QLabel(m_pPage2);
TextLabel10_2->setText("<center><b>!</b></center>");
- TextLabel10_2->setAlignment(int(Qt::AlignCenter));
+ TextLabel10_2->setAlignment(Qt::AlignCenter);
m_pPage2Layout->addWidget(TextLabel10_2,2,1);
TextLabel10 = new QLabel(m_pPage2);
TextLabel10->setText("<center><b>!</b></center>");
- TextLabel10->setAlignment(int(Qt::AlignCenter));
+ TextLabel10->setAlignment(Qt::AlignCenter);
m_pPage2Layout->addWidget(TextLabel10,1,1);
TextLabel10_3 = new QLabel(m_pPage2);
TextLabel10_3->setText("<center><b>@</b></center>");
- TextLabel10_3->setAlignment(int(Qt::AlignCenter));
+ TextLabel10_3->setAlignment(Qt::AlignCenter);
m_pPage2Layout->addWidget(TextLabel10_3,1,3);
TextLabel10_3_2 = new QLabel(m_pPage2);
TextLabel10_3_2->setText("<center><b>@</b></center>");
- TextLabel10_3_2->setAlignment(int(Qt::AlignCenter));
+ TextLabel10_3_2->setAlignment(Qt::AlignCenter);
m_pPage2Layout->addWidget(TextLabel10_3_2,2,3);
addPage(m_pPage2,__tr2qs("Step 2: Mask Selection"));
@@ -179,6 +181,7 @@ KviRegistrationWizard::KviRegistrationWizard(const QString &startMask,KviRegiste
m_pLabel3 = new QLabel(m_pPage3);
m_pLabel3->setText(__tr2qs("<p>If you want to store an avatar image for this user, you can set it here. KVIrc will show the avatar in the userlist next to the user's nickname.<br>An avatar can be in any supported image format (PNG is recommended). Keep in mind that KVIrc stores avatars in memory and has to resize them to fit in the userlist, thus it's better to use small, low-resolution images.</p>"));
+ m_pLabel3->setWordWrap(true);
m_pPage3Layout->addWidget(m_pLabel3,0,0);
f = new QFrame(m_pPage3);
@@ -203,18 +206,19 @@ KviRegistrationWizard::KviRegistrationWizard(const QString &startMask,KviRegiste
m_pLabel4 = new QLabel(m_pPage4);
m_pLabel4->setText(__tr2qs("<p>If you want to be notified when this user is online or goes offline, you must specify the list of nicknames that KVIrc will look for.<br><br>You can enter at most two nicknames here, if you wish to add more nicknames, use the \"<b>Edit</b>\" button in the Registered Users dialog.</p>"));
- m_pPage4Layout->addMultiCellWidget(m_pLabel4,0,0,0,1);
+ m_pLabel4->setWordWrap(true);
+ m_pPage4Layout->addWidget(m_pLabel4,0,0,1,2);
f = new QFrame(m_pPage4);
f->setFrameStyle(QFrame::HLine | QFrame::Sunken);
- m_pPage4Layout->addMultiCellWidget(f,1,1,0,1);
+ m_pPage4Layout->addWidget(f,1,0,1,2);
m_pNotifyCheck = new QCheckBox(m_pPage4);
m_pNotifyCheck->setText(__tr2qs("Add this user to the notify list"));
m_pNotifyCheck->setChecked(false);
connect(m_pNotifyCheck,SIGNAL(toggled(bool)),this,SLOT(notifyCheckToggled(bool)));
- m_pPage4Layout->addMultiCellWidget(m_pNotifyCheck,2,2,0,1);
+ m_pPage4Layout->addWidget(m_pNotifyCheck,2,0,1,2);
m_pNotifyNickLabel1 = new QLabel(m_pPage4);
m_pNotifyNickLabel1->setText(__tr2qs("Nickname:"));
@@ -248,6 +252,7 @@ KviRegistrationWizard::KviRegistrationWizard(const QString &startMask,KviRegiste
m_pTextLabel5 = new QLabel(m_pPage5);
m_pTextLabel5->setText(__tr2qs("<p>That's it. The user registration has been completed.<br><br>Click \"<b>Finish</b>\" to close this dialog.</p>"));
+ m_pTextLabel5->setWordWrap(true);
m_pPage5Layout->addWidget(m_pTextLabel5,0,0);
addPage(m_pPage5,__tr2qs("Registration Complete"));