Skip to content

Commit

Permalink
Merge pull request #514 from mleotta/dev/improve-ui-defaults
Browse files Browse the repository at this point in the history
Improve UI defaults
  • Loading branch information
mleotta committed Aug 30, 2021
2 parents 666976f + 31e7218 commit 2b667c8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
4 changes: 4 additions & 0 deletions gui/CameraOptions.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ CameraOptions::CameraOptions(vtkMaptkCameraRepresentation* rep,
inactiveModeGroup->addButton(d->UI.inactiveAsPoints);
inactiveModeGroup->addButton(d->UI.inactiveAsFrustums);

// Set default values for scale sliders
d->UI.scale->setValue(0.25);
d->UI.inactiveScale->setValue(-1.0);

// Set up option persistence
// TODO We may want to get a parent group from the user (of this class) that
// would identify which view in case of multiple views, so that we can
Expand Down
3 changes: 3 additions & 0 deletions gui/CameraOptions.ui
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@
<property name="text">
<string>Camera Path</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
Expand Down
10 changes: 5 additions & 5 deletions gui/FeatureOptions.ui
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<item>
<layout class="QFormLayout" name="formLayout">
<item row="1" column="0" colspan="2">
<layout class="QHBoxLayout" name="trailLayoutWithDesc" stretch="0,0">
<layout class="QHBoxLayout" name="trailLayoutWithDesc" stretch="1,0">
<item>
<widget class="QCheckBox" name="showTrailsWithDesc">
<property name="enabled">
Expand All @@ -27,7 +27,7 @@
<string>Trails w Desc.</string>
</property>
<property name="checked">
<bool>false</bool>
<bool>true</bool>
</property>
</widget>
</item>
Expand All @@ -38,8 +38,8 @@
</property>
<property name="color" stdset="0">
<color>
<red>0</red>
<green>192</green>
<red>170</red>
<green>0</green>
<blue>0</blue>
</color>
</property>
Expand Down Expand Up @@ -125,7 +125,7 @@
<number>4</number>
</property>
<property name="value">
<number>2</number>
<number>250</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
Expand Down

0 comments on commit 2b667c8

Please sign in to comment.