setting defaults for zoom invert and zoom step for Werners fix of #894

- inverse is now default
- 0.2 is zoom step default
expecting lots of flaming :)
This commit is contained in:
jriegel 2012-12-20 19:49:17 +01:00
parent f9da20f097
commit b9584f2c9a
3 changed files with 8 additions and 5 deletions

View File

@ -71,7 +71,7 @@ const char* CADNavigationStyle::mouseButtons(ViewerMode mode)
case NavigationStyle::DRAGGING:
return QT_TR_NOOP("Press left and middle mouse button");
case NavigationStyle::ZOOMING:
return QT_TR_NOOP("Scroll middle mouse button");
return QT_TR_NOOP("Scroll middle mouse button or middle and cklicking left");
default:
return "No description";
}

View File

@ -176,7 +176,7 @@
<double>0.050000000000000</double>
</property>
<property name="value">
<double>0.050000000000000</double>
<double>0.200000000000000</double>
</property>
<property name="prefEntry" stdset="0">
<cstring>ZoomStep</cstring>
@ -190,7 +190,10 @@
</item>
<item row="5" column="0">
<widget class="Gui::PrefCheckBox" name="checkBoxInvertZoom">
<property name="text">
<property name="checked">
<bool>true</bool>
</property>
<property name="text">
<string>Invert zoom</string>
</property>
<property name="prefEntry" stdset="0">

View File

@ -226,11 +226,11 @@ void NavigationStyle::initialize()
this->shiftdown = FALSE;
this->altdown = FALSE;
this->invertZoom = App::GetApplication().GetParameterGroupByPath
("User parameter:BaseApp/Preferences/View")->GetBool("InvertZoom",false);
("User parameter:BaseApp/Preferences/View")->GetBool("InvertZoom",true);
this->zoomAtCursor = App::GetApplication().GetParameterGroupByPath
("User parameter:BaseApp/Preferences/View")->GetBool("ZoomAtCursor",false);
this->zoomStep = App::GetApplication().GetParameterGroupByPath
("User parameter:BaseApp/Preferences/View")->GetFloat("ZoomStep",0.05f);
("User parameter:BaseApp/Preferences/View")->GetFloat("ZoomStep",0.2f);
}
void NavigationStyle::finalize()