Login bug fixed. Now result can't send to server without login.
[speedfreak] / Client / helpdialog.cpp
1 #include "helpdialog.h"
2 #include "ui_helpdialog.h"
3
4 HelpDialog::HelpDialog(QWidget *parent) :
5     QDialog(parent),
6     ui(new Ui::HelpDialog)
7 {
8     ui->setupUi(this);
9     helpResultsDialog = NULL;
10     helpAccelerationDialog = NULL;
11     helpRoutingDialog = NULL;
12     creditsDialog = NULL;
13     helpSettingsDialog = NULL;
14 }
15
16 HelpDialog::~HelpDialog()
17 {
18     delete ui;
19 }
20
21 void HelpDialog::changeEvent(QEvent *e)
22 {
23     QDialog::changeEvent(e);
24     switch (e->type()) {
25     case QEvent::LanguageChange:
26         ui->retranslateUi(this);
27         break;
28     default:
29         break;
30     }
31 }
32
33
34 void HelpDialog::on_pushButtonHelpResults_clicked()
35 {
36     if(!helpResultsDialog)
37     {
38         helpResultsDialog = new HelpResultsDialog;
39     }
40     helpResultsDialog->show();
41 }
42
43 void HelpDialog::on_pushButtonHelpAccelerate_clicked()
44 {
45     if(!helpAccelerationDialog)
46     {
47         helpAccelerationDialog = new HelpAccelerationDialog;
48     }
49     helpAccelerationDialog->show();
50 }
51
52 void HelpDialog::on_pushButtonHelpRoute_clicked()
53 {
54     if(!helpRoutingDialog)
55     {
56         helpRoutingDialog = new HelpRoutingDialog;
57     }
58     helpRoutingDialog->show();
59 }
60
61 void HelpDialog::on_pushButtonCredits_clicked()
62 {
63     if(!creditsDialog)
64     {
65         creditsDialog = new CreditsDialog;
66     }
67     creditsDialog->show();
68 }
69
70 void HelpDialog::on_pushButtonHelpSettings_clicked()
71 {
72     if(!helpSettingsDialog)
73     {
74         helpSettingsDialog = new HelpSettingsDialog;
75     }
76     helpSettingsDialog->show();
77 }