Salome HOME
projects
/
modules
/
hydro.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ajout dependance VTK
[modules/hydro.git]
/
src
/
HYDROGUI
/
HYDROGUI_ImportLandCoverMapOp.cxx
diff --git
a/src/HYDROGUI/HYDROGUI_ImportLandCoverMapOp.cxx
b/src/HYDROGUI/HYDROGUI_ImportLandCoverMapOp.cxx
index 403a22634b0a72b8ccb03b995849078091a385cf..437f84dd4b58f4d0ede044c8d325feb93e57b232 100644
(file)
--- a/
src/HYDROGUI/HYDROGUI_ImportLandCoverMapOp.cxx
+++ b/
src/HYDROGUI/HYDROGUI_ImportLandCoverMapOp.cxx
@@
-337,18
+337,16
@@
void HYDROGUI_ImportLandCoverMapOp::onViewerSelectionChanged()
return;
int aCurIndex = -1;
return;
int aCurIndex = -1;
- aCurIndex = aPanel->
G
etCurrentWizardIndex();
+ aCurIndex = aPanel->
g
etCurrentWizardIndex();
if (aCurIndex != 0)
return;
OCCViewer_ViewManager* aViewManager = getPreviewManager();
Handle(AIS_InteractiveContext) aCtx = NULL;
if (aCurIndex != 0)
return;
OCCViewer_ViewManager* aViewManager = getPreviewManager();
Handle(AIS_InteractiveContext) aCtx = NULL;
- if ( aViewManager )
{
- if ( OCCViewer_Viewer* aViewer = aViewManager->getOCCViewer() )
{
+ if ( aViewManager )
+ if ( OCCViewer_Viewer* aViewer = aViewManager->getOCCViewer() )
aCtx = aViewer->getAISContext();
aCtx = aViewer->getAISContext();
- }
- }
if ( !aCtx.IsNull() )
{
if ( !aCtx.IsNull() )
{
@@
-444,7
+442,7
@@
void HYDROGUI_ImportLandCoverMapOp::onNext( const int theIndex )
aSTColors.prepend(QColor(Qt::gray));
QVector<int> aCurCBIndices(aSetOfAttrValuesList.size());
aSTColors.prepend(QColor(Qt::gray));
QVector<int> aCurCBIndices(aSetOfAttrValuesList.size());
- if (DefStricklerTableObj->GetAttrName()
== aPanel->getSelectedFieldName
())
+ if (DefStricklerTableObj->GetAttrName()
.trimmed() == aPanel->getSelectedFieldName().trimmed
())
for (int i = 0; i < aSetOfAttrValuesList.size(); i++)
{
QString aST = DefStricklerTableObj->GetType(aSetOfAttrValuesList[i]);
for (int i = 0; i < aSetOfAttrValuesList.size(); i++)
{
QString aST = DefStricklerTableObj->GetType(aSetOfAttrValuesList[i]);
@@
-464,6
+462,13
@@
void HYDROGUI_ImportLandCoverMapOp::onNext( const int theIndex )
void HYDROGUI_ImportLandCoverMapOp::onApply()
{
void HYDROGUI_ImportLandCoverMapOp::onApply()
{
+ HYDROGUI_ImportLandCoverMapDlg* aPanel = ::qobject_cast<HYDROGUI_ImportLandCoverMapDlg*>( inputPanel() );
+ if ( !aPanel )
+ return;
+
+ if (!aPanel->CheckFirstPageFilling())
+ return;
+
QApplication::setOverrideCursor( Qt::WaitCursor );
int anUpdateFlags = 0;
QString anErrorMsg;
QApplication::setOverrideCursor( Qt::WaitCursor );
int anUpdateFlags = 0;
QString anErrorMsg;