|
|
@ -79,28 +79,38 @@ class CZonePainterContext: public Core::IContext
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
CZonePainterContext(QObject *parent = 0): IContext(parent)
|
|
|
|
CZonePainterContext(QObject *parent = 0): IContext(parent)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m_zonePainterMainWindow = new ZonePainterMainWindow();
|
|
|
|
m_zonePainterMainWindow = new ZonePainterMainWindow();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
virtual ~CZonePainterContext() {}
|
|
|
|
virtual ~CZonePainterContext() {}
|
|
|
|
|
|
|
|
|
|
|
|
virtual QString id() const
|
|
|
|
virtual QString id() const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return QLatin1String("ZonePainterContext");
|
|
|
|
return QLatin1String("ZonePainterContext");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
virtual QString trName() const
|
|
|
|
virtual QString trName() const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return tr("Zone Painter");
|
|
|
|
return tr("Zone Painter");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
virtual QIcon icon() const
|
|
|
|
virtual QIcon icon() const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return QIcon();
|
|
|
|
return QIcon();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
virtual QWidget *widget()
|
|
|
|
virtual QWidget *widget()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return m_zonePainterMainWindow;
|
|
|
|
return m_zonePainterMainWindow;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
virtual QUndoStack *undoStack()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return m_zonePainterMainWindow->getUndoStack();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual void open()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ZonePainterMainWindow *m_zonePainterMainWindow;
|
|
|
|
ZonePainterMainWindow *m_zonePainterMainWindow;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|