latex
documentation.log
tests.cfg
++
++/src/HYDROGUI/HYDROGUI_LandCoverMapDlg.cxx.BASE.cxx
++/src/HYDROGUI/HYDROGUI_LandCoverMapDlg.cxx.LOCAL.cxx
++/src/HYDROGUI/HYDROGUI_LandCoverMapDlg.cxx.REMOTE.cxx
return myStricklerTypes->getSelectedStricklerTypeName();
}
- bool HYDROGUI_LandCoverMapDlg::isOk( const Handle(HYDROData_Entity)& theEntity ) const
- {
- Handle(HYDROData_PolylineXY) aPolylineXY = Handle(HYDROData_PolylineXY)::DownCast(theEntity);
- Handle(HYDROData_Object) anObject2d3dPrs = Handle(HYDROData_Object)::DownCast(theEntity);
- return ( !anObject2d3dPrs.IsNull() ||
- ( !aPolylineXY.IsNull() && ( ( myOperationId == CreateLandCoverMapId || myOperationId == AddLandCoverId ) && aPolylineXY->IsClosed() ||
- myOperationId == SplitLandCoverId ) ) );
- }
-
+void HYDROGUI_LandCoverMapDlg::updateSelectedLandCoversLabel( int theNbSelected )
+{
+ QString aLabel;
+ aLabel.setNum( theNbSelected );
+ if ( theNbSelected == 0 )
+ mySelectedLandCoversLabel->setStyleSheet("QLabel { font: italic; color : red; }");
+ else
+ mySelectedLandCoversLabel->setStyleSheet("QLabel { font: italic; color : black; }");
+ mySelectedLandCoversLabel->setText( tr( "LAND_COVER_MAP_SELECTED_FACES" ) + aLabel );
+}
+
void HYDROGUI_LandCoverMapDlg::onLandCoverMapChanged()
{
if ( signalsBlocked() )
void setSelectedStricklerTypeName( const QString& theName );
QString getSelectedStricklerTypeName() const;
- virtual bool isOk( const Handle(HYDROData_Entity)& ) const;
-
+ void updateSelectedLandCoversLabel( int theNbSelected );
+
signals:
void landCoverMapChanged( const QString& theName );
HYDROGUI_ObjComboBox* myPolylinesFaces;
QLabel* myStricklerTypesLabel;
HYDROGUI_StricklerTypeComboBox* myStricklerTypes;
+ QLabel* mySelectedLandCoversLabel;
+ HYDROGUI_LandCoverArgsFilter myFilter;
};
#endif