Gui: assign default guesture to Std_SelBack/Forward

This commit is contained in:
Zheng, Lei
2019-08-30 16:54:21 +08:00
committed by wmayer
parent 845fa8471a
commit 9e2bdd6ea8

View File

@@ -3122,6 +3122,8 @@ StdCmdSelForward::StdCmdSelForward()
sPixmap = "sel-forward";
sAccel = "S, F";
eType = AlterSelection;
}
void StdCmdSelForward::activated(int iMsg)
@@ -3509,6 +3511,13 @@ void CreateViewStdCommands(void)
rcCmdMgr.addCommand(new StdCmdSelBack());
rcCmdMgr.addCommand(new StdCmdSelForward());
rcCmdMgr.addCommand(new StdCmdTreeViewActions());
auto hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/View");
if(hGrp->GetASCII("GestureRollFwdCommand").empty())
hGrp->SetASCII("GestureRollFwdCommand","Std_SelForward");
if(hGrp->GetASCII("GestureRollBackCommand").empty())
hGrp->SetASCII("GestureRollBackCommand","Std_SelBack");
}
} // namespace Gui