Mercurial > trustbridge
view ui/administratorwindow.h @ 400:d481b1d0956f
Resized the administrator main window.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Wed, 16 Apr 2014 10:08:32 +0200 |
parents | 9731d28b95af |
children | 17e1c8f37d72 |
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 saveCertificateFile(); void addCertificates(); void removeCertificates(); void clickedCertificate(const QModelIndex&); 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