mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-18 13:12:50 +00:00
Changed enum names to match OpenMW naming conventions
This commit is contained in:
parent
88df3b980f
commit
144be59735
@ -10,7 +10,6 @@
|
|||||||
#include "view/doc/viewmanager.hpp"
|
#include "view/doc/viewmanager.hpp"
|
||||||
#include "view/doc/startup.hpp"
|
#include "view/doc/startup.hpp"
|
||||||
#include "view/doc/filedialog.hpp"
|
#include "view/doc/filedialog.hpp"
|
||||||
#include "model/settings/usersettings.hpp"
|
|
||||||
|
|
||||||
namespace CS
|
namespace CS
|
||||||
{
|
{
|
||||||
|
@ -8,12 +8,12 @@ CSVSettings::AbstractBlock::AbstractBlock(bool isVisible, QWidget* parent)
|
|||||||
: QObject (parent), mBox ( new GroupBox (isVisible, parent)), mWidgetParent (parent)
|
: QObject (parent), mBox ( new GroupBox (isVisible, parent)), mWidgetParent (parent)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
QLayout *CSVSettings::AbstractBlock::createLayout (OcsWidgetOrientation direction,
|
QLayout *CSVSettings::AbstractBlock::createLayout (Orientation direction,
|
||||||
bool isZeroMargin, QWidget* parent)
|
bool isZeroMargin, QWidget* parent)
|
||||||
{
|
{
|
||||||
QLayout *layout = 0;
|
QLayout *layout = 0;
|
||||||
|
|
||||||
if (direction == OCS_VERTICAL)
|
if (direction == Orient_Vertical)
|
||||||
layout = new QVBoxLayout (parent);
|
layout = new QVBoxLayout (parent);
|
||||||
else
|
else
|
||||||
layout = new QHBoxLayout (parent);
|
layout = new QHBoxLayout (parent);
|
||||||
@ -37,27 +37,27 @@ CSVSettings::AbstractWidget *CSVSettings::AbstractBlock::buildWidget (const QStr
|
|||||||
switch (def.type)
|
switch (def.type)
|
||||||
{
|
{
|
||||||
|
|
||||||
case OCS_RADIO_WIDGET:
|
case Widget_RadioButton:
|
||||||
widg = createSettingWidget<QRadioButton> (def, layout);
|
widg = createSettingWidget<QRadioButton> (def, layout);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case OCS_SPIN_WIDGET:
|
case Widget_SpinBox:
|
||||||
widg = createSettingWidget<QSpinBox> (def, layout);
|
widg = createSettingWidget<QSpinBox> (def, layout);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case OCS_CHECK_WIDGET:
|
case Widget_CheckBox:
|
||||||
widg = createSettingWidget<QCheckBox> (def, layout);
|
widg = createSettingWidget<QCheckBox> (def, layout);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case OCS_TEXT_WIDGET:
|
case Widget_LineEdit:
|
||||||
widg = createSettingWidget<QLineEdit> (def, layout);
|
widg = createSettingWidget<QLineEdit> (def, layout);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case OCS_LIST_WIDGET:
|
case Widget_ListBox:
|
||||||
widg = createSettingWidget<QListWidget> (def, layout);
|
widg = createSettingWidget<QListWidget> (def, layout);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case OCS_COMBO_WIDGET:
|
case Widget_ComboBox:
|
||||||
widg = createSettingWidget<QComboBox> (def, layout);
|
widg = createSettingWidget<QComboBox> (def, layout);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ namespace CSVSettings
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
QLayout *createLayout (OcsWidgetOrientation direction, bool isZeroMargin, QWidget* parent = 0);
|
QLayout *createLayout (Orientation direction, bool isZeroMargin, QWidget* parent = 0);
|
||||||
AbstractWidget *buildWidget (const QString &widgetName, WidgetDef &wDef,
|
AbstractWidget *buildWidget (const QString &widgetName, WidgetDef &wDef,
|
||||||
QLayout *layout = 0, bool isConnected = true) const;
|
QLayout *layout = 0, bool isConnected = true) const;
|
||||||
|
|
||||||
|
@ -32,9 +32,9 @@ void CSVSettings::AbstractWidget::buildLabelAndWidget (QWidget *widget, WidgetDe
|
|||||||
}
|
}
|
||||||
|
|
||||||
void CSVSettings::AbstractWidget::createLayout
|
void CSVSettings::AbstractWidget::createLayout
|
||||||
(OcsWidgetOrientation direction, bool isZeroMargin)
|
(Orientation direction, bool isZeroMargin)
|
||||||
{
|
{
|
||||||
if (direction == OCS_VERTICAL)
|
if (direction == Orient_Vertical)
|
||||||
mLayout = new QVBoxLayout ();
|
mLayout = new QVBoxLayout ();
|
||||||
else
|
else
|
||||||
mLayout = new QHBoxLayout ();
|
mLayout = new QHBoxLayout ();
|
||||||
@ -43,7 +43,7 @@ void CSVSettings::AbstractWidget::createLayout
|
|||||||
mLayout->setContentsMargins(0, 0, 0, 0);
|
mLayout->setContentsMargins(0, 0, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
QFlags<Qt::AlignmentFlag> CSVSettings::AbstractWidget::getAlignment (CSVSettings::OcsAlignment flag)
|
QFlags<Qt::AlignmentFlag> CSVSettings::AbstractWidget::getAlignment (CSVSettings::Alignment flag)
|
||||||
{
|
{
|
||||||
return QFlags<Qt::AlignmentFlag>(static_cast<int>(flag));
|
return QFlags<Qt::AlignmentFlag>(static_cast<int>(flag));
|
||||||
}
|
}
|
||||||
|
@ -35,12 +35,12 @@ namespace CSVSettings
|
|||||||
virtual void updateWidget (const QString &value) = 0;
|
virtual void updateWidget (const QString &value) = 0;
|
||||||
|
|
||||||
//converts user-defined enum to Qt equivalents
|
//converts user-defined enum to Qt equivalents
|
||||||
QFlags<Qt::AlignmentFlag> getAlignment (OcsAlignment flag);
|
QFlags<Qt::AlignmentFlag> getAlignment (Alignment flag);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
//widget initialization utilities
|
//widget initialization utilities
|
||||||
void createLayout (OcsWidgetOrientation direction, bool isZeroMargin);
|
void createLayout (Orientation direction, bool isZeroMargin);
|
||||||
void buildLabelAndWidget (QWidget *widget, WidgetDef &def, bool noLabel);
|
void buildLabelAndWidget (QWidget *widget, WidgetDef &def, bool noLabel);
|
||||||
|
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ int CSVSettings::CustomBlock::build(GroupBlockDefList &defList, GroupBlockDefLis
|
|||||||
return retVal;
|
return retVal;
|
||||||
}
|
}
|
||||||
|
|
||||||
CSVSettings::GroupBox *CSVSettings::CustomBlock::buildGroupBox (OcsWidgetOrientation orientation)
|
CSVSettings::GroupBox *CSVSettings::CustomBlock::buildGroupBox (Orientation orientation)
|
||||||
{
|
{
|
||||||
GroupBox *box = new GroupBox (false, mBox);
|
GroupBox *box = new GroupBox (false, mBox);
|
||||||
QLayout *layout = createLayout (orientation, true, box);
|
QLayout *layout = createLayout (orientation, true, box);
|
||||||
|
@ -25,7 +25,7 @@ namespace CSVSettings
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
GroupBox *buildGroupBox (OcsWidgetOrientation orientation);
|
GroupBox *buildGroupBox (Orientation orientation);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ void CSVSettings::EditorPage::setupUi()
|
|||||||
undoStackItem->minMax.left = "0";
|
undoStackItem->minMax.left = "0";
|
||||||
undoStackItem->minMax.right = "64";
|
undoStackItem->minMax.right = "64";
|
||||||
|
|
||||||
WidgetDef stackWidget (OCS_SPIN_WIDGET);
|
WidgetDef stackWidget (Widget_SpinBox);
|
||||||
stackWidget.minMax = &(undoStackItem->minMax);
|
stackWidget.minMax = &(undoStackItem->minMax);
|
||||||
stackWidget.widgetWidth = 50;
|
stackWidget.widgetWidth = 50;
|
||||||
|
|
||||||
@ -63,7 +63,7 @@ void CSVSettings::EditorPage::setupUi()
|
|||||||
topLevelItem->minMax.left = "1";
|
topLevelItem->minMax.left = "1";
|
||||||
topLevelItem->minMax.right = "256";
|
topLevelItem->minMax.right = "256";
|
||||||
|
|
||||||
WidgetDef topLvlWinWidget (OCS_SPIN_WIDGET);
|
WidgetDef topLvlWinWidget (Widget_SpinBox);
|
||||||
topLvlWinWidget.minMax = &(topLevelItem->minMax);
|
topLvlWinWidget.minMax = &(topLevelItem->minMax);
|
||||||
topLvlWinWidget.widgetWidth = 50;
|
topLvlWinWidget.widgetWidth = 50;
|
||||||
|
|
||||||
@ -76,9 +76,9 @@ void CSVSettings::EditorPage::setupUi()
|
|||||||
SettingsItemDef *reuseSubItem = new SettingsItemDef (reuseSubwindow.title, "Reuse Subwindows");
|
SettingsItemDef *reuseSubItem = new SettingsItemDef (reuseSubwindow.title, "Reuse Subwindows");
|
||||||
*(reuseSubItem->valueList) << "None" << "Top-Level" << "Document-Level";
|
*(reuseSubItem->valueList) << "None" << "Top-Level" << "Document-Level";
|
||||||
|
|
||||||
WidgetDef reuseSubWidget (OCS_RADIO_WIDGET);
|
WidgetDef reuseSubWidget (Widget_RadioButton);
|
||||||
reuseSubWidget.valueList = (reuseSubItem->valueList);
|
reuseSubWidget.valueList = (reuseSubItem->valueList);
|
||||||
reuseSubWidget.widgetAlignment = OCS_LEFT;
|
reuseSubWidget.widgetAlignment = Align_Left;
|
||||||
|
|
||||||
reuseSubwindow.properties << reuseSubItem;
|
reuseSubwindow.properties << reuseSubItem;
|
||||||
reuseSubItem->widget = reuseSubWidget;
|
reuseSubItem->widget = reuseSubWidget;
|
||||||
@ -89,23 +89,23 @@ void CSVSettings::EditorPage::setupUi()
|
|||||||
|
|
||||||
//custom width
|
//custom width
|
||||||
SettingsItemDef *widthItem = new SettingsItemDef ("Window Width", "640");
|
SettingsItemDef *widthItem = new SettingsItemDef ("Window Width", "640");
|
||||||
widthItem->widget = WidgetDef (OCS_TEXT_WIDGET);
|
widthItem->widget = WidgetDef (Widget_LineEdit);
|
||||||
widthItem->widget.widgetWidth = 45;
|
widthItem->widget.widgetWidth = 45;
|
||||||
|
|
||||||
//custom height
|
//custom height
|
||||||
SettingsItemDef *heightItem = new SettingsItemDef ("Window Height", "480");
|
SettingsItemDef *heightItem = new SettingsItemDef ("Window Height", "480");
|
||||||
heightItem->widget = WidgetDef (OCS_TEXT_WIDGET);
|
heightItem->widget = WidgetDef (Widget_LineEdit);
|
||||||
heightItem->widget.widgetWidth = 45;
|
heightItem->widget.widgetWidth = 45;
|
||||||
heightItem->widget.caption = "x";
|
heightItem->widget.caption = "x";
|
||||||
|
|
||||||
customWindowSize.properties << widthItem << heightItem;
|
customWindowSize.properties << widthItem << heightItem;
|
||||||
customWindowSize.widgetOrientation = OCS_HORIZONTAL;
|
customWindowSize.widgetOrientation = Orient_Horizontal;
|
||||||
customWindowSize.isVisible = false;
|
customWindowSize.isVisible = false;
|
||||||
|
|
||||||
|
|
||||||
//pre-defined
|
//pre-defined
|
||||||
SettingsItemDef *widthByHeightItem = new SettingsItemDef ("Window Size", "640x480");
|
SettingsItemDef *widthByHeightItem = new SettingsItemDef ("Window Size", "640x480");
|
||||||
WidgetDef widthByHeightWidget = WidgetDef (OCS_COMBO_WIDGET);
|
WidgetDef widthByHeightWidget = WidgetDef (Widget_ComboBox);
|
||||||
widthByHeightWidget.widgetWidth = 90;
|
widthByHeightWidget.widgetWidth = 90;
|
||||||
*(widthByHeightItem->valueList) << "640x480" << "800x600" << "1024x768";
|
*(widthByHeightItem->valueList) << "640x480" << "800x600" << "1024x768";
|
||||||
|
|
||||||
@ -125,12 +125,12 @@ void CSVSettings::EditorPage::setupUi()
|
|||||||
|
|
||||||
// window size toggle
|
// window size toggle
|
||||||
windowSizeToggle.captions << "Pre-Defined" << "Custom";
|
windowSizeToggle.captions << "Pre-Defined" << "Custom";
|
||||||
windowSizeToggle.widgetOrientation = OCS_VERTICAL;
|
windowSizeToggle.widgetOrientation = Orient_Vertical;
|
||||||
windowSizeToggle.isVisible = false;
|
windowSizeToggle.isVisible = false;
|
||||||
|
|
||||||
//define a widget for each group in the toggle
|
//define a widget for each group in the toggle
|
||||||
for (int i = 0; i < 2; i++)
|
for (int i = 0; i < 2; i++)
|
||||||
windowSizeToggle.widgets << new WidgetDef (OCS_RADIO_WIDGET);
|
windowSizeToggle.widgets << new WidgetDef (Widget_RadioButton);
|
||||||
|
|
||||||
windowSizeToggle.widgets.at(0)->isDefault = false;
|
windowSizeToggle.widgets.at(0)->isDefault = false;
|
||||||
|
|
||||||
|
@ -24,8 +24,8 @@ void CSVSettings::ItemBlock::buildItemBlockWidgets (SettingsItemDef &iDef)
|
|||||||
switch (wDef.type)
|
switch (wDef.type)
|
||||||
{
|
{
|
||||||
|
|
||||||
case OCS_CHECK_WIDGET:
|
case Widget_CheckBox:
|
||||||
case OCS_RADIO_WIDGET:
|
case Widget_RadioButton:
|
||||||
|
|
||||||
foreach (QString item, *(iDef.valueList))
|
foreach (QString item, *(iDef.valueList))
|
||||||
{
|
{
|
||||||
@ -37,8 +37,8 @@ void CSVSettings::ItemBlock::buildItemBlockWidgets (SettingsItemDef &iDef)
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case OCS_COMBO_WIDGET:
|
case Widget_ComboBox:
|
||||||
case OCS_LIST_WIDGET:
|
case Widget_ListBox:
|
||||||
|
|
||||||
//assign the item's value list to the widget's value list.
|
//assign the item's value list to the widget's value list.
|
||||||
//pass through to default to finish widget construction.
|
//pass through to default to finish widget construction.
|
||||||
|
@ -20,59 +20,59 @@ namespace CSVSettings
|
|||||||
typedef QList<WidgetDef *> WidgetList;
|
typedef QList<WidgetDef *> WidgetList;
|
||||||
typedef QMap<QString, ItemBlock *> ItemBlockMap;
|
typedef QMap<QString, ItemBlock *> ItemBlockMap;
|
||||||
|
|
||||||
enum OcsWidgetOrientation
|
enum Orientation
|
||||||
{
|
{
|
||||||
OCS_HORIZONTAL,
|
Orient_Horizontal,
|
||||||
OCS_VERTICAL
|
Orient_Vertical
|
||||||
};
|
};
|
||||||
|
|
||||||
enum OcsWidgetType
|
enum WidgetType
|
||||||
{
|
{
|
||||||
OCS_CHECK_WIDGET,
|
Widget_CheckBox,
|
||||||
OCS_COMBO_WIDGET,
|
Widget_ComboBox,
|
||||||
OCS_TEXT_WIDGET,
|
Widget_LineEdit,
|
||||||
OCS_LIST_WIDGET,
|
Widget_ListBox,
|
||||||
OCS_RADIO_WIDGET,
|
Widget_RadioButton,
|
||||||
OCS_SPIN_WIDGET,
|
Widget_SpinBox,
|
||||||
OCS_UNDEFINED_WIDGET
|
Widget_Undefined
|
||||||
};
|
};
|
||||||
|
|
||||||
enum OcsAlignment
|
enum Alignment
|
||||||
{
|
{
|
||||||
OCS_LEFT = Qt::AlignLeft,
|
Align_Left = Qt::AlignLeft,
|
||||||
OCS_CENTER = Qt::AlignHCenter,
|
Align_Center = Qt::AlignHCenter,
|
||||||
OCS_RIGHT = Qt::AlignRight
|
Align_Right = Qt::AlignRight
|
||||||
};
|
};
|
||||||
|
|
||||||
//template for defining the widget of a property.
|
//template for defining the widget of a property.
|
||||||
struct WidgetDef
|
struct WidgetDef
|
||||||
{
|
{
|
||||||
OcsWidgetType type; //type of widget providing input
|
WidgetType type; //type of widget providing input
|
||||||
int labelWidth; //width of caption label
|
int labelWidth; //width of caption label
|
||||||
int widgetWidth; //width of input widget
|
int widgetWidth; //width of input widget
|
||||||
OcsWidgetOrientation orientation; //label / widget orientation (horizontal / vertical)
|
Orientation orientation; //label / widget orientation (horizontal / vertical)
|
||||||
QString inputMask; //input mask (line edit)
|
QString inputMask; //input mask (line edit)
|
||||||
QString caption; //label caption. Leave empty for multiple items. See BlockDef::captionList
|
QString caption; //label caption. Leave empty for multiple items. See BlockDef::captionList
|
||||||
QString value; //widget value. Leave empty for multiple items. See BlockDef::valueList
|
QString value; //widget value. Leave empty for multiple items. See BlockDef::valueList
|
||||||
CSMSettings::QStringPair *minMax; //Min/Max QString value pair. If empty, assigned to property item value pair.
|
CSMSettings::QStringPair *minMax; //Min/Max QString value pair. If empty, assigned to property item value pair.
|
||||||
QStringList *valueList; //value list for list widgets. If left empty, is assigned to property item value list during block build().
|
QStringList *valueList; //value list for list widgets. If left empty, is assigned to property item value list during block build().
|
||||||
bool isDefault; //isDefault - determined at runtime.
|
bool isDefault; //isDefault - determined at runtime.
|
||||||
OcsAlignment valueAlignment; //left / center / right-justify text in widget
|
Alignment valueAlignment; //left / center / right-justify text in widget
|
||||||
OcsAlignment widgetAlignment; //left / center / right-justify widget in group box
|
Alignment widgetAlignment; //left / center / right-justify widget in group box
|
||||||
|
|
||||||
|
|
||||||
WidgetDef() : labelWidth (-1), widgetWidth (-1),
|
WidgetDef() : labelWidth (-1), widgetWidth (-1),
|
||||||
orientation (OCS_HORIZONTAL),
|
orientation (Orient_Horizontal),
|
||||||
isDefault (true), valueAlignment (OCS_CENTER),
|
isDefault (true), valueAlignment (Align_Center),
|
||||||
widgetAlignment (OCS_RIGHT),
|
widgetAlignment (Align_Right),
|
||||||
inputMask (""), value (""),
|
inputMask (""), value (""),
|
||||||
caption (""), valueList (0)
|
caption (""), valueList (0)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
WidgetDef (OcsWidgetType widgType)
|
WidgetDef (WidgetType widgType)
|
||||||
: type (widgType), orientation (OCS_HORIZONTAL),
|
: type (widgType), orientation (Orient_Horizontal),
|
||||||
caption (""), value (""), valueAlignment (OCS_CENTER),
|
caption (""), value (""), valueAlignment (Align_Center),
|
||||||
widgetAlignment (OCS_RIGHT),
|
widgetAlignment (Align_Right),
|
||||||
labelWidth (-1), widgetWidth (-1),
|
labelWidth (-1), widgetWidth (-1),
|
||||||
valueList (0), isDefault (true)
|
valueList (0), isDefault (true)
|
||||||
{}
|
{}
|
||||||
@ -91,13 +91,13 @@ namespace CSVSettings
|
|||||||
bool hasMultipleValues;
|
bool hasMultipleValues;
|
||||||
CSMSettings::QStringPair minMax; //minimum / maximum value pair
|
CSMSettings::QStringPair minMax; //minimum / maximum value pair
|
||||||
WidgetDef widget; //definition of the input widget for this setting
|
WidgetDef widget; //definition of the input widget for this setting
|
||||||
OcsWidgetOrientation orientation; //general orientation of the widget / label for this property
|
Orientation orientation; //general orientation of the widget / label for this property
|
||||||
ProxyList *proxyList; //list of property and corresponding default values for proxy widget
|
ProxyList *proxyList; //list of property and corresponding default values for proxy widget
|
||||||
|
|
||||||
SettingsItemDef() : name (""), defaultValue (""), orientation (OCS_VERTICAL), hasMultipleValues (false)
|
SettingsItemDef() : name (""), defaultValue (""), orientation (Orient_Vertical), hasMultipleValues (false)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
SettingsItemDef (QString propName, QString propDefault, OcsWidgetOrientation propOrient = OCS_VERTICAL)
|
SettingsItemDef (QString propName, QString propDefault, Orientation propOrient = Orient_Vertical)
|
||||||
: name (propName), defaultValue (propDefault), orientation (propOrient),
|
: name (propName), defaultValue (propDefault), orientation (propOrient),
|
||||||
hasMultipleValues(false), valueList (new QStringList), proxyList ( new ProxyList)
|
hasMultipleValues(false), valueList (new QStringList), proxyList ( new ProxyList)
|
||||||
{}
|
{}
|
||||||
@ -112,16 +112,16 @@ namespace CSVSettings
|
|||||||
QStringList captions; //list of captions for widgets at the block level (not associated with any particular property)
|
QStringList captions; //list of captions for widgets at the block level (not associated with any particular property)
|
||||||
WidgetList widgets; //list of widgets at the block level (not associated with any particular property)
|
WidgetList widgets; //list of widgets at the block level (not associated with any particular property)
|
||||||
QList<SettingsItemDef *> properties; //list of the property(ies) which are subordinate to the property block.
|
QList<SettingsItemDef *> properties; //list of the property(ies) which are subordinate to the property block.
|
||||||
OcsWidgetOrientation widgetOrientation; //general orientation of widgets in group block
|
Orientation widgetOrientation; //general orientation of widgets in group block
|
||||||
bool isVisible; //determines whether or not box border/title are visible
|
bool isVisible; //determines whether or not box border/title are visible
|
||||||
bool isProxy; //indicates whether or not this block defines a proxy block
|
bool isProxy; //indicates whether or not this block defines a proxy block
|
||||||
QString defaultValue; //generic default value attribute
|
QString defaultValue; //generic default value attribute
|
||||||
|
|
||||||
GroupBlockDef (): title(""), widgetOrientation (OCS_VERTICAL), isVisible (true), isProxy (false), defaultValue ("")
|
GroupBlockDef (): title(""), widgetOrientation (Orient_Vertical), isVisible (true), isProxy (false), defaultValue ("")
|
||||||
{}
|
{}
|
||||||
|
|
||||||
GroupBlockDef (QString blockTitle)
|
GroupBlockDef (QString blockTitle)
|
||||||
: title (blockTitle), widgetOrientation (OCS_VERTICAL), isProxy (false), isVisible (true), defaultValue ("")
|
: title (blockTitle), widgetOrientation (Orient_Vertical), isProxy (false), isVisible (true), defaultValue ("")
|
||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -130,13 +130,13 @@ namespace CSVSettings
|
|||||||
QString title;
|
QString title;
|
||||||
QString defaultValue; //default value for widgets unique to the custom block
|
QString defaultValue; //default value for widgets unique to the custom block
|
||||||
GroupBlockDefList blockDefList; //list of settings groups that comprise the settings within the custom block
|
GroupBlockDefList blockDefList; //list of settings groups that comprise the settings within the custom block
|
||||||
OcsWidgetOrientation blockOrientation;
|
Orientation blockOrientation;
|
||||||
|
|
||||||
CustomBlockDef (): title (""), defaultValue (""), blockOrientation (OCS_HORIZONTAL)
|
CustomBlockDef (): title (""), defaultValue (""), blockOrientation (Orient_Horizontal)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
CustomBlockDef (const QString &blockTitle)
|
CustomBlockDef (const QString &blockTitle)
|
||||||
: title (blockTitle), defaultValue (""), blockOrientation (OCS_HORIZONTAL)
|
: title (blockTitle), defaultValue (""), blockOrientation (Orient_Horizontal)
|
||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -61,7 +61,7 @@ CSVSettings::GroupBox *CSVSettings::ToggleBlock::buildToggleWidgets (GroupBlockD
|
|||||||
WidgetDef *wDef = def.widgets.at(i);
|
WidgetDef *wDef = def.widgets.at(i);
|
||||||
|
|
||||||
wDef->caption = caption;
|
wDef->caption = caption;
|
||||||
wDef->widgetAlignment = OCS_LEFT;
|
wDef->widgetAlignment = Align_Left;
|
||||||
|
|
||||||
AbstractWidget *widg = buildWidget (caption, *wDef, layout, false);
|
AbstractWidget *widg = buildWidget (caption, *wDef, layout, false);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user