projects
/
kitchenalert
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Sticky timers are loaded with zero timer at startup
[kitchenalert]
/
src
/
kitchenalertmainwindow.h
diff --git
a/src/kitchenalertmainwindow.h
b/src/kitchenalertmainwindow.h
index
1ec3974
..
9511c40
100644
(file)
--- a/
src/kitchenalertmainwindow.h
+++ b/
src/kitchenalertmainwindow.h
@@
-40,7
+40,7
@@
namespace Ui {
/*! The main window class of KitchenAlert'
@author Heli Hyvättinen
/*! The main window class of KitchenAlert'
@author Heli Hyvättinen
- @date 2011-04-26
+ @date 2011-01-05
@version 0.3.0
Operates the UI.
@version 0.3.0
Operates the UI.
@@
-123,6
+123,11
@@
public slots:
*/
void loadTimer();
*/
void loadTimer();
+ /*! Opens a dialog for choosing which timers to preload at start */
+ void openStickyDialog();
+
+ /*! Loads the sticky timers. */
+ bool loadStickies();
signals:
signals:
@@
-144,13
+149,17
@@
protected:
*/
void disableSelectionDependentButtons();
*/
void disableSelectionDependentButtons();
+
+
+
+
private:
Ui::KitchenAlertMainWindow *ui;
CurrentAlertsTableModel model_; /*! The model that stores the alerts */
private:
Ui::KitchenAlertMainWindow *ui;
CurrentAlertsTableModel model_; /*! The model that stores the alerts */
- QString defaultSaveDirectory_;
+ QString defaultSaveDirectory_;
/*!
Returns a QMoldelIndex pointing to the cell in the column 0 of the row that is currently selected.
/*!
Returns a QMoldelIndex pointing to the cell in the column 0 of the row that is currently selected.
@@
-163,9
+172,10
@@
private:
*/
void initializeAlertSound();
*/
void initializeAlertSound();
- void initializeTimer(Timer * p_timer);
-
+ void initializeTimer(Timer * p_timer, bool startImmediately = true);
+ //Adds the timer to the model and optionally starts it on success, gives an error message on failure
+ bool loadTimer(QString filename, bool startImmediately);
};
#endif // KITCHENALERTMAINWINDOW_H
};
#endif // KITCHENALERTMAINWINDOW_H