mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-05 03:04:18 +05:00
0021882: [CEA 673] Add preference for default color for mesh groups
This commit is contained in:
parent
b86b991075
commit
023c706135
@ -28,6 +28,7 @@
|
||||
<parameter name="icon" value="ModuleMesh.png"/>
|
||||
<parameter name="version" value="@VERSION@"/>
|
||||
<!-- Other module preferences -->
|
||||
<parameter name="default_grp_color" value="255, 170, 0"/>
|
||||
<parameter name="node_color" value="255, 0, 0"/>
|
||||
<parameter name="fill_color" value="0, 170, 255|-100"/>
|
||||
<parameter name="wireframe_color" value="0, 170, 255"/>
|
||||
|
@ -4827,6 +4827,7 @@ void SMESHGUI::createPreferences()
|
||||
setPreferenceProperty( grpGroup, "columns", 2 );
|
||||
|
||||
addPreference( tr( "PREF_GRP_NAMES" ), grpGroup, LightApp_Preferences::Color, "SMESH", "group_name_color" );
|
||||
addPreference( tr( "PREF_GRP_DEF_COLOR" ), grpGroup, LightApp_Preferences::Color, "SMESH", "default_grp_color" );
|
||||
|
||||
int size0d = addPreference(tr("PREF_SIZE_0D"), elemGroup,
|
||||
LightApp_Preferences::IntSpin, "SMESH", "elem0d_size");
|
||||
|
@ -2438,7 +2438,7 @@ void SMESHGUI_GroupDlg::setDefaultGroupColor()
|
||||
if( !isAutoColor )
|
||||
{
|
||||
int r = 0, g = 0, b = 0;
|
||||
SMESH::GetColor( "SMESH", "fill_color", r, g, b, QColor( 0, 170, 255 ) );
|
||||
SMESH::GetColor( "SMESH", "default_grp_color", r, g, b, QColor( 255, 170, 0 ) );
|
||||
aQColor.setRgb( r, g, b );
|
||||
}
|
||||
else
|
||||
|
@ -4187,6 +4187,10 @@ Please, create VTK viewer and try again</translation>
|
||||
<source>PREF_GRP_NAMES</source>
|
||||
<translation>Names color</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>PREF_GRP_DEF_COLOR</source>
|
||||
<translation>Default color</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>PREF_GROUP_PRECISION</source>
|
||||
<translation>Precision</translation>
|
||||
|
@ -4155,6 +4155,10 @@ Ouvrez une fenêtre VTK et essayez de nouveau</translation>
|
||||
<source>PREF_GRP_NAMES</source>
|
||||
<translation>Couleur des noms</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>PREF_GRP_DEF_COLOR</source>
|
||||
<translation>Couleur par défaut</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>PREF_GROUP_PRECISION</source>
|
||||
<translation>Précision</translation>
|
||||
|
Loading…
Reference in New Issue
Block a user