Gui: [skip ci] add sub-classes of the MDIView to the type system
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
#include <Base/Console.h>
|
||||
#include <Gui/Application.h>
|
||||
#include <Gui/Language/Translator.h>
|
||||
#include "ImageView.h"
|
||||
#include "Workbench.h"
|
||||
#include "ViewProviderImagePlane.h"
|
||||
|
||||
@@ -50,6 +51,7 @@ PyMOD_INIT_FUNC(ImageGui)
|
||||
// instantiating the commands
|
||||
CreateImageCommands();
|
||||
|
||||
ImageGui::ImageView::init();
|
||||
ImageGui::ViewProviderImagePlane::init();
|
||||
ImageGui::Workbench::init();
|
||||
|
||||
|
||||
@@ -36,6 +36,8 @@ using namespace ImageGui;
|
||||
|
||||
/* TRANSLATOR ImageGui::ImageView */
|
||||
|
||||
TYPESYSTEM_SOURCE_ABSTRACT(ImageGui::ImageView, Gui::MDIView)
|
||||
|
||||
ImageView::ImageView(QWidget* parent)
|
||||
: MDIView(0, parent), _ignoreCloseEvent(false)
|
||||
{
|
||||
|
||||
@@ -40,6 +40,8 @@ class ImageGuiExport ImageView : public Gui::MDIView
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
TYPESYSTEM_HEADER();
|
||||
|
||||
public:
|
||||
ImageView(QWidget* parent);
|
||||
virtual ~ImageView();
|
||||
|
||||
Reference in New Issue
Block a user