Skip to content

Commit

Permalink
Rename settings_example2 to application_settings2 example
Browse files Browse the repository at this point in the history
  • Loading branch information
gammasoft71 committed Jun 21, 2024
1 parent 7d335f2 commit 39c1332
Show file tree
Hide file tree
Showing 14 changed files with 44 additions and 45 deletions.
4 changes: 2 additions & 2 deletions examples/xtd.forms.examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@

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

* [application_settings](components/application_settings/README.md) represents settings application.
* [background_worker](components/background_worker/README.md) executes an operation on a separate thread.
* [button_images](components/button_images/README.md) represents common images collection can be used for button.
* [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.
Expand All @@ -170,7 +171,6 @@
* [process](components/process_form/README.md) provides access to local and remote processes and enables you to start and stop local system processes.
* [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.
* [screen](components/screen/README.md) represents a display device or multiple display devices on a single system.
* [settings](components/settings_example/README.md) represents settings application.
* **serial_port** represents a serial port resource.
* **service_controller** represents a Windows service and allows you to connect to a running or stopped service, manipulate it, or get information about it.
* [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.
Expand Down Expand Up @@ -257,6 +257,7 @@

* [about_dialog_system](others/about_dialog_system/README.md) represents a dialog box that displays about box.
* [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).
* [application_settings2](others/application_settings2/README.md) represents settings application.
* [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).
* [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).
* [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.
Expand Down Expand Up @@ -302,7 +303,6 @@
* [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.
* [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..
* [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.
* [settings2](others/settings_example2/README.md) represents settings application.
* [smileys](others/smileys/README.md) demonstrates the use of [xtd::forms::label](https://codedocs.xyz/gammasoft71/xtd/classxtd_1_1forms_1_1label.html) control.
* [some_controls](others/some_controls/README.md) demonstrates the use of some controls.
* [some_system_controls](others/some_system_controls/README.md) demonstrates the use of some system controls.
Expand Down
2 changes: 1 addition & 1 deletion examples/xtd.forms.examples/components/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

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

* [application_settings](application_settings/README.md) represents settings application.
* [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 All @@ -22,7 +23,6 @@
* [process](process_form/README.md) provides access to local and remote processes and enables you to start and stop local system processes.
* [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.
* [screen](screen/README.md) represents a display device or multiple display devices on a single system.
* [settings](settings_example/README.md) represents settings application.
* **serial_port** represents a serial port resource.
* **service_controler** represents a Windows service and allows you to connect to a running or stopped service, manipulate it, or get information about it.
* [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.
Expand Down
2 changes: 1 addition & 1 deletion examples/xtd.forms.examples/others/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ add_projects(
about_dialog_from_executing_assembly_informations
anchors
application_run
application_settings2
auto_scroll
bitmap_button_with_text
border_style
Expand Down Expand Up @@ -54,7 +55,6 @@ add_projects(
message_dialog_show_sheet
painting
screen_informations
settings_example2
smileys
some_controls
some_system_controls
Expand Down
2 changes: 1 addition & 1 deletion examples/xtd.forms.examples/others/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

* [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 Expand Up @@ -49,7 +50,6 @@
* [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.
* [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..
* [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.
* [settings2](settings_example2/README.md) represents settings application.
* [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.
* [some_controls](some_controls/README.md) demonstrates the use of some controls.
* [some_system_controls](some_system_controls/README.md) demonstrates the use of some system controls.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.20)

project(settings_example2)
project(application_settings2)
find_package(xtd REQUIRED)
add_sources(README.md src/settings_example2.cpp)
add_sources(README.md src/application_settings2.cpp)
target_type(GUI_APPLICATION)
36 changes: 36 additions & 0 deletions examples/xtd.forms.examples/others/application_settings2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# application_settings2

demonstrates the use of [xtd::settings](https://gammasoft71.github.io/xtd/reference_guides/latest/classxtd_1_1settings.html) component.

## Sources

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

## Build and run

Open "Command Prompt" or "Terminal". Navigate to the folder that contains the project and type the following:

```shell
xtdc run
```

## Output

### Windows :

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

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

### macOS :

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

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

### Gnome :

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

![Screenshot](../../../../docs/pictures/examples/application_settings2_gd.png)
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
#include <xtd/forms/color_picker>
#include <xtd/forms/form>

using namespace xtd::configuration;
using namespace xtd::drawing;
using namespace xtd::forms;

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

auto back_color_picker = color_picker::create(main_form, main_form.back_color(), {10, 10}, {75, 25});
Expand Down
36 changes: 0 additions & 36 deletions examples/xtd.forms.examples/others/settings_example2/README.md

This file was deleted.

0 comments on commit 39c1332

Please sign in to comment.