Advanced Settings Panel
[pierogi] / pirselectkeysetform.h
index 29e5667..28961e3 100644 (file)
@@ -8,8 +8,9 @@
 
 class QListWidget;
 class QListWidgetItem;
-class PIRKeysetWidgetItem;
 class QKeyEvent;
+class QComboBox;
+class PIRKeysetWidgetItem;
 class PIREditKeysetDialog;
 class MainWindow;
 
@@ -42,6 +43,23 @@ public:
   // This is a bit of a hack, but not sure how to create a connection otherwise.
   QListWidget *getKeysetListWidget();
 
+  bool selectNextKeyset();
+  bool selectPrevKeyset();
+  bool selectFirstKeyset();
+
+  QString getCurrentKeysetName();
+
+  QString getKeysetName(
+    unsigned int id);
+
+  void openCurrentKeysetDialog();
+
+  void selectKeyset(
+    unsigned int targetID);
+
+  void populateKeysetComboBox(
+    QComboBox *comboBox);
+
 protected:
   void keyPressEvent(
     QKeyEvent *event);
@@ -58,6 +76,7 @@ private slots:
   
   void on_searchStringLineEdit_textChanged(const QString &arg1);
   void on_ssClosePushButton_clicked();
+  void on_showFavoritesCheckBox_toggled(bool checked);
 
 private:
   void refilterList();
@@ -67,6 +86,7 @@ private:
   MainWindow *mainWindow;
   PIREditKeysetDialog *editDialog;
 
+  bool showOnlyFavorites;
   PIRMakeName currentMake;
   QString searchString;
 };