#include <QStringList>
+// IDL includes
+#include <SALOMEconfig.h>
+#include CORBA_SERVER_HEADER(GEOM_Gen)
+
class HYDROGUI_InputPanel;
class HYDROGUI_ImportGeomObjectOp : public HYDROGUI_Operation
Q_OBJECT
public:
- enum OperationType { ImportCreated, ImportSelected };
+ enum OperationType { ImportCreatedAsObstacle,
+ ImportSelectedAsObstacle,
+ ImportSelectedAsPolyline };
public:
HYDROGUI_ImportGeomObjectOp( HYDROGUI_Module* theModule,
const int theOpType,
- const bool theIsToShowPanel = true );
+ const int theGEOMOp = -1 );
virtual ~HYDROGUI_ImportGeomObjectOp();
+ static QList<GEOM::shape_type> getObstacleTypes();
+ static QList<GEOM::shape_type> getPolylineTypes();
+
protected:
virtual void startOperation();
virtual void abortOperation();
virtual bool processApply( int& theUpdateFlags, QString& theErrorMsg );
+protected slots:
+ void onExternalOperationFinished( const QString&, const QString&,
+ const QStringList& );
+
+private:
+ void updateDefaultName();
+ void closeExternalOperationDlg();
+
private:
QStringList myGeomObjects; ///< the list of GEOM object entries
bool myIsToShowPanel; ///< indicates if obstacle panel to be shown
int myOpType; ///< operation type (to import selected GEOM objects or the objects just created by GEOM )
+ int myGEOMOp; ///< GEOM module operation to be called to create GEOM object for import
+ QString myGEOMOpName; ///< the name of the called GEOM module operation
};
#endif
\ No newline at end of file