Search for Power Button Panel
[pierogi] / forms / pirpowersearchform.h
1 #ifndef PIRPOWERSEARCHFORM_H
2 #define PIRPOWERSEARCHFORM_H
3
4 #include <QWidget>
5 #include <QString>
6
7 class MainWindow;
8 class PIRKeysetManager;
9 class QTimer;
10
11 namespace Ui {
12 class PIRPowerSearchForm;
13 }
14
15 class PIRPowerSearchForm : public QWidget
16 {
17   Q_OBJECT
18   
19 public:
20 //  explicit PIRPowerSearchForm(QWidget *parent = 0);
21
22   PIRPowerSearchForm(
23     MainWindow *mw);
24
25   ~PIRPowerSearchForm();
26
27   void setKeysetName(
28     QString name);
29   
30 private slots:
31   void on_stepBackwardButton_pressed();
32   void on_stepBackwardButton_released();
33   void on_stepForwardKey_pressed();
34   void on_stepForwardKey_released();
35   void on_fastBackwardButton_pressed();
36   void on_fastBackwardButton_released();
37   void on_fastForwardButton_pressed();
38   void on_fastForwardButton_released();
39
40   void gotoPrevKeyset();
41   void gotoNextKeyset();
42
43 private:
44   bool checkMutex();
45
46   Ui::PIRPowerSearchForm *ui;
47
48   MainWindow *mainWindow;
49
50   QTimer *advanceTimer;
51 };
52
53 #endif // PIRPOWERSEARCHFORM_H