#include "HYDROGUI_InputPanel.h"
-class QGroupBox;
-class QLineEdit;
+#include <AIS_InteractiveContext.hxx>
+
class CurveCreator_Widget;
class CurveCreator_ICurve;
-class OCCViewer_Viewer;
+class OCCViewer_ViewManager;
+class SUIT_ViewWindow;
+class QGroupBox;
+class QLineEdit;
+class QLabel;
class HYDROGUI_ProfileDlg : public HYDROGUI_InputPanel
{
HYDROGUI_ProfileDlg( HYDROGUI_Module* theModule, const QString& theTitle );
virtual ~HYDROGUI_ProfileDlg();
- void setOCCViewer( OCCViewer_Viewer* theViewer );
+ Handle(AIS_InteractiveContext) getAISContext();
void setProfileName( const QString& theName );
QString getProfileName() const;
- void setCurve( CurveCreator_ICurve* theCurve );
+ void setProfile( CurveCreator_ICurve* theProfile );
void reset();
void deleteSelected();
bool deleteEnabled();
+protected:
+ virtual bool eventFilter( QObject*, QEvent* );
+
protected slots:
void processStartedSubOperation( QWidget* );
void processFinishedSubOperation( QWidget* );
+
+ void onMouseMove( SUIT_ViewWindow*, QMouseEvent* );
+
signals:
void createPreview( QString );
void selectionChanged();
void subOperationStarted(QWidget*);
void subOperationFinished(QWidget*);
private:
- QLineEdit* myName;
- CurveCreator_Widget* myEditorWidget;
- QGroupBox* myAddElementBox;
+ QLineEdit* myName;
+ CurveCreator_Widget* myEditorWidget;
+ QGroupBox* myAddElementBox;
+ OCCViewer_ViewManager* myViewManager;
+ QLabel* myCoordLabel;
};
#endif