|
|
|
@ -79,25 +79,29 @@ class CZonePainterContext: public Core::IContext
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
|
|
|
|
CZonePainterContext(QObject *parent = 0): IContext(parent) {}
|
|
|
|
|
virtual ~CZonePainterContext() {}
|
|
|
|
|
|
|
|
|
|
virtual QString id() const
|
|
|
|
|
{
|
|
|
|
|
return QLatin1String("ZonePainterContext");
|
|
|
|
|
}
|
|
|
|
|
virtual QString trName() const
|
|
|
|
|
{
|
|
|
|
|
return tr("Zone Painter");
|
|
|
|
|
}
|
|
|
|
|
virtual QIcon icon() const
|
|
|
|
|
{
|
|
|
|
|
return QIcon();
|
|
|
|
|
}
|
|
|
|
|
virtual QWidget *widget()
|
|
|
|
|
{
|
|
|
|
|
return new ZonePainterMainWindow();
|
|
|
|
|
}
|
|
|
|
|
CZonePainterContext(QObject *parent = 0): IContext(parent)
|
|
|
|
|
{
|
|
|
|
|
m_zonePainterMainWindow = new ZonePainterMainWindow();
|
|
|
|
|
}
|
|
|
|
|
virtual ~CZonePainterContext() {}
|
|
|
|
|
|
|
|
|
|
virtual QString id() const
|
|
|
|
|
{
|
|
|
|
|
return QLatin1String("ZonePainterContext");
|
|
|
|
|
}
|
|
|
|
|
virtual QString trName() const
|
|
|
|
|
{
|
|
|
|
|
return tr("Zone Painter");
|
|
|
|
|
}
|
|
|
|
|
virtual QIcon icon() const
|
|
|
|
|
{
|
|
|
|
|
return QIcon();
|
|
|
|
|
}
|
|
|
|
|
virtual QWidget *widget()
|
|
|
|
|
{
|
|
|
|
|
return m_zonePainterMainWindow;
|
|
|
|
|
}
|
|
|
|
|
ZonePainterMainWindow *m_zonePainterMainWindow;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Plugin
|
|
|
|
|