setPreferenceProperty( defaultStricklerCoef, "min", 0.00 );
setPreferenceProperty( defaultStricklerCoef, "max", 1000000.00 );
setPreferenceProperty( defaultStricklerCoef, "step", 0.01 );
+
+ int polylinesGroup = addPreference( tr( "PREF_GROUP_POLYLINES" ), genTab );
+ int polylineArrow = addPreference( tr( "PREF_POLYLINE_ARROW" ), polylinesGroup,
+ LightApp_Preferences::Selector, "polyline", "arrow_type" );
+
+ QList<QVariant> indices;
+ indices.append( 0 );
+ indices.append( 1 );
+ indices.append( 2 );
+ setPreferenceProperty( polylineArrow, "indexes", indices );
+ QList<QVariant> arrow_types;
+ arrow_types.append( tr( "No" ) );
+ arrow_types.append( tr( "Triangle" ) );
+ arrow_types.append( tr( "Cone" ) );
+ setPreferenceProperty( polylineArrow, "strings", arrow_types );
+
+ int polylineSize = addPreference( tr( "PREF_POLYLINE_ARROW_SIZE" ), polylinesGroup,
+ LightApp_Preferences::IntSpin, "polyline", "arrow_size" );
}
void HYDROGUI_Module::preferencesChanged( const QString& theSection, const QString& thePref )
if ( resMgr && !aDoc.IsNull() )
aDoc->SetDefaultStricklerCoefficient( resMgr->doubleValue( theSection, thePref, 0 ) );
}
+ else if( theSection == "polyline" )
+ {
+ //TODO: update polylines
+ }
else
LightApp_Module::preferencesChanged( theSection, thePref );
}
<source>STB_LC_SCALARMAP_COLORING_OFF</source>
<translation>Scalar map mode off</translation>
</message>
-
+ <message>
+ <source>PREF_GROUP_POLYLINES</source>
+ <translation>Polylines</translation>
+ </message>
+ <message>
+ <source>PREF_POLYLINE_ARROW</source>
+ <translation>Polyline arrow</translation>
+ </message>
+ <message>
+ <source>PREF_POLYLINE_ARROW_SIZE</source>
+ <translation>Polyline arrow size</translation>
+ </message>
</context>
<context>