|
Krita Source Code Documentation
|
#include <PythonPluginsModel.h>
Inheritance diagram for PythonPluginsModel:Public Types | |
| enum | Column { COL_ENABLED , COL_NAME , COL_COMMENT , COL_STATUS , COLUMN_COUNT } |
Public Member Functions | |
| PythonPlugin * | plugin (const QModelIndex &) const |
| PythonPluginsModel (QObject *parent, PythonPluginManager *pluginManager) | |
Protected Member Functions | |
| int | columnCount (const QModelIndex &) const override |
| QVariant | data (const QModelIndex &, int) const override |
| Qt::ItemFlags | flags (const QModelIndex &) const override |
| QVariant | headerData (int, Qt::Orientation, int) const override |
| QModelIndex | index (int row, int column, const QModelIndex &parent) const override |
| int | rowCount (const QModelIndex &) const override |
| bool | setData (const QModelIndex &, const QVariant &, int) override |
Private Attributes | |
| PythonPluginManager * | m_pluginManager |
Definition at line 19 of file PythonPluginsModel.h.
| Enumerator | |
|---|---|
| COL_ENABLED | |
| COL_NAME | |
| COL_COMMENT | |
| COL_STATUS | |
| COLUMN_COUNT | |
Definition at line 25 of file PythonPluginsModel.h.
| PythonPluginsModel::PythonPluginsModel | ( | QObject * | parent, |
| PythonPluginManager * | pluginManager ) |
Definition at line 20 of file PythonPluginsModel.cpp.
|
overrideprotected |
Definition at line 26 of file PythonPluginsModel.cpp.
References COLUMN_COUNT.
|
overrideprotected |
Definition at line 65 of file PythonPluginsModel.cpp.
References COL_COMMENT, COL_ENABLED, COL_NAME, COL_STATUS, PythonPlugin::comment(), PythonPlugin::errorReason(), KColorScheme::foreground(), index(), PythonPlugin::isEnabled(), PythonPlugin::isUnstable(), KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE, PythonPlugin::name(), KColorScheme::NegativeText, plugin(), PythonPlugin::statusText(), and KColorScheme::View.
|
overrideprotected |
Definition at line 123 of file PythonPluginsModel.cpp.
References COL_ENABLED, index(), KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE, and plugin().
|
overrideprotected |
Definition at line 48 of file PythonPluginsModel.cpp.
References COL_COMMENT, COL_NAME, and COL_STATUS.
|
overrideprotected |
Definition at line 36 of file PythonPluginsModel.cpp.
References COLUMN_COUNT, m_pluginManager, plugin(), and PythonPluginManager::plugin().
| PythonPlugin * PythonPluginsModel::plugin | ( | const QModelIndex & | index | ) | const |
Definition at line 147 of file PythonPluginsModel.cpp.
|
overrideprotected |
Definition at line 31 of file PythonPluginsModel.cpp.
References m_pluginManager, and PythonPluginManager::plugins().
|
overrideprotected |
Definition at line 136 of file PythonPluginsModel.cpp.
References index(), KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE, m_pluginManager, plugin(), PythonPluginManager::setPluginEnabled(), and value().
|
private |
Definition at line 44 of file PythonPluginsModel.h.