X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=pirselectkeysetform.h;h=28961e31b944f34afde901bdadc95687d5e60765;hb=HEAD;hp=bb0ed2b6c0b8f54b7f8999e20c206f49cc882b57;hpb=04d45dab5c6b32e9214fa21b7ade432da95c8a98;p=pierogi diff --git a/pirselectkeysetform.h b/pirselectkeysetform.h index bb0ed2b..28961e3 100644 --- a/pirselectkeysetform.h +++ b/pirselectkeysetform.h @@ -7,9 +7,12 @@ #include "pirmakenames.h" class QListWidget; -class PIRKeysetWidgetItem; +class QListWidgetItem; class QKeyEvent; -//class PIRSearchStringDialog; +class QComboBox; +class PIRKeysetWidgetItem; +class PIREditKeysetDialog; +class MainWindow; namespace Ui { class PIRSelectKeysetForm; @@ -20,7 +23,11 @@ class PIRSelectKeysetForm : public QWidget Q_OBJECT public: - explicit PIRSelectKeysetForm(QWidget *parent = 0); +// explicit PIRSelectKeysetForm(QWidget *parent = 0); + + PIRSelectKeysetForm( + MainWindow *mw); + ~PIRSelectKeysetForm(); /* @@ -36,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); @@ -46,15 +70,23 @@ private slots: void filterListByString( QString string); + + void openKeysetDialog( + QListWidgetItem *); void on_searchStringLineEdit_textChanged(const QString &arg1); void on_ssClosePushButton_clicked(); + void on_showFavoritesCheckBox_toggled(bool checked); private: void refilterList(); Ui::PIRSelectKeysetForm *ui; + MainWindow *mainWindow; + PIREditKeysetDialog *editDialog; + + bool showOnlyFavorites; PIRMakeName currentMake; QString searchString; };