You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/xtd.core/include/xtd/configuration/settings.h
+143-2Lines changed: 143 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -25,8 +25,149 @@ namespace xtd {
25
25
/// @remarks The `product_name` is equal to the xtd::reflection::assembly::product() property of the xtd::reflection::assembly::get_executing_assembly() assembly if not empty; otherwise is equal to the filename of the first arguemnt of main.
26
26
/// @remarks The `company_name` is equal to the xtd::reflection::assembly::company() property of the xtd::reflection::assembly::get_executing_assembly() assembly if not empty; otherwise is equal to `product_name`.
27
27
/// @par Examples
28
-
/// The following code example demonstrates the use of settings class.
29
-
/// @include settings_example.cpp
28
+
/// The following code example demonstrates the use of xtd::configuration::settings class with [CMake setting commands](https://gammasoft71.github.io/xtd/reference_guides/latest/_c_make_commands.html#AddSettingSubSection).
29
+
///
30
+
/// • application_Settings.cpp :
31
+
/// @include application_settings.cpp
32
+
/// • properties/settings.cmake :
33
+
/// ```cmake
34
+
/// setting_include(xtd/drawing/point)
35
+
/// setting_include(xtd/drawing/size)
36
+
/// setting_include(xtd/drawing/system_colors)
37
+
/// setting(back_color xtd::drawing::color USER "xtd::drawing::system_colors::control()")
38
+
/// setting(location xtd::drawing::point USER "{100, 50}")
39
+
/// setting(size xtd::drawing::size USER "{335, 45}")
/// // Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
48
+
///
49
+
/// #pragma once
50
+
/// #include <xtd/drawing/point>
51
+
/// #include <xtd/drawing/size>
52
+
/// #include <xtd/drawing/system_colors>
53
+
/// #include <xtd/configuration/settings>
54
+
///
55
+
/// namespace application_settings::properties {
56
+
/// // @brief A strongly typed settings class, for storing user and system settings
57
+
/// // @details This class was auto-generated by CMake script. To add or remove a member, edit your CMakeList.txt or properties/settings.cmake file then rerun cmake tools.
58
+
/// // @remarks See [Settings](https://gammasoft71.github.io/xtd/docs/documentation/Guides/xtd.core/settings) for more informations.
59
+
/// class settings : public xtd::object {
60
+
/// public:
61
+
/// // @name Public Constructors
62
+
///
63
+
/// // @{
64
+
/// // @brief Initializes a new instance of the application_settings::properties::settings class.
65
+
/// // @remarks All properties are reloaded with the last saved value.
66
+
/// settings() noexcept : settings {true} {}
67
+
/// // @brief Initializes a new instance of the application_settings::properties::settings class.
68
+
/// // @param load If true all properties are reloaded with the last saved values; otherwise none.
/// The following code example demonstrates the use of xtd::configuration::settings class without [CMake setting commands](https://gammasoft71.github.io/xtd/reference_guides/latest/_c_make_commands.html#AddSettingSubSection).
0 commit comments