A couple of UI additions
[pierogi] / forms / piraltmainform.h
1 #ifndef PIRALTMAINFORM_H
2 #define PIRALTMAINFORM_H
3
4 #include <QWidget>
5
6 class MainWindow;
7 class PIRKeysetManager;
8
9 namespace Ui {
10 class PIRAltMainForm;
11 }
12
13 class PIRAltMainForm : public QWidget
14 {
15   Q_OBJECT
16   
17 public:
18 //  explicit PIRAltMainForm(QWidget *parent = 0);
19   PIRAltMainForm(
20     MainWindow *mw);
21
22   ~PIRAltMainForm();
23
24   void enableButtons(
25     const PIRKeysetManager *keyset,
26     unsigned int id);
27
28   void enableButtons(
29     const PIRKeysetManager *keyset,
30     unsigned int currentID,
31     unsigned int defaultID);
32
33 signals:
34   void powerEnabled(bool);
35   void volumeUpEnabled(bool);
36   void volumeDownEnabled(bool);
37   void channelUpEnabled(bool);
38   void channelDownEnabled(bool);
39   void muteEnabled(bool);
40
41   void keysetMakeChanged(QString);
42   void keysetNameChanged(QString);
43   
44 private slots:
45   void on_volumeUpButton_pressed();
46   void on_volumeUpButton_released();
47   void on_volumeDownButton_pressed();
48   void on_volumeDownButton_released();
49   void on_muteButton_pressed();
50   void on_muteButton_released();
51   void on_powerButton_pressed();
52   void on_powerButton_released();
53   void on_channelUpButton_pressed();
54   void on_channelUpButton_released();
55   void on_channelDownButton_pressed();
56   void on_channelDownButton_released();
57
58 private:
59   Ui::PIRAltMainForm *ui;
60
61   MainWindow *mainWindow;
62   unsigned int defaultID;
63 };
64
65 #endif // PIRALTMAINFORM_H