#include <WidgetFactory.h>
Public Member Functions | |
Py::Object | fromQIcon (const QIcon *) |
Py::Object | fromQWidget (QWidget *, const char *className=0) |
const char * | getWrapperName (QObject *) const |
bool | loadCoreModule () |
bool | loadGuiModule () |
bool | loadWidgetsModule () |
PythonWrapper () | |
bool | toCString (const Py::Object &, std::string &) |
QGraphicsItem * | toQGraphicsItem (PyObject *ptr) |
QIcon * | toQIcon (PyObject *pyobj) |
QObject * | toQObject (const Py::Object &) |
Static Public Member Functions | |
static void | createChildrenNameAttributes (PyObject *root, QObject *object) |
static void | setParent (PyObject *pyWdg, QObject *parent) |
Constructor & Destructor Documentation
◆ PythonWrapper()
PythonWrapper::PythonWrapper | ( | ) |
Member Function Documentation
◆ createChildrenNameAttributes()
References Gui::qt_identifyType().
Referenced by Gui::UiLoaderPy::load().
◆ fromQIcon()
Py::Object PythonWrapper::fromQIcon | ( | const QIcon * | icon | ) |
Create a Python wrapper for the icon. The icon must be created on the heap and the Python wrapper takes ownership of it.
Referenced by Gui::ViewProviderPy::getIcon(), and Gui::Application::sGetIcon().
◆ fromQWidget()
Py::Object PythonWrapper::fromQWidget | ( | QWidget * | widget, |
const char * | className = 0 |
||
) |
◆ getWrapperName()
const char * PythonWrapper::getWrapperName | ( | QObject * | obj | ) | const |
Referenced by Gui::UiLoaderPy::createWidget(), and Gui::UiLoaderPy::load().
◆ loadCoreModule()
bool PythonWrapper::loadCoreModule | ( | ) |
◆ loadGuiModule()
bool PythonWrapper::loadGuiModule | ( | ) |
Referenced by Gui::UiLoaderPy::createWidget(), Gui::ViewProviderPythonFeatureImp::getIcon(), Gui::ViewProviderPy::getIcon(), Gui::UiLoaderPy::load(), Gui::TaskView::TaskDialogPython::modifyStandardButtons(), Gui::ViewProviderPythonFeatureImp::setupContextMenu(), Gui::Application::sGetIcon(), and Gui::Application::sGetMainWindow().
◆ loadWidgetsModule()
bool PythonWrapper::loadWidgetsModule | ( | ) |
Referenced by Gui::UiLoaderPy::createWidget(), Gui::ViewProviderPythonFeatureImp::getIcon(), Gui::ViewProviderPy::getIcon(), Gui::UiLoaderPy::load(), Gui::TaskView::TaskDialogPython::modifyStandardButtons(), Gui::ViewProviderPythonFeatureImp::setupContextMenu(), Gui::Application::sGetIcon(), and Gui::Application::sGetMainWindow().
◆ setParent()
Referenced by Gui::UiLoaderPy::load().
◆ toCString()
bool PythonWrapper::toCString | ( | const Py::Object & | pyobject, |
std::string & | str | ||
) |
Referenced by Gui::UiLoaderPy::load().
◆ toQGraphicsItem()
QGraphicsItem * PythonWrapper::toQGraphicsItem | ( | PyObject * | ptr | ) |
References Gui::qt_getCppPointer().
◆ toQIcon()
QIcon * PythonWrapper::toQIcon | ( | PyObject * | pyobj | ) |
Referenced by Gui::ViewProviderPythonFeatureImp::getIcon().
◆ toQObject()
QObject * PythonWrapper::toQObject | ( | const Py::Object & | pyobject | ) |
The documentation for this class was generated from the following files:
- src/Gui/WidgetFactory.h
- src/Gui/WidgetFactory.cpp