20 #ifndef _PERSPECTIVE_H
21 #define _PERSPECTIVE_H
23 #include <tulip/PluginLister.h>
24 #include <tulip/TulipProject.h>
25 #include <tulip/PluginContext.h>
26 #include <tulip/Plugin.h>
27 #include <QtCore/QObject>
28 #include <QtCore/QVariant>
37 static const std::string PERSPECTIVE_CATEGORY = QObject::trUtf8(
"Perspective").toStdString();
48 QMainWindow *mainWindow;
51 QVariantMap parameters;
73 QSet<QString> _reservedProperties;
74 QTcpSocket* _agentSocket;
75 unsigned int _perspectiveId;
77 void sendAgentMessage(
const QString&);
78 void notifyProjectLocation(
const QString& path);
114 return PERSPECTIVE_CATEGORY;
117 return ":/tulip/gui/icons/32/plugin_controller.png";
139 return dynamic_cast<T*
>(instance());
166 QMainWindow* mainWindow()
const;
173 bool isReservedPropertyName(QString name);
178 void registerReservedProperty(QString);
184 virtual void redrawPanels(
bool center=
false)=0;
199 void showPluginsCenter();
204 void showProjectsPage();
209 void showAboutPage();
215 void showTrayMessage(
const QString& s);
221 void openProjectFile(
const QString& path);
227 void createPerspective(
const QString& name);
232 #endif //_PERSPECTIVE_H