#include "PreCompiled.h"
#include <QIcon>
#include <QImage>
#include <sstream>
#include "DrawingView.h"
#include <Mod/Drawing/App/FeaturePage.h>
#include <Base/Console.h>
#include <Base/Exception.h>
#include <Base/FileInfo.h>
#include <Base/Stream.h>
#include <App/Application.h>
#include <App/DocumentObjectPy.h>
#include <Gui/MainWindow.h>
#include <Gui/BitmapFactory.h>
Go to the source code of this file.
Functions | |
static PyObject * | exporter (PyObject *self, PyObject *args) |
static PyObject * | importer (PyObject *self, PyObject *args) |
static PyObject * | open (PyObject *self, PyObject *args) |
Variables | |
struct PyMethodDef | DrawingGui_Import_methods [] |
Definition at line 104 of file AppDrawingGuiPy.cpp.
References Py::SeqBase< T >::begin(), Py::SeqBase< T >::end(), draftlibs::dxfReader::filename, Drawing::FeaturePage::getClassTypeId(), App::PropertyContainer::getTypeId(), Base::Type::isDerivedFrom(), PY_CATCH, Py_Return, PY_TRY, and App::DocumentObjectPy::Type.
Definition at line 76 of file AppDrawingGuiPy.cpp.
References Gui::BitmapFactory(), DrawingExample::file, Gui::getMainWindow(), Base::FileInfo::hasExtension(), DrawingGui::DrawingView::load(), PY_CATCH, Py_Return, and PY_TRY.
Referenced by readFile().
Definition at line 47 of file AppDrawingGuiPy.cpp.
References Gui::BitmapFactory(), DrawingExample::file, Gui::getMainWindow(), Base::FileInfo::hasExtension(), DrawingGui::DrawingView::load(), PY_CATCH, Py_Return, and PY_TRY.
struct PyMethodDef DrawingGui_Import_methods[] |
{ {"open" ,open , METH_VARARGS}, {"insert" ,importer, METH_VARARGS}, {"export" ,exporter, METH_VARARGS}, {NULL, NULL} }
Definition at line 150 of file AppDrawingGuiPy.cpp.
Referenced by initDrawingGui().