void HYDROGUI_Operation::abortOperation()
{
LightApp_Operation::abortOperation();
-
- if( inputPanel() )
- inputPanel()->hide();
+ closeInputPanel();
}
void HYDROGUI_Operation::commitOperation()
{
LightApp_Operation::commitOperation();
-
- if( inputPanel() )
- inputPanel()->hide();
+ closeInputPanel();
}
HYDROGUI_InputPanel* HYDROGUI_Operation::createInputPanel() const
return NULL;
}
+void HYDROGUI_Operation::closeInputPanel()
+{
+ if( myPanel )
+ {
+ myModule->getApp()->desktop()->removeDockWidget( myPanel );
+ delete myPanel;
+ myPanel = 0;
+ }
+}
+
bool HYDROGUI_Operation::processApply( int& theUpdateFlags,
QString& theErrorMsg )
{
virtual void commitOperation();
virtual HYDROGUI_InputPanel* createInputPanel() const;
+ virtual void closeInputPanel();
virtual bool processApply( int& theUpdateFlags, QString& theErrorMsg );
virtual void processCancel();