Kooky
cimportingredientdialog.h
Go to the documentation of this file.
1 
19 #ifndef CIMPORTINGREDIENTDIALOG_H
20 #define CIMPORTINGREDIENTDIALOG_H
21 
22 
23 #include "cplugin.h"
24 
25 #include <QDialog>
26 #include <QList>
27 #include <QStandardItemModel>
28 #include <QItemSelection>
29 
30 
31 namespace Ui {
33 }
34 
39 class cImportIngredientDialog : public QDialog
40 {
41  Q_OBJECT
42 
43 public:
49  explicit cImportIngredientDialog(QWidget *parent = 0);
55 
61  void setPluginList(const QList<cPlugin*> pluginList);
62 
63 private:
64  Ui::cImportIngredientDialog* ui;
65  QStandardItemModel* m_lpIngredientListModel;
66  QStandardItemModel* m_lpIngredientDetailsModel;
68 private slots:
69  void on_m_lpSearchButton_clicked();
70  void on_m_lpSearchString_textChanged(const QString &arg1);
77  void onIngredientListSelectionChanged(const QItemSelection& selected, const QItemSelection& deselected);
78 
79 protected:
80  QList<cPlugin*> m_pluginList;
88  QStandardItem* addGroup(const QString& group);
93  void init();
98  void initIngredientList();
103  void initIngredientDetails();
104 };
105 
106 #endif // CIMPORTINGREDIENTDIALOG_H
QStandardItemModel * m_lpIngredientDetailsModel
Definition: cimportingredientdialog.h:66
Ui::cImportIngredientDialog * ui
Definition: cimportingredientdialog.h:64
Definition: cconfigdialog.h:27
This dialog imports ingredients based on the selected import plugin.
Definition: cimportingredientdialog.h:39
QStandardItemModel * m_lpIngredientListModel
Definition: cimportingredientdialog.h:65
QList< cPlugin * > m_pluginList
Definition: cimportingredientdialog.h:80