+
+/**
+ * This function enable send server button.
+ */
+void RouteDialog::setSendServerButtonEnabled()
+{
+ ui->sendPushButton->setEnabled(true);
+}
+
+/**
+ * This function check login and set send route to server button disabled/enabled.
+ */
+void RouteDialog::checkLogin()
+{
+ if (loginSaved())
+ {
+ ui->sendPushButton->setEnabled(true);
+ ui->labelInfoToUser->setText("");
+ }
+ else
+ {
+ ui->sendPushButton->setEnabled(false);
+ ui->labelInfoToUser->setText("You're not logged! Please register or log in.");
+ }
+}
+
+/**
+ * This slot function called when ever info button clicked.
+ */
+void RouteDialog::on_pushButtonInfo_clicked()
+{
+ if(!helpRoutingDialog)
+ {
+ helpRoutingDialog = new HelpRoutingDialog;
+ }
+ connect(helpRoutingDialog, SIGNAL(rejected()), this, SLOT(killHelpDialog()));
+ helpRoutingDialog->show();
+}
+
+/**
+ * This slot function called when ever dialog rejected.
+ */
+void RouteDialog::killHelpDialog()
+{
+ if(helpRoutingDialog)
+ {
+ qDebug() << "__Route kill: helpRoutingDialog";
+ delete helpRoutingDialog;
+ helpRoutingDialog = NULL;
+ }
+}