fixes #0004125: MDIViews not accessible correctly
This commit is contained in:
@@ -117,7 +117,7 @@ PyMOD_INIT_FUNC(SpreadsheetGui)
|
||||
|
||||
SpreadsheetGui::ViewProviderSheet::init();
|
||||
SpreadsheetGui::Workbench::init();
|
||||
// SpreadsheetGui::SheetView::init();
|
||||
SpreadsheetGui::SheetView::init();
|
||||
|
||||
// add resources and reloads the translators
|
||||
loadSpreadsheetResource();
|
||||
|
||||
@@ -60,7 +60,7 @@ using namespace App;
|
||||
|
||||
/* TRANSLATOR SpreadsheetGui::SheetView */
|
||||
|
||||
TYPESYSTEM_SOURCE_ABSTRACT(SpreadsheetGui::SheetView, Gui::MDIView);
|
||||
TYPESYSTEM_SOURCE_ABSTRACT(SpreadsheetGui::SheetView, Gui::MDIView)
|
||||
|
||||
SheetView::SheetView(Gui::Document *pcDocument, App::DocumentObject *docObj, QWidget *parent)
|
||||
: MDIView(pcDocument, parent)
|
||||
@@ -364,7 +364,7 @@ QModelIndex SheetView::currentIndex() const
|
||||
|
||||
PyObject *SheetView::getPyObject()
|
||||
{
|
||||
Py_Return;
|
||||
return Gui::MDIView::getPyObject();
|
||||
}
|
||||
|
||||
void SheetView::deleteSelf()
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
#include <Gui/WidgetFactory.h>
|
||||
|
||||
#include "Workbench.h"
|
||||
#include "MDIViewPage.h"
|
||||
|
||||
#include "DlgPrefsTechDrawImp.h"
|
||||
#include "DlgPrefsTechDraw2Imp.h"
|
||||
@@ -114,6 +115,7 @@ PyMOD_INIT_FUNC(TechDrawGui)
|
||||
CreateTechDrawCommandsAnnotate();
|
||||
|
||||
TechDrawGui::Workbench::init();
|
||||
TechDrawGui::MDIViewPage::init();
|
||||
|
||||
TechDrawGui::ViewProviderPage::init();
|
||||
TechDrawGui::ViewProviderDrawingView::init();
|
||||
|
||||
@@ -111,6 +111,8 @@ using namespace TechDrawGui;
|
||||
|
||||
/* TRANSLATOR TechDrawGui::MDIViewPage */
|
||||
|
||||
TYPESYSTEM_SOURCE_ABSTRACT(TechDrawGui::MDIViewPage, Gui::MDIView)
|
||||
|
||||
MDIViewPage::MDIViewPage(ViewProviderPage *pageVp, Gui::Document* doc, QWidget* parent)
|
||||
: Gui::MDIView(doc, parent),
|
||||
m_orientation(QPrinter::Landscape),
|
||||
@@ -847,7 +849,7 @@ QPrinter::PaperSize MDIViewPage::getPaperSize(int w, int h) const
|
||||
|
||||
PyObject* MDIViewPage::getPyObject()
|
||||
{
|
||||
Py_Return;
|
||||
return Gui::MDIView::getPyObject();
|
||||
}
|
||||
|
||||
void MDIViewPage::contextMenuEvent(QContextMenuEvent *event)
|
||||
|
||||
@@ -51,6 +51,7 @@ class QGIView;
|
||||
class TechDrawGuiExport MDIViewPage : public Gui::MDIView, public Gui::SelectionObserver
|
||||
{
|
||||
Q_OBJECT
|
||||
TYPESYSTEM_HEADER();
|
||||
|
||||
public:
|
||||
MDIViewPage(ViewProviderPage *page, Gui::Document* doc, QWidget* parent = 0);
|
||||
|
||||
Reference in New Issue
Block a user