Declare PropertyInfo as constexpr, rather than const

This commit is contained in:
Alexander Bock
2018-06-28 17:08:56 -04:00
parent 9408c0c45f
commit 99a6efca8e
92 changed files with 534 additions and 527 deletions
+3 -3
View File
@@ -83,20 +83,20 @@ namespace {
);
}
const openspace::properties::Property::PropertyInfo ShowHelpInfo = {
constexpr openspace::properties::Property::PropertyInfo ShowHelpInfo = {
"ShowHelpText",
"Show tooltip help",
"If this value is enabled these kinds of tooltips are shown for most properties "
"explaining what impact they have on the visuals."
};
const openspace::properties::Property::PropertyInfo HelpTextDelayInfo = {
constexpr openspace::properties::Property::PropertyInfo HelpTextDelayInfo = {
"HelpTextDelay",
"Tooltip Delay (in s)",
"This value determines the delay in seconds after which the tooltip is shown."
};
const openspace::properties::Property::PropertyInfo HiddenInfo = {
constexpr openspace::properties::Property::PropertyInfo HiddenInfo = {
"IsHidden",
"Is Hidden",
"If this value is true, all GUI items will not be rendered, regardless of their "
+2 -2
View File
@@ -25,13 +25,13 @@
#include <modules/imgui/include/guicomponent.h>
namespace {
const openspace::properties::Property::PropertyInfo EnabledInfo = {
constexpr openspace::properties::Property::PropertyInfo EnabledInfo = {
"Enabled",
"Is Enabled",
"This setting determines whether this object will be visible or not."
};
const openspace::properties::Property::PropertyInfo CollapsedInfo = {
constexpr openspace::properties::Property::PropertyInfo CollapsedInfo = {
"Collapsed",
"Is Collapsed",
"This setting determines whether this window is collapsed or not."
@@ -44,27 +44,27 @@ namespace {
Total = 5
};
const openspace::properties::Property::PropertyInfo SortingSelectionInfo = {
constexpr openspace::properties::Property::PropertyInfo SortingSelectionInfo = {
"SortingSelection",
"Sorting",
"This value determines the sorting order of the performance measurements."
};
const openspace::properties::Property::PropertyInfo SceneGraphEnabledInfo = {
constexpr openspace::properties::Property::PropertyInfo SceneGraphEnabledInfo = {
"ShowSceneGraph",
"Show Scene Graph Measurements",
"If this value is enabled, the window showing the measurements for the scene "
"graph values is visible."
};
const openspace::properties::Property::PropertyInfo FunctionsEnabledInfo = {
constexpr openspace::properties::Property::PropertyInfo FunctionsEnabledInfo = {
"ShowFunctions",
"Show Function Measurements",
"If this value is enabled, the window showing the measurements for the "
"individual functions is visible."
};
const openspace::properties::Property::PropertyInfo OutputLogsInfo = {
constexpr openspace::properties::Property::PropertyInfo OutputLogsInfo = {
"OutputLogs",
"Output Logs",
"" // @TODO Missing documentation
+3 -3
View File
@@ -35,7 +35,7 @@
namespace {
const ImVec2 Size = ImVec2(350, 500);
const openspace::properties::Property::PropertyInfo UseTreeInfo = {
constexpr openspace::properties::Property::PropertyInfo UseTreeInfo = {
"TreeLayout",
"Use Tree Layout",
"If this value is checked, this component will display the properties using a "
@@ -43,7 +43,7 @@ namespace {
"property windows that display SceneGraphNodes, or the application might crash."
};
const openspace::properties::Property::PropertyInfo OrderingInfo = {
constexpr openspace::properties::Property::PropertyInfo OrderingInfo = {
"Ordering",
"Tree Ordering",
"This list determines the order of the first tree layer if it is used. Elements "
@@ -51,7 +51,7 @@ namespace {
"elements not listed."
};
const openspace::properties::Property::PropertyInfo IgnoreHiddenInfo = {
constexpr openspace::properties::Property::PropertyInfo IgnoreHiddenInfo = {
"IgnoreHidden",
"Ignore Hidden Hint",
"If this value is 'true', all 'Hidden' hints passed into the SceneGraphNodes are "