Distinguish between "desired" and "reported" batch queue state

This allows the switch to both reflect the state of the queue and
function as an input widget.
This commit is contained in:
George Hilliard
2018-11-01 00:47:06 -05:00
parent 4a765cc91f
commit cc6cbe8347
2 changed files with 41 additions and 36 deletions

View File

@@ -53,7 +53,7 @@ class BatchQueuePanel : public Gtk::VBox,
Gtk::HBox* bottomBox;
Gtk::HBox* topBox;
std::atomic<bool> qStartStopState;
std::atomic<bool> queueShouldRun;
IdleRegister idle_register;
@@ -76,6 +76,7 @@ private:
void startBatchProc ();
void stopBatchProc ();
void startOrStopBatchProc();
void setGuiFromBatchState(bool queueRunning, int qsize);
void pathFolderChanged ();
void pathFolderButtonPressed ();