Merge pull request #10790 from Rexbas/rotation-center-preferences
Gui: Add rotation center indicator color, transparency and size preferences
This commit is contained in:
@@ -58,6 +58,7 @@ DlgSettingsNavigation::DlgSettingsNavigation(QWidget* parent)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
ui->naviCubeBaseColor->setAllowTransparency(true);
|
||||
ui->rotationCenterColor->setAllowTransparency(true);
|
||||
retranslate();
|
||||
}
|
||||
|
||||
@@ -84,7 +85,8 @@ void DlgSettingsNavigation::saveSettings()
|
||||
ui->checkBoxZoomAtCursor->onSave();
|
||||
ui->checkBoxInvertZoom->onSave();
|
||||
ui->checkBoxDisableTilt->onSave();
|
||||
ui->checkBoxShowRotationCenter->onSave();
|
||||
ui->rotationCenterSize->onSave();
|
||||
ui->rotationCenterColor->onSave();
|
||||
ui->spinBoxZoomStep->onSave();
|
||||
ui->checkBoxNavigationAnimations->onSave();
|
||||
ui->spinBoxAnimationDuration->onSave();
|
||||
@@ -98,6 +100,9 @@ void DlgSettingsNavigation::saveSettings()
|
||||
bool showNaviCube = ui->groupBoxNaviCube->isChecked();
|
||||
hGrp->SetBool("ShowNaviCube", showNaviCube);
|
||||
|
||||
bool showRotationCenter = ui->groupBoxRotationCenter->isChecked();
|
||||
hGrp->SetBool("ShowRotationCenter", showRotationCenter);
|
||||
|
||||
QVariant camera = ui->comboNewDocView->itemData(ui->comboNewDocView->currentIndex(),
|
||||
Qt::UserRole);
|
||||
hGrp->SetASCII("NewDocumentCameraOrientation", (const char*)camera.toByteArray());
|
||||
@@ -122,7 +127,8 @@ void DlgSettingsNavigation::loadSettings()
|
||||
ui->checkBoxZoomAtCursor->onRestore();
|
||||
ui->checkBoxInvertZoom->onRestore();
|
||||
ui->checkBoxDisableTilt->onRestore();
|
||||
ui->checkBoxShowRotationCenter->onRestore();
|
||||
ui->rotationCenterSize->onRestore();
|
||||
ui->rotationCenterColor->onRestore();
|
||||
ui->spinBoxZoomStep->onRestore();
|
||||
ui->checkBoxNavigationAnimations->onRestore();
|
||||
ui->spinBoxAnimationDuration->onRestore();
|
||||
@@ -149,6 +155,9 @@ void DlgSettingsNavigation::loadSettings()
|
||||
bool showNaviCube = hGrp->GetBool("ShowNaviCube", true);
|
||||
ui->groupBoxNaviCube->setChecked(showNaviCube);
|
||||
|
||||
bool showRotationCenter = hGrp->GetBool("ShowRotationCenter", true);
|
||||
ui->groupBoxRotationCenter->setChecked(showRotationCenter);
|
||||
|
||||
ui->comboNewDocView->addItem(tr("Isometric"), QByteArray("Isometric"));
|
||||
ui->comboNewDocView->addItem(tr("Dimetric"), QByteArray("Dimetric"));
|
||||
ui->comboNewDocView->addItem(tr("Trimetric"), QByteArray("Trimetric"));
|
||||
|
||||
Reference in New Issue
Block a user