#include "HYDROGUI_StricklerTableDlg.h"
#include "HYDROGUI_DataObject.h"
+#include "HYDROGUI_Module.h"
+#include "HYDROGUI_OCCDisplayer.h"
#include "HYDROGUI_Operations.h"
#include "HYDROGUI_Tool.h"
+#include "HYDROGUI_UpdateFlags.h"
#include <HYDROData_Document.h>
: HYDROGUI_Operation( theModule ),
myType( theType )
{
- setName( isEdit() ? tr( "EDIT_STRICKLER_TABLE" ) : tr( "IMPORT_STRICKLER_TABLE" ) );
+ setName( isEdit() ? tr( "EDIT_STRICKLER_TABLE" ) :
+ ( isImport() ? tr( "IMPORT_STRICKLER_TABLE" ) : tr( "EXPORT_STRICKLER_TABLE" ) ) );
}
HYDROGUI_StricklerTableOp::~HYDROGUI_StricklerTableOp()
{
QString anEntry = HYDROGUI_DataObject::dataObjectEntry( aStricklerTableObj );
theBrowseObjectsEntries.append( anEntry );
+ } else {
+ module()->getOCCDisplayer()->SetToUpdateColorScale();
}
- theUpdateFlags |= UF_ObjBrowser;
+ theUpdateFlags |= UF_ObjBrowser | UF_OCCViewer;
return true;
}