Mercurial > trustbridge
view ui/administratorwindow.h @ 364:dc4efb0a70cb
Add Linux support
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Mon, 14 Apr 2014 16:58:20 +0000 |
parents | 9ba7b4b4c1de |
children | f9c98f9e9f76 |
line wrap: on
line source
#ifndef ADMINSTRATORWINDOW_H #define ADMINSTRATORWINDOW_H /** * @file administratorwindow.h * @brief Administrator UI controller */ #include <QMainWindow> #include <QSettings> #include <QMenuBar> #include <QTableView> #include <QPushButton> #include "certificatelist.h" #include "certificatetablemodel.h" class QMenu; class QAction; class AdministratorWindow : public QMainWindow { Q_OBJECT public: AdministratorWindow(); private slots: void createInstaller(); void showSettings(); void showHelp(); void showAbout(); void loadCertificateFile(); void addCertificates(); private: void createActions(); void createMenuBar(); void createContent(); void loadCertificateTable(); void addToCertificateTable(const QList<Certificate> &certs); QSettings settings; QMenuBar *menuBar; QTableView *certificateView; CertificateList certList; CertificateTabelModel *certificateModel; QPushButton *saveButton; QPushButton *loadButton; QPushButton *addButton; QPushButton *removeButton; }; #endif // ADMINSTRATORWINDOW_H