mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-04 22:06:40 +00:00
Remove "separators" from cs settings
Those are just empty widgets which do not make significant visible difference in the UI.
This commit is contained in:
parent
335dbffe6e
commit
fb6e429dad
4 changed files with 7 additions and 41 deletions
apps/opencs
|
@ -40,7 +40,6 @@ void CSMPrefs::State::declare()
|
||||||
.setTooltip(
|
.setTooltip(
|
||||||
"If a newly open top level window is showing status bars or not. "
|
"If a newly open top level window is showing status bars or not. "
|
||||||
" Note that this does not affect existing windows.");
|
" Note that this does not affect existing windows.");
|
||||||
declareSeparator();
|
|
||||||
declareBool("reuse", "Reuse Subviews", true)
|
declareBool("reuse", "Reuse Subviews", true)
|
||||||
.setTooltip(
|
.setTooltip(
|
||||||
"When a new subview is requested and a matching subview already "
|
"When a new subview is requested and a matching subview already "
|
||||||
|
@ -58,7 +57,6 @@ void CSMPrefs::State::declare()
|
||||||
declareInt("minimum-width", "Minimum subview width", 325)
|
declareInt("minimum-width", "Minimum subview width", 325)
|
||||||
.setTooltip("Minimum width of subviews.")
|
.setTooltip("Minimum width of subviews.")
|
||||||
.setRange(50, 10000);
|
.setRange(50, 10000);
|
||||||
declareSeparator();
|
|
||||||
EnumValue scrollbarOnly("Scrollbar Only",
|
EnumValue scrollbarOnly("Scrollbar Only",
|
||||||
"Simple addition of scrollbars, the view window "
|
"Simple addition of scrollbars, the view window "
|
||||||
"does not grow automatically.");
|
"does not grow automatically.");
|
||||||
|
@ -98,7 +96,6 @@ void CSMPrefs::State::declare()
|
||||||
declareEnum("double-s", "Shift Double Click", editRecord).addValues(doubleClickValues);
|
declareEnum("double-s", "Shift Double Click", editRecord).addValues(doubleClickValues);
|
||||||
declareEnum("double-c", "Control Double Click", view).addValues(doubleClickValues);
|
declareEnum("double-c", "Control Double Click", view).addValues(doubleClickValues);
|
||||||
declareEnum("double-sc", "Shift Control Double Click", editRecordAndClose).addValues(doubleClickValues);
|
declareEnum("double-sc", "Shift Control Double Click", editRecordAndClose).addValues(doubleClickValues);
|
||||||
declareSeparator();
|
|
||||||
EnumValue jumpAndSelect("Jump and Select", "Scroll new record into view and make it the selection");
|
EnumValue jumpAndSelect("Jump and Select", "Scroll new record into view and make it the selection");
|
||||||
declareEnum("jump-to-added", "Action on adding or cloning a record", jumpAndSelect)
|
declareEnum("jump-to-added", "Action on adding or cloning a record", jumpAndSelect)
|
||||||
.addValue(jumpAndSelect)
|
.addValue(jumpAndSelect)
|
||||||
|
@ -161,7 +158,6 @@ void CSMPrefs::State::declare()
|
||||||
declareInt("error-height", "Initial height of the error panel", 100).setRange(100, 10000);
|
declareInt("error-height", "Initial height of the error panel", 100).setRange(100, 10000);
|
||||||
declareBool("highlight-occurrences", "Highlight other occurrences of selected names", true);
|
declareBool("highlight-occurrences", "Highlight other occurrences of selected names", true);
|
||||||
declareColour("colour-highlight", "Colour of highlighted occurrences", QColor("lightcyan"));
|
declareColour("colour-highlight", "Colour of highlighted occurrences", QColor("lightcyan"));
|
||||||
declareSeparator();
|
|
||||||
declareColour("colour-int", "Highlight Colour: Integer Literals", QColor("darkmagenta"));
|
declareColour("colour-int", "Highlight Colour: Integer Literals", QColor("darkmagenta"));
|
||||||
declareColour("colour-float", "Highlight Colour: Float Literals", QColor("magenta"));
|
declareColour("colour-float", "Highlight Colour: Float Literals", QColor("magenta"));
|
||||||
declareColour("colour-name", "Highlight Colour: Names", QColor("grey"));
|
declareColour("colour-name", "Highlight Colour: Names", QColor("grey"));
|
||||||
|
@ -180,14 +176,12 @@ void CSMPrefs::State::declare()
|
||||||
|
|
||||||
declareDouble("navi-wheel-factor", "Camera Zoom Sensitivity", 8).setRange(-100.0, 100.0);
|
declareDouble("navi-wheel-factor", "Camera Zoom Sensitivity", 8).setRange(-100.0, 100.0);
|
||||||
declareDouble("s-navi-sensitivity", "Secondary Camera Movement Sensitivity", 50.0).setRange(-1000.0, 1000.0);
|
declareDouble("s-navi-sensitivity", "Secondary Camera Movement Sensitivity", 50.0).setRange(-1000.0, 1000.0);
|
||||||
declareSeparator();
|
|
||||||
|
|
||||||
declareDouble("p-navi-free-sensitivity", "Free Camera Sensitivity", 1 / 650.).setPrecision(5).setRange(0.0, 1.0);
|
declareDouble("p-navi-free-sensitivity", "Free Camera Sensitivity", 1 / 650.).setPrecision(5).setRange(0.0, 1.0);
|
||||||
declareBool("p-navi-free-invert", "Invert Free Camera Mouse Input", false);
|
declareBool("p-navi-free-invert", "Invert Free Camera Mouse Input", false);
|
||||||
declareDouble("navi-free-lin-speed", "Free Camera Linear Speed", 1000.0).setRange(1.0, 10000.0);
|
declareDouble("navi-free-lin-speed", "Free Camera Linear Speed", 1000.0).setRange(1.0, 10000.0);
|
||||||
declareDouble("navi-free-rot-speed", "Free Camera Rotational Speed", 3.14 / 2).setRange(0.001, 6.28);
|
declareDouble("navi-free-rot-speed", "Free Camera Rotational Speed", 3.14 / 2).setRange(0.001, 6.28);
|
||||||
declareDouble("navi-free-speed-mult", "Free Camera Speed Multiplier (from Modifier)", 8).setRange(0.001, 1000.0);
|
declareDouble("navi-free-speed-mult", "Free Camera Speed Multiplier (from Modifier)", 8).setRange(0.001, 1000.0);
|
||||||
declareSeparator();
|
|
||||||
|
|
||||||
declareDouble("p-navi-orbit-sensitivity", "Orbit Camera Sensitivity", 1 / 650.).setPrecision(5).setRange(0.0, 1.0);
|
declareDouble("p-navi-orbit-sensitivity", "Orbit Camera Sensitivity", 1 / 650.).setPrecision(5).setRange(0.0, 1.0);
|
||||||
declareBool("p-navi-orbit-invert", "Invert Orbit Camera Mouse Input", false);
|
declareBool("p-navi-orbit-invert", "Invert Orbit Camera Mouse Input", false);
|
||||||
|
@ -195,7 +189,6 @@ void CSMPrefs::State::declare()
|
||||||
declareDouble("navi-orbit-speed-mult", "Orbital Camera Speed Multiplier (from Modifier)", 4)
|
declareDouble("navi-orbit-speed-mult", "Orbital Camera Speed Multiplier (from Modifier)", 4)
|
||||||
.setRange(0.001, 1000.0);
|
.setRange(0.001, 1000.0);
|
||||||
declareBool("navi-orbit-const-roll", "Keep camera roll constant for orbital camera", true);
|
declareBool("navi-orbit-const-roll", "Keep camera roll constant for orbital camera", true);
|
||||||
declareSeparator();
|
|
||||||
|
|
||||||
declareBool("context-select", "Context Sensitive Selection", false);
|
declareBool("context-select", "Context Sensitive Selection", false);
|
||||||
declareDouble("drag-factor", "Mouse sensitivity during drag operations", 1.0).setRange(0.001, 100.0);
|
declareDouble("drag-factor", "Mouse sensitivity during drag operations", 1.0).setRange(0.001, 100.0);
|
||||||
|
@ -611,16 +604,6 @@ CSMPrefs::ModifierSetting& CSMPrefs::State::declareModifier(const std::string& k
|
||||||
return *setting;
|
return *setting;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CSMPrefs::State::declareSeparator()
|
|
||||||
{
|
|
||||||
if (mCurrentCategory == mCategories.end())
|
|
||||||
throw std::logic_error("no category for setting");
|
|
||||||
|
|
||||||
CSMPrefs::Setting* setting = new CSMPrefs::Setting(&mCurrentCategory->second, &mMutex, "", "");
|
|
||||||
|
|
||||||
mCurrentCategory->second.addSetting(setting);
|
|
||||||
}
|
|
||||||
|
|
||||||
void CSMPrefs::State::declareSubcategory(const QString& label)
|
void CSMPrefs::State::declareSubcategory(const QString& label)
|
||||||
{
|
{
|
||||||
if (mCurrentCategory == mCategories.end())
|
if (mCurrentCategory == mCategories.end())
|
||||||
|
|
|
@ -75,8 +75,6 @@ namespace CSMPrefs
|
||||||
|
|
||||||
ModifierSetting& declareModifier(const std::string& key, const QString& label, int modifier_);
|
ModifierSetting& declareModifier(const std::string& key, const QString& label, int modifier_);
|
||||||
|
|
||||||
void declareSeparator();
|
|
||||||
|
|
||||||
void declareSubcategory(const QString& label);
|
void declareSubcategory(const QString& label);
|
||||||
|
|
||||||
void setDefault(const std::string& key, const std::string& default_);
|
void setDefault(const std::string& key, const std::string& default_);
|
||||||
|
|
|
@ -80,17 +80,7 @@ namespace CSVPrefs
|
||||||
int next = mPageLayout->rowCount();
|
int next = mPageLayout->rowCount();
|
||||||
mPageLayout->addWidget(widgets.second, next, 0, 1, 2);
|
mPageLayout->addWidget(widgets.second, next, 0, 1, 2);
|
||||||
}
|
}
|
||||||
else
|
else if (!setting->getLabel().isEmpty())
|
||||||
{
|
|
||||||
if (setting->getLabel().isEmpty())
|
|
||||||
{
|
|
||||||
// Insert empty space
|
|
||||||
assert(mPageLayout);
|
|
||||||
|
|
||||||
int next = mPageLayout->rowCount();
|
|
||||||
mPageLayout->addWidget(new QWidget(), next, 0);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
// Create new page
|
// Create new page
|
||||||
QWidget* pageWidget = new QWidget();
|
QWidget* pageWidget = new QWidget();
|
||||||
|
@ -102,7 +92,6 @@ namespace CSVPrefs
|
||||||
mPageSelector->addItem(setting->getLabel());
|
mPageSelector->addItem(setting->getLabel());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void KeyBindingPage::resetKeyBindings()
|
void KeyBindingPage::resetKeyBindings()
|
||||||
{
|
{
|
||||||
|
|
|
@ -37,8 +37,4 @@ void CSVPrefs::Page::addSetting(CSMPrefs::Setting* setting)
|
||||||
{
|
{
|
||||||
mGrid->addWidget(widgets.second, next, 0, 1, 2);
|
mGrid->addWidget(widgets.second, next, 0, 1, 2);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
mGrid->addWidget(new QWidget(this), next, 0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue