Release 0.1 + a fix
[kitchenalert] / src / kitchenalertmainwindow.h
index 882d720..cf151f0 100644 (file)
@@ -1,9 +1,11 @@
 /**************************************************************************
-        KitchenAlert v.0.01
+        KitchenAlert
 
         Copyright (C) 2010  Heli Hyvättinen
 
-        This program is free software: you can redistribute it and/or modify
+        This file is part of KitchenAlert.
+
+        Kitchen Alert is free software: you can redistribute it and/or modify
         it under the terms of the GNU General Public License as published by
         the Free Software Foundation, either version 3 of the License, or
         (at your option) any later version.
 #include "timer.h"
 #include "currentalertstablemodel.h"
 #include <QItemSelection>
+#include "alertsound.h"
 
 
 namespace Ui {
     class KitchenAlertMainWindow;
 }
 
+
+/*! The main window class of KitchenAlert'
+
+  @author Heli Hyvättinen
+  @date 2010-07-20
+  @version 0.1
+
+Operates the UI.
+
+*/
+
 class KitchenAlertMainWindow : public QMainWindow
 {
     Q_OBJECT 
@@ -46,20 +60,26 @@ public:
 
 
 public slots:
-    void openTimerSequence();
     void newTimerSequence();
+    void openSelectSoundDialog();
+    void openAbout();
+
 
-    void updateTime(int seconds);
     void alert(QModelIndex indexOfAlerted);
-    void timerSelected(QItemSelection,QItemSelection);
+    void timerSelected(QItemSelection selected,QItemSelection deselected);
     void snooze();
     void restart();
     void stop();
 
+
 protected:
     void changeEvent(QEvent *e);
+    bool event(QEvent *event);
+
+    void disableSelectionDependentButtons();
 
 private:
+
     Ui::KitchenAlertMainWindow *ui;
 
     QList <Timer *> currentTimers_;
@@ -67,6 +87,10 @@ private:
     CurrentAlertsTableModel model_;
 
     QModelIndex selectedRow();
+
+    AlertSound alertSound_;
+
+
 };
 
 #endif // KITCHENALERTMAINWINDOW_H