Copyright (C) 2010 Ixonos Plc. Authors:
Henri Lampela - henri.lampela@ixonos.com
+ Kaj Wallin - kaj.wallin@ixonos.com
Situare is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
USA.
*/
-
+#include <QtGui>
#include "mainwindow.h"
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
{
this->setWindowTitle(tr("Situare"));
+ createMenus();
}
MainWindow::~MainWindow()
{
}
+
+void MainWindow::createMenus()
+{
+ toListViewAct = new QAction(tr("List"),this);
+ toMapViewAct = new QAction(tr("Map"),this);
+ viewMenu = menuBar()->addMenu(tr("View"));
+ viewMenu->addAction(toListViewAct);
+ viewMenu->addAction(toMapViewAct);
+}
Copyright (C) 2010 Ixonos Plc. Authors:
Henri Lampela - henri.lampela@ixonos.com
+ Kaj Wallin - kaj.wallin@ixonos.com
Situare is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
#include <QtGui/QMainWindow>
+class QMenu;
+class QAction;
+
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = 0);
~MainWindow();
+
+private:
+ void createMenus();
+
+ QMenu *viewMenu;
+ QAction *toListViewAct;
+ QAction *toMapViewAct;
};
#endif // MAINWINDOW_H