Kooky
cmainwindow.h
Go to the documentation of this file.
1 
27 #ifndef CMAINWINDOW_H
28 #define CMAINWINDOW_H
29 
30 #include "cplugin.h"
31 
32 #include <QList>
33 #include <QMainWindow>
34 #include <QStandardItemModel>
35 
36 
37 namespace Ui
38 {
39  class cMainWindow;
40 }
41 
42 class cMainWindow : public QMainWindow
43 {
44  Q_OBJECT
45 
46 public:
52  explicit cMainWindow(QWidget *parent = 0);
57  ~cMainWindow();
58 
64  QList<cPlugin*> pluginList();
65 private slots:
70  void pluginImportTriggered();
75  void pluginExportTriggered();
80  void pluginDBTriggered();
85  void on_m_lpMenu_File_Exit_triggered();
90  void on_m_lpMenu_Tools_Options_triggered();
91 
97  void onIngredientsListCustomContextMenu(const QPoint& point);
102  void onIngredientsListNew();
107  void onIngredientsListImport();
112  void onIngredientsListDelete();
117  void onIngredientsListEdit();
118 
119 private:
120  Ui::cMainWindow* ui;
121  QList<cPlugin*> m_pluginList;
122  QStandardItemModel* m_lpIngredientsListModel;
133  void init();
138  void initDefaultSettings();
144  void loadPlugins(const QString& szPluginDir);
151  cPlugin* plugin(QAction* lpAction);
152 protected:
153 };
154 
155 #endif // CMAINWINDOW_H
This class holds data of an plugin.
Definition: cplugin.h:32
QAction * m_lpIngredientsListDelete
Definition: cmainwindow.h:125
QMenu * m_lpIngredientsListMenu
Definition: cmainwindow.h:127
Definition: cconfigdialog.h:27
Ui::cMainWindow * ui
Definition: cmainwindow.h:120
QAction * m_lpIngredientsListEdit
Definition: cmainwindow.h:126
QList< cPlugin * > m_pluginList
Definition: cmainwindow.h:121
QStandardItemModel * m_lpIngredientsListModel
Definition: cmainwindow.h:122
This is the class that implements the main window.
Definition: cmainwindow.h:42
QAction * m_lpIngredientsListNew
Definition: cmainwindow.h:123
QAction * m_lpIngredientsListImport
Definition: cmainwindow.h:124