[Pkg-running-devel] [openambit] 15/131: Added checkbox "resync all"

Christian Perrier bubulle at moszumanska.debian.org
Thu Jul 17 20:19:07 UTC 2014


This is an automated email from the git hooks/post-receive script.

bubulle pushed a commit to branch master
in repository openambit.

commit 4f5733d7f57f62e60316a5b037aa3945f30bdc9f
Author: Emil Ljungdahl <emil at kratern.se>
Date:   Sat Dec 14 11:43:21 2013 +0100

    Added checkbox "resync all"
---
 src/openambit/mainwindow.cpp | 5 ++++-
 src/openambit/mainwindow.ui  | 7 +++++++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/src/openambit/mainwindow.cpp b/src/openambit/mainwindow.cpp
index 138b28b..ddbdc5b 100644
--- a/src/openambit/mainwindow.cpp
+++ b/src/openambit/mainwindow.cpp
@@ -80,6 +80,7 @@ void MainWindow::showSettings()
 
 void MainWindow::syncNowClicked()
 {
+    ui->checkBoxResyncAll->setEnabled(false);
     ui->buttonSyncNow->setEnabled(false);
     currentLogMessageRow = NULL;
     QLayoutItem *tmpItem;
@@ -89,7 +90,7 @@ void MainWindow::syncNowClicked()
     }
     ui->syncProgressBar->setHidden(false);
     ui->syncProgressBar->setValue(0);
-    emit MainWindow::syncNow(false);
+    emit MainWindow::syncNow(ui->checkBoxResyncAll->isChecked());
 }
 
 void MainWindow::deviceDetected(ambit_device_info_t deviceInfo, bool supported)
@@ -147,6 +148,8 @@ void MainWindow::syncFinished(bool success)
         currentLogMessageRow->setStatus(LogMessageRow::StatusFailed);
         ui->verticalLayoutLogMessages->addLayout(currentLogMessageRow);
     }
+    ui->checkBoxResyncAll->setChecked(false);
+    ui->checkBoxResyncAll->setEnabled(true);
     ui->buttonSyncNow->setEnabled(true);
     ui->syncProgressBar->setHidden(true);
 
diff --git a/src/openambit/mainwindow.ui b/src/openambit/mainwindow.ui
index 1936aec..c3988c8 100644
--- a/src/openambit/mainwindow.ui
+++ b/src/openambit/mainwindow.ui
@@ -228,6 +228,13 @@
            </widget>
           </item>
           <item>
+           <widget class="QCheckBox" name="checkBoxResyncAll">
+            <property name="text">
+             <string>Resync all</string>
+            </property>
+           </widget>
+          </item>
+          <item>
            <widget class="QPushButton" name="buttonSyncNow">
             <property name="text">
              <string>Sync now</string>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-running/openambit.git



More information about the Pkg-running-devel mailing list