diff --git a/README.md b/README.md index ae9385c..ad81e36 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,6 @@ Additional information TODO (wish list) ---------------- -* netctl-auto support to profiles * netctl-auto support to dataengine * man pages * code review diff --git a/sources/gui/src/mainwindow.cpp b/sources/gui/src/mainwindow.cpp index 70c89f8..0110109 100644 --- a/sources/gui/src/mainwindow.cpp +++ b/sources/gui/src/mainwindow.cpp @@ -204,6 +204,7 @@ void MainWindow::createActions() connect(ui->pushButton_mainRefresh, SIGNAL(clicked(bool)), this, SLOT(updateMainTab())); connect(ui->pushButton_mainRestart, SIGNAL(clicked(bool)), this, SLOT(mainTabRestartProfile())); connect(ui->pushButton_mainStart, SIGNAL(clicked(bool)), this, SLOT(mainTabStartProfile())); + connect(ui->pushButton_netctlAuto, SIGNAL(clicked(bool)), netctlAutoWin, SLOT(showWindow())); connect(ui->tableWidget_main, SIGNAL(itemActivated(QTableWidgetItem *)), this, SLOT(mainTabStartProfile())); connect(ui->tableWidget_main, SIGNAL(currentItemChanged(QTableWidgetItem *, QTableWidgetItem *)), this, SLOT(mainTabRefreshButtons(QTableWidgetItem *, QTableWidgetItem *))); connect(ui->tableWidget_main, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(mainTabContextualMenu(QPoint))); @@ -321,7 +322,12 @@ void MainWindow::updateMainTab() } ui->tabWidget->setDisabled(true); - QList profiles = netctlCommand->getProfileList();; + QList profiles = netctlCommand->getProfileList(); + + if (netctlCommand->isNetctlAutoRunning()) + ui->widget_netctlAuto->setHidden(false); + else + ui->widget_netctlAuto->setHidden(true); ui->tableWidget_main->setSortingEnabled(false); ui->tableWidget_main->selectRow(-1); diff --git a/sources/gui/src/mainwindow.ui b/sources/gui/src/mainwindow.ui index 5338a8c..3ce3444 100644 --- a/sources/gui/src/mainwindow.ui +++ b/sources/gui/src/mainwindow.ui @@ -6,8 +6,8 @@ 0 0 - 483 - 511 + 481 + 509 @@ -25,6 +25,32 @@ Connect to profile + + + + + + + + 0 + 0 + + + + netctl-auto is running + + + + + + + Show + + + + + + @@ -180,7 +206,7 @@ 0 0 - 451 + 449 353 @@ -341,7 +367,7 @@ 0 0 - 483 + 481 22 @@ -404,7 +430,9 @@ - + + + Refresh @@ -412,7 +440,9 @@ - + + + Start profile @@ -420,7 +450,9 @@ - + + + Restart profile @@ -428,7 +460,9 @@ - + + + Enable profile @@ -436,7 +470,9 @@ - + + + Edit profile @@ -444,7 +480,9 @@ - + + + Remove profile @@ -452,7 +490,9 @@ - + + + Clear @@ -460,7 +500,9 @@ - + + + Refresh @@ -468,7 +510,9 @@ - + + + Load profile @@ -476,7 +520,9 @@ - + + + Save profile @@ -484,7 +530,9 @@ - + + + Start Wi-Fi @@ -492,7 +540,9 @@ - + + + Remove profile