Skip to content

Commit

Permalink
Rename and move application_settings_without_cmake_setting_commands e…
Browse files Browse the repository at this point in the history
…xample
  • Loading branch information
gammasoft71 committed Jun 21, 2024
1 parent 0a469be commit 0e0a09f
Show file tree
Hide file tree
Showing 16 changed files with 20 additions and 21 deletions.
1 change: 1 addition & 0 deletions examples/xtd.forms.examples/components/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ find_package(xtd REQUIRED)

add_projects(
application_settings
application_settings_without_cmake_setting_commands
background_worker
button_images
button_renderer
Expand Down
3 changes: 2 additions & 1 deletion examples/xtd.forms.examples/components/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

[This folder](.) contains xtd.forms components examples.

* [application_settings](application_settings/README.md) represents settings application.
* [application_settings](application_settings/README.md) represents settings application with [CMake setting commands](https://gammasoft71.github.io/xtd/reference_guides/latest/_c_make_commands.html#AddSettingSubSection).
* [application_settings_without_cmake_setting_commands](application_settings_without_cmake_setting_commands/README.md) represents settings application without [CMake setting commands](https://gammasoft71.github.io/xtd/reference_guides/latest/_c_make_commands.html#AddSettingSubSection).
* [background_worker](background_worker/README.md) executes an operation on a separate thread.
* [button_images](button_images/README.md) represents common images collection can be used for button.
* [button_renderer](button_renderer/README.md) show how to use [xtd::forms::button_renderer](https://gammasoft71.github.io/xtd/reference_guides/latest/classxtd_1_1forms_1_1button__renderer.html) renderer.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# application_settings

demonstrates the use of [xtd::settings](https://gammasoft71.github.io/xtd/reference_guides/latest/classxtd_1_1settings.html) component.
demonstrates the use of [xtd::settings](https://gammasoft71.github.io/xtd/reference_guides/latest/classxtd_1_1settings.html) component with [CMake setting commands](https://gammasoft71.github.io/xtd/reference_guides/latest/_c_make_commands.html#AddSettingSubSection).

## Sources

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
cmake_minimum_required(VERSION 3.20)

project(application_settings_without_cmake_setting_commands)
find_package(xtd REQUIRED)
add_sources(README.md src/application_settings_without_cmake_setting_commands.cpp)
target_type(GUI_APPLICATION)
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# application_settings2
# application_settings_without_cmake_setting_commands

demonstrates the use of [xtd::settings](https://gammasoft71.github.io/xtd/reference_guides/latest/classxtd_1_1settings.html) component.
demonstrates the use of [xtd::settings](https://gammasoft71.github.io/xtd/reference_guides/latest/classxtd_1_1settings.html) component without [CMake setting commands](https://gammasoft71.github.io/xtd/reference_guides/latest/_c_make_commands.html#AddSettingSubSection).

## Sources

* [src/application_settings2.cpp](src/application_settings2.cpp)
* [src/application_settings_without_cmake_setting_commands.cpp](src/application_settings_without_cmake_setting_commands.cpp)
* [CMakeLists.txt](CMakeLists.txt)

## Build and run
Expand All @@ -19,18 +19,18 @@ xtdc run

### Windows :

![Screenshot](../../../../docs/pictures/examples/application_settings2_w.png)
![Screenshot](../../../../docs/pictures/examples/application_settings_without_cmake_setting_commands_w.png)

![Screenshot](../../../../docs/pictures/examples/application_settings2_wd.png)
![Screenshot](../../../../docs/pictures/examples/application_settings_without_cmake_setting_commands_wd.png)

### macOS :

![Screenshot](../../../../docs/pictures/examples/application_settings2_m.png)
![Screenshot](../../../../docs/pictures/examples/application_settings_without_cmake_setting_commands_m.png)

![Screenshot](../../../../docs/pictures/examples/application_settings2_md.png)
![Screenshot](../../../../docs/pictures/examples/application_settings_without_cmake_setting_commands_md.png)

### Gnome :

![Screenshot](../../../../docs/pictures/examples/application_settings2_g.png)
![Screenshot](../../../../docs/pictures/examples/application_settings_without_cmake_setting_commands_g.png)

![Screenshot](../../../../docs/pictures/examples/application_settings2_gd.png)
![Screenshot](../../../../docs/pictures/examples/application_settings_without_cmake_setting_commands_gd.png)
2 changes: 0 additions & 2 deletions examples/xtd.forms.examples/others/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ find_package(xtd REQUIRED)

add_projects(
about_dialog_system
about_dialog_from_executing_assembly_informations
anchors
application_run
application_settings2
auto_scroll
bitmap_button_with_text
border_style
Expand Down
1 change: 0 additions & 1 deletion examples/xtd.forms.examples/others/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

* [about_dialog_system](about_dialog_system/README.md) represents a dialog box that displays about box.
* [anchors](anchors/README.md) demonstrates the use of [xtd::forms::button](https://gammasoft71.github.io/xtd/reference_guides/latest/classxtd_1_1forms_1_1button.html) container with [xtd::forms::control::anchor](https://gammasoft71.github.io/xtd/reference_guides/latest/classxtd_1_1forms_1_1tool__bar.html).
* [application_settings2](application_settings2/README.md) represents settings application.
* [auto_scroll](auto_scroll/README.md) demonstrates the use of [xtd::forms::panel](https://gammasoft71.github.io/xtd/reference_guides/latest/classxtd_1_1forms_1_1panel.html).
* [bitmap_button_with_text](bitmap_button_with_text/README.md) demonstrates the use of [xtd::forms::button](https://gammasoft71.github.io/xtd/reference_guides/latest/classxtd_1_1forms_1_1button.html) control with [xtd::drawing::image](https://gammasoft71.github.io/xtd/reference_guides/latest/classxtd_1_1drawing_1_1image.html).
* [border_style](border_style/README.md) demonstrates the use of [xtd::forms::label::border_style](https://gammasoft71.github.io/xtd/reference_guides/latest/classxtd_1_1forms_1_1label.html#a572b81ed9b6e7ba3a3b97501aeb43c69) property.
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion src/xtd.core/include/xtd/configuration/settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ namespace xtd {
/// #pragma endregion
/// ```
/// 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).
/// @include application_settings2.cpp
/// @include application_settings_without_cmake_setting_commands.cpp
class core_export_ settings : public object {
struct data;

Expand Down

0 comments on commit 0e0a09f

Please sign in to comment.