summaryrefslogtreecommitdiffstats
path: root/utils/themeeditor/gui/skintimer.h
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-07-08 21:53:27 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-07-08 21:53:27 +0000
commit73a3747bc1b33200207768b101bf56083416d756 (patch)
tree08c86af3f3b785842f6c4753eb7de2bebb55d4e5 /utils/themeeditor/gui/skintimer.h
parent9dd5f75966f43b59740259647ba37d0b1d71f7c4 (diff)
downloadrockbox-73a3747bc1b33200207768b101bf56083416d756.tar.gz
rockbox-73a3747bc1b33200207768b101bf56083416d756.tar.bz2
rockbox-73a3747bc1b33200207768b101bf56083416d756.zip
Theme Editor: Built a ui for the timer panel, not functional yet
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27353 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/gui/skintimer.h')
-rw-r--r--utils/themeeditor/gui/skintimer.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/utils/themeeditor/gui/skintimer.h b/utils/themeeditor/gui/skintimer.h
new file mode 100644
index 0000000000..b6c8061028
--- /dev/null
+++ b/utils/themeeditor/gui/skintimer.h
@@ -0,0 +1,58 @@
+/***************************************************************************
+ * __________ __ ___.
+ * Open \______ \ ____ ____ | | _\_ |__ _______ ___
+ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
+ * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
+ * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
+ * \/ \/ \/ \/ \/
+ * $Id$
+ *
+ * Copyright (C) 2010 Robert Bieber
+ *
+ * This program 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 2
+ * of the License, or (at your option) any later version.
+ *
+ * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
+ * KIND, either express or implied.
+ *
+ ****************************************************************************/
+
+#ifndef SKINTIMER_H
+#define SKINTIMER_H
+
+#include <QWidget>
+#include <QTimer>
+
+#include "devicestate.h"
+
+namespace Ui {
+ class SkinTimer;
+}
+
+class SkinTimer : public QWidget {
+ Q_OBJECT
+public:
+ static const int millisPerTick;
+
+ SkinTimer(DeviceState* device, QWidget *parent = 0);
+ ~SkinTimer();
+
+private slots:
+ void start();
+ void stop();
+ void tick();
+ void stateChange();
+
+private:
+ void setupUI();
+
+ Ui::SkinTimer *ui;
+ DeviceState* device;
+
+ QTimer timer;
+ unsigned long int elapsedTime;
+};
+
+#endif // SKINTIMER_H