4b233f04b24d7ec91c33c8e9647ec076bb049f50
[pierogi] / dialogs / pirfavoritesdialog.h
1 #ifndef PIRFAVORITESDIALOG_H
2 #define PIRFAVORITESDIALOG_H
3
4 #include <QDialog>
5
6 class QListWidget;
7 class PIRKeysetWidgetItem;
8 class QListWidgetItem;
9 class MainWindow;
10
11 namespace Ui {
12 class PIRFavoritesDialog;
13 }
14
15 class PIRFavoritesDialog : public QDialog
16 {
17   Q_OBJECT
18   
19 public:
20 //  explicit PIRFavoritesDialog(QWidget *parent = 0);
21
22   PIRFavoritesDialog(
23     MainWindow *mw);
24
25   ~PIRFavoritesDialog();
26
27   QListWidget *getFavoritesListWidget();
28
29   void addItem(
30     PIRKeysetWidgetItem *item);
31
32   int getCount();
33
34   PIRKeysetWidgetItem *getItem(
35     int index);
36
37   void removeItem(
38     unsigned int keysetID);
39
40   void selectPrevFavKeyset();
41   void selectNextFavKeyset();
42
43 private slots:
44   void on_favoritesListWidget_itemClicked();
45   
46 private:
47   Ui::PIRFavoritesDialog *ui;
48
49   MainWindow *mainWindow;
50 };
51
52 #endif // PIRFAVORITESDIALOG_H