mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-23 12:39:24 -05:00
Declare PropertyInfo as constexpr, rather than const
This commit is contained in:
@@ -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 "
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 "
|
||||
|
||||
Reference in New Issue
Block a user