+ add toolbar config

+ create interface class
* update UI
This commit is contained in:
arcan1s
2015-03-13 05:12:06 +03:00
parent 02432be630
commit 26afd90df9
24 changed files with 1322 additions and 307 deletions

View File

@ -22,7 +22,7 @@
#include <QTableWidgetItem>
class Netctl;
class MainWindow;
namespace Ui {
class NetctlAutoWindow;
@ -37,9 +37,11 @@ public:
const bool debugCmd = false,
const QMap<QString, QString> settings = QMap<QString, QString>());
~NetctlAutoWindow();
Qt::ToolBarArea getToolBarArea();
public slots:
void showWindow();
void updateToolBarState(const Qt::ToolBarArea area = Qt::TopToolBarArea);
private slots:
// table
@ -59,8 +61,8 @@ private slots:
private:
// ui
Ui::NetctlAutoWindow *ui = nullptr;
MainWindow *mainWindow = nullptr;
// backend
Netctl *netctlCommand = nullptr;
QString checkStatus(const bool statusBool, const bool nullFalse = false);
void createActions();
bool debug = false;