mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2025-12-07 07:12:25 +01:00
Removed first slash in [[ref:libraries/...]] wiki links.
git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@1612 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
[[Property:title|Redefining main_window]]
|
||||
[[Property:weight|1]]
|
||||
[[Property:uuid|f7bfd5d0-86ef-5387-ba79-5461a516bcf6]]
|
||||
When you inherit [[ref:/libraries/wel/reference/wel_application_chart|WEL_APPLICATION]] , you will need to implement the deferred feature main_window as a once function. This will be the main window of your application, and can be any descendent of [[ref:libraries/wel/reference/wel_composite_window_chart|WEL_COMPOSITE_WINDOW]] .
|
||||
When you inherit [[ref:libraries/wel/reference/wel_application_chart|WEL_APPLICATION]] , you will need to implement the deferred feature main_window as a once function. This will be the main window of your application, and can be any descendent of [[ref:libraries/wel/reference/wel_composite_window_chart|WEL_COMPOSITE_WINDOW]] .
|
||||
|
||||
{{note|. See [[Tutorial Step 2|step2]] in the [[WEL Tutorial|tutorial]] for a simple demonstration of how to do this. }}
|
||||
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
[[Property:title|windows cluster]]
|
||||
[[Property:weight|-1]]
|
||||
[[Property:uuid|dc1af280-2e91-713c-751f-e88ce87197cf]]
|
||||
This cluster contains the different types of windows available to a [[ref:/libraries/wel/reference/wel_application_chart|WEL_APPLICATION]] .
|
||||
This cluster contains the different types of windows available to a [[ref:libraries/wel/reference/wel_application_chart|WEL_APPLICATION]] .
|
||||
|
||||
The following effective window types are available:
|
||||
* [[ref:/libraries/wel/reference/wel_popup_window_chart|WEL_POPUP_WINDOW]]
|
||||
* [[ref:/libraries/wel/reference/wel_modal_dialog_chart|WEL_MODAL_DIALOG]]
|
||||
* [[ref:/libraries/wel/reference/wel_modeless_dialog_chart|WEL_MODELESS_DIALOG]]
|
||||
* [[ref:/libraries/wel/reference/wel_mdi_frame_window_chart|WEL_MDI_FRAME_WINDOW]]
|
||||
* [[ref:/libraries/wel/reference/wel_mdi_client_window_chart|WEL_MDI_CLIENT_WINDOW]]
|
||||
* [[ref:/libraries/wel/reference/wel_mdi_child_window_chart|WEL_MDI_CHILD_WINDOW]]
|
||||
* [[ref:/libraries/wel/reference/wel_main_dialog_chart|WEL_MAIN_DIALOG]]
|
||||
* [[ref:/libraries/wel/reference/wel_frame_window_chart|WEL_FRAME_WINDOW]]
|
||||
* [[ref:/libraries/wel/reference/wel_control_window_chart|WEL_CONTROL_WINDOW]]
|
||||
* [[ref:libraries/wel/reference/wel_popup_window_chart|WEL_POPUP_WINDOW]]
|
||||
* [[ref:libraries/wel/reference/wel_modal_dialog_chart|WEL_MODAL_DIALOG]]
|
||||
* [[ref:libraries/wel/reference/wel_modeless_dialog_chart|WEL_MODELESS_DIALOG]]
|
||||
* [[ref:libraries/wel/reference/wel_mdi_frame_window_chart|WEL_MDI_FRAME_WINDOW]]
|
||||
* [[ref:libraries/wel/reference/wel_mdi_client_window_chart|WEL_MDI_CLIENT_WINDOW]]
|
||||
* [[ref:libraries/wel/reference/wel_mdi_child_window_chart|WEL_MDI_CHILD_WINDOW]]
|
||||
* [[ref:libraries/wel/reference/wel_main_dialog_chart|WEL_MAIN_DIALOG]]
|
||||
* [[ref:libraries/wel/reference/wel_frame_window_chart|WEL_FRAME_WINDOW]]
|
||||
* [[ref:libraries/wel/reference/wel_control_window_chart|WEL_CONTROL_WINDOW]]
|
||||
|
||||
{{note|A WEL application must contain at least one window. See the [[WEL Tutorial]] for details of how to set up your first window within a [[ref:/libraries/wel/reference/wel_application_chart|WEL_APPLICATION]] . }}
|
||||
{{note|A WEL application must contain at least one window. See the [[WEL Tutorial]] for details of how to set up your first window within a [[ref:libraries/wel/reference/wel_application_chart|WEL_APPLICATION]] . }}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -28,9 +28,9 @@ This sample contains the following classes:
|
||||
|
||||
{{seealso|<br/>
|
||||
[[WEL_LIST_VIEW|WEL_LIST_VIEW]] <br/>
|
||||
[[ref:/libraries/wel/reference/wel_combo_box_chart|WEL_COMBO_BOX]] <br/>
|
||||
[[ref:libraries/wel/reference/wel_combo_box_chart|WEL_COMBO_BOX]] <br/>
|
||||
[[WEL_PUSH_BUTTON|WEL_PUSH_BUTTON]] <br/>
|
||||
[[ref:/libraries/wel/reference/wel_edit_chart|WEL_EDIT]] <br/>
|
||||
[[ref:libraries/wel/reference/wel_edit_chart|WEL_EDIT]] <br/>
|
||||
[[WEL_RADIO_BUTTON|WEL_RADIO_BUTTON]] <br/>
|
||||
[[WEL_PUSH_BUTTON|WEL_CHECK_BUTTON]] <br/>
|
||||
[[WEL_MULTIPLE_LINE_EDIT|WEL_MULTIPLE_LINE_EDIT]] <br/>
|
||||
|
||||
@@ -24,7 +24,7 @@ This sample contains only one class:
|
||||
|
||||
{{seealso|<br/>
|
||||
[[Tutorial Step 1|tutorial step 1]] <br/>
|
||||
[[ref:/libraries/wel/reference/wel_frame_window_chart|WEL_FRAME_WINDOW]] }}
|
||||
[[ref:libraries/wel/reference/wel_frame_window_chart|WEL_FRAME_WINDOW]] }}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ This sample contains the following classes:
|
||||
* RICHEDIT_DEMO
|
||||
|
||||
{{seealso|<br/>
|
||||
[[ref:/libraries/wel/reference/wel_rich_edit_chart|WEL_RICH_EDIT]] <br/>
|
||||
[[ref:libraries/wel/reference/wel_rich_edit_chart|WEL_RICH_EDIT]] <br/>
|
||||
[[WEL_PRINT_DIALOG|WEL_PRINT_DIALOG]] <br/>
|
||||
[[WEL_SAVE_FILE_DIALOG|WEL_SAVE_FILE_DIALOG]] <br/>
|
||||
[[WEL_OPEN_FILE_DIALOG|WEL_OPEN_FILE_DIALOG]] <br/>
|
||||
|
||||
@@ -27,7 +27,7 @@ This sample contains the following classes:
|
||||
|
||||
|
||||
{{seealso|<br/>
|
||||
[[ref:/libraries/wel/reference/wel_rich_edit_chart|WEL_RICH_EDIT]] }}
|
||||
[[ref:libraries/wel/reference/wel_rich_edit_chart|WEL_RICH_EDIT]] }}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ This sample contains the following classes:
|
||||
* <code>APPLICATION_IDS</code>
|
||||
|
||||
{{seealso|<br/>
|
||||
[[ref:/libraries/wel/reference/wel_tree_view_chart|WEL_TREE_VIEW]] }}
|
||||
[[ref:libraries/wel/reference/wel_tree_view_chart|WEL_TREE_VIEW]] }}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ To compile the example:
|
||||
* Click '''OK'''.
|
||||
|
||||
==Running==
|
||||
After launching the sample, you should see a [[ref:libraries/wel/reference/wel_frame_window_chart|WEL_FRAME_WINDOW]] displayed. If you click the left mouse button in the client area of the window, the coordinates of the click (Relative to the top left of the client area), will be displayed. Clicking the [[ref:/libraries/wel/reference/wel_push_button_chart|WEL_PUSH_BUTTON]] marked "Clear" will clear the client area of the window.
|
||||
After launching the sample, you should see a [[ref:libraries/wel/reference/wel_frame_window_chart|WEL_FRAME_WINDOW]] displayed. If you click the left mouse button in the client area of the window, the coordinates of the click (Relative to the top left of the client area), will be displayed. Clicking the [[ref:libraries/wel/reference/wel_push_button_chart|WEL_PUSH_BUTTON]] marked "Clear" will clear the client area of the window.
|
||||
==Under the Hood==
|
||||
|
||||
A [[ref:libraries/wel/reference/wel_client_dc_chart|WEL_CLIENT_DC]] is used to display output in the client area of the window during the execution of <code>on_left_button_down</code> which has been redefined in <code>MAIN_WINDOW</code>.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[[Property:title|Tutorial Step 1]]
|
||||
[[Property:weight|0]]
|
||||
[[Property:uuid|b952d232-1ef9-04a8-bac4-117185aa316d]]
|
||||
This sample shows you how to set up your first [[ref:/libraries/wel/reference/wel_application_chart|WEL_APPLICATION]] consisting of a single [[ref:/libraries/wel/reference/wel_frame_window_chart|WEL_FRAME_WINDOW]] . This is one of the simplest WEL applications you can write, and the output is shown below:
|
||||
This sample shows you how to set up your first [[ref:libraries/wel/reference/wel_application_chart|WEL_APPLICATION]] consisting of a single [[ref:libraries/wel/reference/wel_frame_window_chart|WEL_FRAME_WINDOW]] . This is one of the simplest WEL applications you can write, and the output is shown below:
|
||||
|
||||
[[Image:step1|step1]]
|
||||
<br/>
|
||||
@@ -24,9 +24,9 @@ After you launch the sample, You should see the window displayed in the screen a
|
||||
|
||||
==Under the Hood==
|
||||
|
||||
Although this system does nothing except create and display a [[ref:/libraries/wel/reference/wel_frame_window_chart|WEL_FRAME_WINDOW]] , it shows how to set up your first [[ref:/libraries/wel/reference/wel_application_chart|WEL_APPLICATION]] .
|
||||
Although this system does nothing except create and display a [[ref:libraries/wel/reference/wel_frame_window_chart|WEL_FRAME_WINDOW]] , it shows how to set up your first [[ref:libraries/wel/reference/wel_application_chart|WEL_APPLICATION]] .
|
||||
|
||||
This sample only contains one class, TUTORIAL_STEP1 which inherits [[ref:/libraries/wel/reference/wel_application_chart|WEL_APPLICATION]] and redefines <code>main_window</code>
|
||||
This sample only contains one class, TUTORIAL_STEP1 which inherits [[ref:libraries/wel/reference/wel_application_chart|WEL_APPLICATION]] and redefines <code>main_window</code>
|
||||
|
||||
{{seealso|<br/>
|
||||
[[Inheriting WEL_APPLICATION|Inheriting WEL application]] <br/>
|
||||
|
||||
@@ -21,7 +21,7 @@ This sample builds on tutorial [[Tutorial Step 7|step 7]] , and also demonstrate
|
||||
After launching the sample, you will see a [[ref:libraries/wel/reference/wel_frame_window_chart|WEL_FRAME_WINDOW]] displayed. By holding down the left mouse button, and moving the mouse (Within the client area of the window), you will be able to draw on the client are of the window. Selecting "Line_thickness" from the "Line" menu, will display a [[ref:libraries/wel/reference/wel_modal_dialog_chart|WEL_MODAL_DIALOG]] which allows you to change the thickness of the line that is drawn. If you select "Exit" from the "File" menu, you will be prompted if you wish to exit the application. Selecting "New" from the "File" menu will clear the window. Selecting "Save" from the "File" menu will display a [[ref:libraries/wel/reference/wel_save_file_dialog_chart|WEL_SAVE_FILE_DIALOG]] which allows you to specify the filename and location of the picture you have drawn. Selecting "Open" from the "File" menu will display a [[ref:libraries/wel/reference/wel_open_file_dialog_chart|WEL_OPEN_FILE_DIALOG]] which allows you to specify a previously saved drawing to open.
|
||||
|
||||
==Under the Hood==
|
||||
The [[ref:libraries/wel/reference/wel_open_file_dialog_chart|WEL_OPEN_FILE_DIALOG]] and the [[ref:libraries/wel/reference/wel_save_file_dialog_chart|WEL_SAVE_FILE_DIALOG]] are both activated from the redefinition of <code>on_menu_command</code>. A new class, <code>LINES</code> is now used to store the lines drawn by the user and this inherits [[ref:/libraries/base/reference/storable_chart|STORABLE]] which allows it to be easily stored and retrieved.
|
||||
The [[ref:libraries/wel/reference/wel_open_file_dialog_chart|WEL_OPEN_FILE_DIALOG]] and the [[ref:libraries/wel/reference/wel_save_file_dialog_chart|WEL_SAVE_FILE_DIALOG]] are both activated from the redefinition of <code>on_menu_command</code>. A new class, <code>LINES</code> is now used to store the lines drawn by the user and this inherits [[ref:libraries/base/reference/storable_chart|STORABLE]] which allows it to be easily stored and retrieved.
|
||||
This sample contains the following classes:
|
||||
* <code>TUTORIAL_STEP6</code>
|
||||
* <code>MAIN_WINDOW</code>
|
||||
@@ -32,8 +32,8 @@ This sample contains the following classes:
|
||||
* <code>LINE</code>
|
||||
|
||||
{{seealso|<br/>
|
||||
[[ref:/libraries/wel/reference/wel_save_file_dialog_chart|Save file dialog]] <br/>
|
||||
[[ref:/libraries/wel/reference/wel_open_file_dialog_chart|Open file dialog]] }}
|
||||
[[ref:libraries/wel/reference/wel_save_file_dialog_chart|Save file dialog]] <br/>
|
||||
[[ref:libraries/wel/reference/wel_open_file_dialog_chart|Open file dialog]] }}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user