#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "xmlutil.h"
+#include "aboutdialog.h"
#include <QDebug>
#include <QMessageBox>
ui->setupUi(this);
connect(&mFrmAddProfile, SIGNAL(ProfileAddedSuccessfully(Profile)),
this, SLOT(updateProfileList(Profile)));
+/*
+ connect(&ui->mainMenuAbout, SIGNAL(Triggered(QAction*)),
+ this, SLOT(mainAboutClickedSlot()));
+*/
Initialize();
}
qDebug() << "Profile to be Edited: " << endl << Xmlutil::generateProfileXML(p);
mFrmAddProfile.setParent(this, Qt::Window);
mFrmAddProfile.setAttribute(Qt::WA_Maemo5StackedWindow);
+ mFrmAddProfile.clear();
mFrmAddProfile.showProfile(p);
}
+
+void MainWindow::on_mainPBQuit_clicked()
+{
+ mConfig.writeAllProfiles();
+ mConfig.closeConfig();
+ close();
+}
+
+void MainWindow::on_actionAbout_triggered()
+{
+ AboutDialog abtdlg;
+ abtdlg.exec();
+}
+
+void MainWindow::on_actionAdd_Templated_Profile_triggered()
+{
+ QMessageBox msg;
+ msg.setText("Placeholder for a nice function yet to be implemented!");
+ msg.exec();
+ return;
+}