mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 01:09:50 +00:00
Changed: #1193 Core::IContext does not factory.
This commit is contained in:
parent
870308c754
commit
ad597cc457
2 changed files with 24 additions and 19 deletions
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
#include "qnel_widget.h"
|
#include "qnel_widget.h"
|
||||||
#include "painter_dock_widget.h"
|
#include "painter_dock_widget.h"
|
||||||
|
#include <QtGui/QMenu>
|
||||||
|
|
||||||
ZonePainterMainWindow::ZonePainterMainWindow(QWidget *parent) :
|
ZonePainterMainWindow::ZonePainterMainWindow(QWidget *parent) :
|
||||||
QMainWindow(parent),
|
QMainWindow(parent),
|
||||||
|
|
|
@ -79,25 +79,29 @@ class CZonePainterContext: public Core::IContext
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
CZonePainterContext(QObject *parent = 0): IContext(parent) {}
|
CZonePainterContext(QObject *parent = 0): IContext(parent)
|
||||||
virtual ~CZonePainterContext() {}
|
{
|
||||||
|
m_zonePainterMainWindow = new ZonePainterMainWindow();
|
||||||
virtual QString id() const
|
}
|
||||||
{
|
virtual ~CZonePainterContext() {}
|
||||||
return QLatin1String("ZonePainterContext");
|
|
||||||
}
|
virtual QString id() const
|
||||||
virtual QString trName() const
|
{
|
||||||
{
|
return QLatin1String("ZonePainterContext");
|
||||||
return tr("Zone Painter");
|
}
|
||||||
}
|
virtual QString trName() const
|
||||||
virtual QIcon icon() const
|
{
|
||||||
{
|
return tr("Zone Painter");
|
||||||
return QIcon();
|
}
|
||||||
}
|
virtual QIcon icon() const
|
||||||
virtual QWidget *widget()
|
{
|
||||||
{
|
return QIcon();
|
||||||
return new ZonePainterMainWindow();
|
}
|
||||||
}
|
virtual QWidget *widget()
|
||||||
|
{
|
||||||
|
return m_zonePainterMainWindow;
|
||||||
|
}
|
||||||
|
ZonePainterMainWindow *m_zonePainterMainWindow;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Plugin
|
} // namespace Plugin
|
||||||
|
|
Loading…
Reference in a new issue