return myDbfState;
}
+void HYDROGUI_ImportLandCoverMapDlg::setDbfRecordsNb(int theRecordsNbs)
+{
+ myDbfRecordsNbs = theRecordsNbs;
+}
+
+int HYDROGUI_ImportLandCoverMapDlg::getDbfRecordsNb() const
+{
+ return myDbfRecordsNbs;
+}
+
int HYDROGUI_ImportLandCoverMapDlg::getCurrentWizardIndex() const
{
return wizard()->currentIndex();
SUIT_MessageBox::critical( module()->getApp()->desktop(), tr( "DBF_LOAD_ERROR" ), tr("DBF_LOAD_ERR_MESS"));
return false;
}
+ if (this->getAttrCheckBoxState() && this->getDbfRecordsNb() == 0)
+ {
+ SUIT_MessageBox::warning( module()->getApp()->desktop(), tr( "DBF_NB_RECORDS_IS_NULL" ), tr("DBF_NB_RECORDS_IS_NULL_MESS"));
+ return false;
+ }
return true;
}
\ No newline at end of file
void setDbfState(bool theState);
bool getDbfState() const;
+
+ void setDbfRecordsNb(int theRecordsNbs);
+ int getDbfRecordsNb() const;
+
int getCurrentWizardIndex() const;
void setViewerState(bool theState);
bool myFirstPageState;
QVector<QColor> myStrColors;
bool myDbfState;
+ int myDbfRecordsNbs;
bool myUpdateViewerState;
};
aPanel->setAttributeNames(myFieldList);
}
aPanel->setDbfState(DBF_Stat);
+ aPanel->setDbfRecordsNb(myImporter.DBF_GetNbRecords());
}
else
{
<source>DBF_LOAD_ERROR</source>
<translation>Cannot load DBF file</translation>
</message>
+ <message>
+ <source>DBF_NB_RECORDS_IS_NULL</source>
+ <translation>DBF Warning</translation>
+ </message>
+
<message>
<source>FILE_ISNT_CHOSEN</source>
<translation>File isn't chosen</translation>
<translation>Cannot open DBF file or it's corrupted</translation>
</message>
+ <message>
+ <source>DBF_NB_RECORDS_IS_NULL_MESS</source>
+ <translation>Cannot use DBF data - number of records is null</translation>
+ </message>
+
+
</context>
<context>