/*
* Help dialog
*
- * @author Janne Änäkkälä <janne.anakkala@fudeco.com>
+ * @author Janne Änäkkälä <janne.anakkala@fudeco.com>
* @author Toni Jussila <toni.jussila@fudeco.com>
* @copyright (c) 2010 Speed Freak team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
#include <QDebug>
/**
- * Constructor
+ * Default constructor of this class.
*/
HelpDialog::HelpDialog(QWidget *parent) :
QDialog(parent),
helpRoutingDialog = NULL;
creditsDialog = NULL;
helpSettingsDialog = NULL;
+ helpUsersDialog = NULL;
}
/**
- * Destructor
+ * Default destructor of this class.
*/
HelpDialog::~HelpDialog()
{
}
/**
- *
+ * This slot function called when ever help results button clicked.
*/
void HelpDialog::on_pushButtonHelpResults_clicked()
{
}
/**
- *
+ * This slot function called when ever help accelerate button clicked.
*/
void HelpDialog::on_pushButtonHelpAccelerate_clicked()
{
}
/**
- *
+ * This slot function called when ever help route button clicked.
*/
void HelpDialog::on_pushButtonHelpRoute_clicked()
{
}
/**
- *
+ * This slot function called when ever credits button clicked.
*/
void HelpDialog::on_pushButtonCredits_clicked()
{
}
/**
- *
+ * This slot function called when ever help settings button clicked.
*/
void HelpDialog::on_pushButtonHelpSettings_clicked()
{
delete helpSettingsDialog;
helpSettingsDialog = NULL;
}
+
+ if(helpUsersDialog)
+ {
+ qDebug() << "__Help kill: helpUsersDialog";
+ delete helpUsersDialog;
+ helpUsersDialog = NULL;
+ }
+}
+
+/**
+ * This slot function called when ever help users button clicked.
+ */
+void HelpDialog::on_pushButtonHelpUsers_clicked()
+{
+ if(!helpUsersDialog)
+ {
+ helpUsersDialog = new HelpUsersDialog;
+ }
+ connect(helpUsersDialog, SIGNAL(rejected()), this, SLOT(killHelpDialogs()));
+ helpUsersDialog->show();
}