#include "XGUI_Constants.h"
#include <Events_Listener.h>
#include <ModuleBase_Definitions.h>
+#include <ModelAPI_ResultPart.h>
+#include <ModelAPI_Document.h>
#include <QObject>
#include <QMap>
class QWidget;
class QDockWidget;
-class Model_FeatureUpdatedMessage;
+class ModelAPI_ObjectUpdatedMessage;
+class ModelAPI_ObjectDeletedMessage;
class QAction;
/**\class XGUI_Workshop
//! Activates or deactivates a part
//! If PartPtr is Null pointer then PartSet will be activated
- void activatePart(FeaturePtr theFeature);
+ void activatePart(ResultPartPtr theFeature);
//! Delete features
- void deleteFeatures(QFeatureList theList);
+ void deleteObjects(const QList<ObjectPtr>& theList);
//! Show the given features in 3d Viewer
- void showFeatures(QFeatureList theList, bool isVisible);
+ void showObjects(const QList<ObjectPtr>& theList, bool isVisible);
ModuleBase_IModule* module() const { return myModule; }
void onExit();
void onUndo();
void onRedo();
+ void onPreferences();
void showPropertyPanel();
void hidePropertyPanel();
void hideObjectBrowser();
void onFeatureTriggered();
- void changeCurrentDocument(FeaturePtr thePart);
+ void changeCurrentDocument(ObjectPtr theObj);
void activateLastPart();
void connectWithOperation(ModuleBase_Operation* theOperation);
void saveDocument(QString theName);
- void onFeatureUpdatedMsg(const Model_FeatureUpdatedMessage* theMsg);
- void onFeatureCreatedMsg(const Model_FeatureUpdatedMessage* theMsg);
- void onFeatureRedisplayMsg(const Model_FeatureUpdatedMessage* theMsg);
+ void onFeatureUpdatedMsg(const ModelAPI_ObjectUpdatedMessage* theMsg);
+ void onFeatureCreatedMsg(const ModelAPI_ObjectUpdatedMessage* theMsg);
+ void onFeatureRedisplayMsg(const ModelAPI_ObjectUpdatedMessage* theMsg);
+ void onObjectDeletedMsg(const ModelAPI_ObjectDeletedMessage* theMsg);
+
+ void validateOperation(const QString& theOperationId);
QList<QAction*> getModuleCommands() const;
+ void displayAllResults();
+ void displayDocumentResults(DocumentPtr theDoc);
+ void displayGroupResults(DocumentPtr theDoc, std::string theGroup);
+
protected slots:
/// SLOT, that is called after the operation is started. Update workshop state according to
/// the started operation, e.g. visualizes the property panel and connect to it.
void onWidgetValuesChanged();
+ void onStartWaiting();
+
private:
void initMenu();
+ void registerValidators() const;
+
+
ModuleBase_IModule* loadModule(const QString& theModule);
bool activateModule();
QString myCurrentDir;
static QMap<QString, QString> myIcons;
-
};
#endif