introducing user parameters: BaseApp->Preferences->View->NaviFontStretch
BaseApp->Preferences->View->NaviTextFront BaseApp->Preferences->View->NaviTextRear BaseApp->Preferences->View->NaviTextTop BaseApp->Preferences->View->NaviTextBottom BaseApp->Preferences->View->NaviTextLeft BaseApp->Preferences->View->NaviTextRight
This commit is contained in:
@@ -374,7 +374,8 @@ GLuint NaviCubeImplementation::createCubeFaceTex(QtGLWidget* gl, float gap, floa
|
||||
if (text) {
|
||||
paint.setPen(Qt::white);
|
||||
QFont sansFont(str("Helvetica"), 0.18 * texSize);
|
||||
sansFont.setStretch(QFont::ExtraCondensed);
|
||||
sansFont.setStretch(App::GetApplication().GetUserParameter().GetGroup("BaseApp")
|
||||
->GetGroup("Preferences")->GetGroup("View")->GetInt("NaviFontStretch", 62));
|
||||
paint.setFont(sansFont);
|
||||
paint.drawText(QRect(0, 0, texSize, texSize), Qt::AlignCenter,qApp->translate("Gui::NaviCube",text));
|
||||
}
|
||||
@@ -679,12 +680,18 @@ void NaviCubeImplementation::initNaviCube(QtGLWidget* gl) {
|
||||
|
||||
if (labels.size() != 6) {
|
||||
labels.clear();
|
||||
labels.push_back("FRONT");
|
||||
labels.push_back("REAR");
|
||||
labels.push_back("TOP");
|
||||
labels.push_back("BOTTOM");
|
||||
labels.push_back("RIGHT");
|
||||
labels.push_back("LEFT");
|
||||
labels.push_back(App::GetApplication().GetUserParameter().GetGroup("BaseApp")
|
||||
->GetGroup("Preferences")->GetGroup("View")->GetASCII("NaviTextFront", "FRONT"));
|
||||
labels.push_back(App::GetApplication().GetUserParameter().GetGroup("BaseApp")
|
||||
->GetGroup("Preferences")->GetGroup("View")->GetASCII("NaviTextRear", "REAR"));
|
||||
labels.push_back(App::GetApplication().GetUserParameter().GetGroup("BaseApp")
|
||||
->GetGroup("Preferences")->GetGroup("View")->GetASCII("NaviTextTop", "TOP"));
|
||||
labels.push_back(App::GetApplication().GetUserParameter().GetGroup("BaseApp")
|
||||
->GetGroup("Preferences")->GetGroup("View")->GetASCII("NaviTextBottom", "BOTTOM"));
|
||||
labels.push_back(App::GetApplication().GetUserParameter().GetGroup("BaseApp")
|
||||
->GetGroup("Preferences")->GetGroup("View")->GetASCII("NaviTextRight", "RIGHT"));
|
||||
labels.push_back(App::GetApplication().GetUserParameter().GetGroup("BaseApp")
|
||||
->GetGroup("Preferences")->GetGroup("View")->GetASCII("NaviTextLeft", "LEFT"));
|
||||
}
|
||||
|
||||
float gap = 0.12f;
|
||||
|
||||
Reference in New Issue
Block a user