![]() |
Kooky
|
This is the class that implements the main window. More...
#include <cmainwindow.h>
Inheritance diagram for cMainWindow:
Collaboration diagram for cMainWindow:Public Member Functions | |
| cMainWindow (QWidget *parent=0) | |
| Constructor. More... | |
| ~cMainWindow () | |
| Destructor. More... | |
| QList< cPlugin * > | pluginList () |
| Returns the list of loaded plugins. More... | |
Private Slots | |
| void | pluginImportTriggered () |
| Testing of import trigger raised by import plugins. More... | |
| void | pluginExportTriggered () |
| Testing of export trigger raised by export plugins. More... | |
| void | pluginDBTriggered () |
| Testing of database trigger raised by database connector plugins. More... | |
| void | on_m_lpMenu_File_Exit_triggered () |
| Menu entry "File -> Exit" triggered. More... | |
| void | on_m_lpMenu_Tools_Options_triggered () |
| Menu entry "Tools -> Options" triggered. More... | |
| void | onIngredientsListCustomContextMenu (const QPoint &point) |
| Custom contest menu of ingredients list has been requested. More... | |
| void | onIngredientsListNew () |
| New ingredient has been requested. More... | |
| void | onIngredientsListImport () |
| Import of ingredient has been requested. More... | |
| void | onIngredientsListDelete () |
| Delete of ingredient has been requested. More... | |
| void | onIngredientsListEdit () |
| Edit of ingredient has been requested. More... | |
Private Member Functions | |
| void | init () |
| Initialized main windows. More... | |
| void | initDefaultSettings () |
| Initializes default settings for Kooky. More... | |
| void | loadPlugins (const QString &szPluginDir) |
| Loads plugins in the given path. More... | |
| cPlugin * | plugin (QAction *lpAction) |
| Finds a plugin with the given action. More... | |
Private Attributes | |
| Ui::cMainWindow * | ui |
| QList< cPlugin * > | m_pluginList |
| QStandardItemModel * | m_lpIngredientsListModel |
| QAction * | m_lpIngredientsListNew |
| QAction * | m_lpIngredientsListImport |
| QAction * | m_lpIngredientsListDelete |
| QAction * | m_lpIngredientsListEdit |
| QMenu * | m_lpIngredientsListMenu |
This class implements the main window and main functionality of Kooky.
|
explicit |
| cMainWindow::~cMainWindow | ( | ) |
References m_lpIngredientsListDelete, m_lpIngredientsListEdit, m_lpIngredientsListNew, and ui.
|
private |
References initDefaultSettings(), loadPlugins(), m_lpIngredientsListDelete, m_lpIngredientsListEdit, m_lpIngredientsListImport, m_lpIngredientsListMenu, m_lpIngredientsListModel, m_lpIngredientsListNew, onIngredientsListCustomContextMenu(), onIngredientsListDelete(), onIngredientsListEdit(), onIngredientsListImport(), onIngredientsListNew(), and ui.
Referenced by cMainWindow().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
|
private |
| szPluginDir | Path to plugins |
References cPlugin::isValid(), m_pluginList, pluginDBTriggered(), pluginExportTriggered(), pluginImportTriggered(), cPlugin::pluginName(), cPlugin::setAction(), and ui.
Referenced by init().
Here is the call graph for this function:
Here is the caller graph for this function:
|
privateslot |
|
privateslot |
|
privateslot |
| point | Current position of mouse cursor. |
References m_lpIngredientsListDelete, m_lpIngredientsListEdit, m_lpIngredientsListMenu, m_lpIngredientsListNew, and ui.
Referenced by init().
Here is the caller graph for this function:
|
privateslot |
|
privateslot |
|
privateslot |
References m_pluginList, and cImportIngredientDialog::setPluginList().
Referenced by init().
Here is the call graph for this function:
Here is the caller graph for this function:
|
privateslot |
|
private |
| lpAction | Action of the plugin. |
References m_pluginList.
Referenced by pluginDBTriggered().
Here is the caller graph for this function:
|
privateslot |
References cInterface::config(), cPlugin::dbInterface(), cDBInterface::init(), plugin(), cInterface::pluginName(), and cPlugin::pluginName().
Referenced by loadPlugins().
Here is the call graph for this function:
Here is the caller graph for this function:
|
privateslot |
|
privateslot |
| QList< cPlugin * > cMainWindow::pluginList | ( | ) |
References m_pluginList.
Referenced by cOptions::cOptions().
Here is the caller graph for this function:
|
private |
"Delee Ingredient" Action for ingredients context menu
Referenced by init(), onIngredientsListCustomContextMenu(), and ~cMainWindow().
|
private |
"Edit Ingredient" Action for ingredients context menu
Referenced by init(), onIngredientsListCustomContextMenu(), and ~cMainWindow().
|
private |
"Import Ingredient" Action for ingredients context menu
Referenced by init().
|
private |
Context menu for ingredients list
Referenced by init(), and onIngredientsListCustomContextMenu().
|
private |
standard item model for ingredients list
Referenced by init().
|
private |
"New Ingredient" Action for ingredients context menu
Referenced by init(), onIngredientsListCustomContextMenu(), and ~cMainWindow().
|
private |
List of loaded plugins
Referenced by loadPlugins(), onIngredientsListImport(), plugin(), and pluginList().
|
private |
the main window GUI
Referenced by init(), loadPlugins(), onIngredientsListCustomContextMenu(), and ~cMainWindow().