#include <FCConfig.h>#include <Python.h>#include <QApplication>#include <QIcon>#include <QThread>#include <Inventor/Qt/SoQt.h>#include <Base/Exception.h>#include <Base/Factory.h>#include <Base/Interpreter.h>#include <App/Application.h>#include <Gui/Application.h>#include <Gui/BitmapFactory.h>#include <Gui/MainWindow.h>#include <Gui/SoFCDB.h>Go to the source code of this file.
Classes | |
| class | GUIThread |
Functions | |
| static PyObject * | FreeCADGui_embedToWindow (PyObject *, PyObject *args) |
| static PyObject * | FreeCADGui_exec_loop (PyObject *, PyObject *args) |
| static PyObject * | FreeCADGui_setupWithoutGUI (PyObject *, PyObject *args) |
| static PyObject * | FreeCADGui_showMainWindow (PyObject *, PyObject *args) |
| PyMODINIT_FUNC | initFreeCADGui () |
| static QWidget * | setupMainWindow () |
Variables | |
| struct PyMethodDef | FreeCADGui_methods [] |
Definition at line 173 of file FreeCADGuiPy.cpp.
References Gui::getMainWindow().
Definition at line 124 of file FreeCADGuiPy.cpp.
Definition at line 145 of file FreeCADGuiPy.cpp.
References mach_dist_gui::app, Gui::SoFCDB::init(), Gui::Application::Instance, and Gui::SoFCDB::isInitialized().
Definition at line 83 of file FreeCADGuiPy.cpp.
References setupMainWindow().
| PyMODINIT_FUNC initFreeCADGui | ( | ) |
Definition at line 299 of file FreeCADGuiPy.cpp.
References App::Application::Config(), Gui::Application::initApplication(), Base::Interpreter(), and Base::Exception::what().
| static QWidget * setupMainWindow | ( | ) | [static] |
Definition at line 235 of file FreeCADGuiPy.cpp.
References mach_dist_gui::app, Gui::BitmapFactory(), App::Application::Config(), Base::Console(), App::GetApplication(), Gui::MainWindow::getInstance(), Gui::getMainWindow(), App::Application::GetParameterGroupByPath(), Gui::SoFCDB::init(), Gui::Application::Instance, Base::Interpreter(), Gui::MainWindow::loadWindowSettings(), Base::ScriptFactory(), Sketcher::start, and Base::Exception::what().
Referenced by FreeCADGui_showMainWindow(), and GUIThread::run().
| struct PyMethodDef FreeCADGui_methods[] |
{
{"showMainWindow",FreeCADGui_showMainWindow,METH_VARARGS,
"showMainWindow() -- Show the main window\n"
"If no main window does exist one gets created"},
{"exec_loop",FreeCADGui_exec_loop,METH_VARARGS,
"exec_loop() -- Starts the event loop\n"
"Note: this will block the call until the event loop has terminated"},
{"setupWithoutGUI",FreeCADGui_setupWithoutGUI,METH_VARARGS,
"setupWithoutGUI() -- Uses this module without starting\n"
"an event loop or showing up any GUI\n"},
{"embedToWindow",FreeCADGui_embedToWindow,METH_VARARGS,
"embedToWindow() -- Embeds the main window into another window\n"},
{NULL, NULL}
}
Definition at line 219 of file FreeCADGuiPy.cpp.
1.6.1