Skip to content

Commit 39c1332

Browse files
committed
Rename settings_example2 to application_settings2 example
1 parent 7d335f2 commit 39c1332

File tree

14 files changed

+44
-45
lines changed

14 files changed

+44
-45
lines changed

examples/xtd.forms.examples/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@
150150

151151
## [Components](components/README.md)
152152

153+
* [application_settings](components/application_settings/README.md) represents settings application.
153154
* [background_worker](components/background_worker/README.md) executes an operation on a separate thread.
154155
* [button_images](components/button_images/README.md) represents common images collection can be used for button.
155156
* [button_renderer](components/button_renderer/README.md) show how to use [xtd::forms::button_renderer](https://codedocs.xyz/gammasoft71/xtd/classxtd_1_1forms_1_1button__renderer.html) renderer.
@@ -170,7 +171,6 @@
170171
* [process](components/process_form/README.md) provides access to local and remote processes and enables you to start and stop local system processes.
171172
* [radio_button_renderer](components/radio_button_renderer/README.md) show how to use [xtd::forms::radio_button_renderer](https://codedocs.xyz/gammasoft71/xtd/classxtd_1_1forms_1_1radio__button__renderer.html) renderer.
172173
* [screen](components/screen/README.md) represents a display device or multiple display devices on a single system.
173-
* [settings](components/settings_example/README.md) represents settings application.
174174
* **serial_port** represents a serial port resource.
175175
* **service_controller** represents a Windows service and allows you to connect to a running or stopped service, manipulate it, or get information about it.
176176
* [texts](components/texts/README.md) shows how to used [xtd::forms::system_texts](https://codedocs.xyz/gammasoft71/xtd/classxtd_1_1forms_1_1system__texts.html) collection.
@@ -257,6 +257,7 @@
257257

258258
* [about_dialog_system](others/about_dialog_system/README.md) represents a dialog box that displays about box.
259259
* [anchors](others/anchors/README.md) demonstrates the use of [xtd::forms::button](https://codedocs.xyz/gammasoft71/xtd/classxtd_1_1forms_1_1button.html) container with [xtd::forms::control::anchor](https://codedocs.xyz/gammasoft71/xtd/classxtd_1_1forms_1_1tool__bar.html).
260+
* [application_settings2](others/application_settings2/README.md) represents settings application.
260261
* [auto_scroll](others/auto_scroll/README.md) demonstrates the use of [xtd::forms::panel](https://codedocs.xyz/gammasoft71/xtd/classxtd_1_1forms_1_1panel.html).
261262
* [bitmap_button_with_text](others/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).
262263
* [border_style](others/border_style/README.md) demonstrates the use of [xtd::forms::label::border_style](https://codedocs.xyz/gammasoft71/xtd/classxtd_1_1forms_1_1label.html#a572b81ed9b6e7ba3a3b97501aeb43c69) property.
@@ -302,7 +303,6 @@
302303
* [main_menu_create_standard_items](others/main_menu_create_standard_items/README.md) demonstrates the use of [xtd::forms::main_menu::create_standard_items](https://codedocs.xyz/gammasoft71/xtd/classxtd_1_1forms_1_1main__menu.html#a6bbc2f6a58ca79e0329f882c3cef77e1) method.
303304
* [painting](others/painting/README.md) demonstrates the use of xtd::forms::form, xtd::forms::panel, [xtd::forms::track_bar](https://codedocs.xyz/gammasoft71/xtd/classxtd_1_1forms_1_1track__bar.html) and [xtd::forms::button](https://codedocs.xyz/gammasoft71/xtd/classxtd_1_1forms_1_1button.html) controls with mouse_down, mouse_move and paint events..
304305
* [screen_informations](others/screen_informations/README.md) shows how to get screen information of [xtd::forms::screen](https://codedocs.xyz/gammasoft71/xtd/classxtd_1_1forms_1_1screen.html) control.
305-
* [settings2](others/settings_example2/README.md) represents settings application.
306306
* [smileys](others/smileys/README.md) demonstrates the use of [xtd::forms::label](https://codedocs.xyz/gammasoft71/xtd/classxtd_1_1forms_1_1label.html) control.
307307
* [some_controls](others/some_controls/README.md) demonstrates the use of some controls.
308308
* [some_system_controls](others/some_system_controls/README.md) demonstrates the use of some system controls.

examples/xtd.forms.examples/components/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

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

5+
* [application_settings](application_settings/README.md) represents settings application.
56
* [background_worker](background_worker/README.md) executes an operation on a separate thread.
67
* [button_images](button_images/README.md) represents common images collection can be used for button.
78
* [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.
@@ -22,7 +23,6 @@
2223
* [process](process_form/README.md) provides access to local and remote processes and enables you to start and stop local system processes.
2324
* [radio_button_renderer](radio_button_renderer/README.md) show how to use [xtd::forms::radio_button_renderer](https://gammasoft71.github.io/xtd/reference_guides/latest/classxtd_1_1forms_1_1radio__button__renderer.html) renderer.
2425
* [screen](screen/README.md) represents a display device or multiple display devices on a single system.
25-
* [settings](settings_example/README.md) represents settings application.
2626
* **serial_port** represents a serial port resource.
2727
* **service_controler** represents a Windows service and allows you to connect to a running or stopped service, manipulate it, or get information about it.
2828
* [texts](texts/README.md) shows how to used [xtd::forms::system_texts](https://gammasoft71.github.io/xtd/reference_guides/latest/classxtd_1_1forms_1_1system__texts.html) collection.

examples/xtd.forms.examples/others/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ add_projects(
88
about_dialog_from_executing_assembly_informations
99
anchors
1010
application_run
11+
application_settings2
1112
auto_scroll
1213
bitmap_button_with_text
1314
border_style
@@ -54,7 +55,6 @@ add_projects(
5455
message_dialog_show_sheet
5556
painting
5657
screen_informations
57-
settings_example2
5858
smileys
5959
some_controls
6060
some_system_controls

examples/xtd.forms.examples/others/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
* [about_dialog_system](about_dialog_system/README.md) represents a dialog box that displays about box.
66
* [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).
7+
* [application_settings2](application_settings2/README.md) represents settings application.
78
* [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).
89
* [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).
910
* [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.
@@ -49,7 +50,6 @@
4950
* [main_menu_create_standard_items](main_menu_create_standard_items/README.md) demonstrates the use of [xtd::forms::main_menu::create_standard_items](https://gammasoft71.github.io/xtd/reference_guides/latest/classxtd_1_1forms_1_1main__menu.html#a6bbc2f6a58ca79e0329f882c3cef77e1) method.
5051
* [painting](painting/README.md) demonstrates the use of xtd::forms::form, xtd::forms::panel, [xtd::forms::track_bar](https://gammasoft71.github.io/xtd/reference_guides/latest/classxtd_1_1forms_1_1track__bar.html) and [xtd::forms::button](https://gammasoft71.github.io/xtd/reference_guides/latest/classxtd_1_1forms_1_1button.html) controls with mouse_down, mouse_move and paint events..
5152
* [screen_informations](screen_informations/README.md) shows how to get screen information of [xtd::forms::screen](https://gammasoft71.github.io/xtd/reference_guides/latest/classxtd_1_1forms_1_1screen.html) control.
52-
* [settings2](settings_example2/README.md) represents settings application.
5353
* [smileys](smileys/README.md) demonstrates the use of [xtd::forms::label](https://gammasoft71.github.io/xtd/reference_guides/latest/classxtd_1_1forms_1_1label.html) control.
5454
* [some_controls](some_controls/README.md) demonstrates the use of some controls.
5555
* [some_system_controls](some_system_controls/README.md) demonstrates the use of some system controls.
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 3.20)
22

3-
project(settings_example2)
3+
project(application_settings2)
44
find_package(xtd REQUIRED)
5-
add_sources(README.md src/settings_example2.cpp)
5+
add_sources(README.md src/application_settings2.cpp)
66
target_type(GUI_APPLICATION)
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# application_settings2
2+
3+
demonstrates the use of [xtd::settings](https://gammasoft71.github.io/xtd/reference_guides/latest/classxtd_1_1settings.html) component.
4+
5+
## Sources
6+
7+
* [src/application_settings2.cpp](src/application_settings2.cpp)
8+
* [CMakeLists.txt](CMakeLists.txt)
9+
10+
## Build and run
11+
12+
Open "Command Prompt" or "Terminal". Navigate to the folder that contains the project and type the following:
13+
14+
```shell
15+
xtdc run
16+
```
17+
18+
## Output
19+
20+
### Windows :
21+
22+
![Screenshot](../../../../docs/pictures/examples/application_settings2_w.png)
23+
24+
![Screenshot](../../../../docs/pictures/examples/application_settings2_wd.png)
25+
26+
### macOS :
27+
28+
![Screenshot](../../../../docs/pictures/examples/application_settings2_m.png)
29+
30+
![Screenshot](../../../../docs/pictures/examples/application_settings2_md.png)
31+
32+
### Gnome :
33+
34+
![Screenshot](../../../../docs/pictures/examples/application_settings2_g.png)
35+
36+
![Screenshot](../../../../docs/pictures/examples/application_settings2_gd.png)

examples/xtd.forms.examples/others/settings_example2/src/settings_example2.cpp renamed to examples/xtd.forms.examples/others/application_settings2/src/application_settings2.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@
44
#include <xtd/forms/color_picker>
55
#include <xtd/forms/form>
66

7-
using namespace xtd::configuration;
87
using namespace xtd::drawing;
98
using namespace xtd::forms;
109

1110
auto main() -> int {
12-
settings settings;
11+
auto settings = xtd::configuration::settings {};
1312
auto main_form = form::create("Settings example", form_start_position::manual);
1413

1514
auto back_color_picker = color_picker::create(main_form, main_form.back_color(), {10, 10}, {75, 25});

examples/xtd.forms.examples/others/settings_example2/README.md

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)