wxruby3 1.7.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/INSTALL.md +27 -2
- data/README.md +15 -15
- data/ext/wxruby3/include/wxRubyApp.h +145 -46
- data/ext/wxruby3/include/wxruby-ComboPopup.h +25 -8
- data/ext/wxruby3/include/wxruby-GCTracking.h +262 -0
- data/ext/wxruby3/include/wxruby-MBConv.h +190 -0
- data/ext/wxruby3/include/wxruby-SharedEventHandler.h +183 -0
- data/ext/wxruby3/include/wxruby-SharedPtr.h +104 -0
- data/ext/wxruby3/include/wxruby-runtime.h +29 -0
- data/ext/wxruby3/swig/custom/rubytracking.swg +8 -22
- data/ext/wxruby3/swig/custom/wx_ruby_shared_ptr.i +434 -0
- data/ext/wxruby3/swig/custom/wx_shared_ptr.i +431 -0
- data/ext/wxruby3/swig/mark_free_impl.i +7 -132
- data/ext/wxruby3/swig/memory_management.i +8 -44
- data/ext/wxruby3/swig/wx.i +46 -73
- data/lib/wx/core/const.rb +0 -1
- data/lib/wx/core/context_help.rb +17 -0
- data/lib/wx/core/cursor.rb +1 -0
- data/lib/wx/core/helpcontrollerhelpprovider.rb +10 -2
- data/lib/wx/core/mbconv.rb +11 -0
- data/lib/wx/core/media_ctrl.rb +31 -0
- data/lib/wx/core/top_level_window.rb +7 -0
- data/lib/wx/core.rb +6 -0
- data/lib/wx/doc/art_provider.rb +17 -0
- data/lib/wx/doc/context_help.rb +42 -0
- data/lib/wx/doc/core.rb +0 -5
- data/lib/wx/doc/functions.rb +10 -0
- data/lib/wx/doc/gen/affine_matrix2d.rb +2 -0
- data/lib/wx/doc/gen/art_provider.rb +12 -0
- data/lib/wx/doc/gen/aui/aui_notebook_event.rb +15 -15
- data/lib/wx/doc/gen/aui/aui_pane_info.rb +8 -8
- data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +5 -5
- data/lib/wx/doc/gen/book_ctrl_base.rb +2 -1
- data/lib/wx/doc/gen/calendar_event.rb +5 -5
- data/lib/wx/doc/gen/choicebook.rb +2 -2
- data/lib/wx/doc/gen/collapsible_pane.rb +1 -1
- data/lib/wx/doc/gen/colour_dialog.rb +1 -1
- data/lib/wx/doc/gen/colour_picker_event.rb +3 -3
- data/lib/wx/doc/gen/context_help_button.rb +0 -53
- data/lib/wx/doc/gen/core.rb +4 -4
- data/lib/wx/doc/gen/credential_entry_dialog.rb +2 -2
- data/lib/wx/doc/gen/date_event.rb +2 -2
- data/lib/wx/doc/gen/dial_up_event.rb +2 -2
- data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +2 -2
- data/lib/wx/doc/gen/event.rb +58 -58
- data/lib/wx/doc/gen/ext_help_controller.rb +62 -16
- data/lib/wx/doc/gen/file_ctrl.rb +4 -4
- data/lib/wx/doc/gen/file_dir_picker_event.rb +2 -2
- data/lib/wx/doc/gen/file_system.rb +1 -1
- data/lib/wx/doc/gen/find_dialog_event.rb +5 -5
- data/lib/wx/doc/gen/font_picker_event.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_ctrl.rb +67 -32
- data/lib/wx/doc/gen/header_ctrl_event.rb +13 -13
- data/lib/wx/doc/gen/help_controller.rb +45 -2
- data/lib/wx/doc/gen/html/html_help_controller.rb +74 -32
- data/lib/wx/doc/gen/html/html_help_window.rb +3 -3
- data/lib/wx/doc/gen/html/html_window.rb +4 -4
- data/lib/wx/doc/gen/hyperlink_ctrl.rb +1 -1
- data/lib/wx/doc/gen/list_ctrl.rb +22 -22
- data/lib/wx/doc/gen/listbook.rb +2 -2
- data/lib/wx/doc/gen/mb_conv.rb +10 -0
- data/lib/wx/doc/gen/media_event.rb +6 -6
- data/lib/wx/doc/gen/notebook.rb +2 -2
- data/lib/wx/doc/gen/pg/pg_validation_info.rb +14 -14
- data/lib/wx/doc/gen/pg/property_grid_interface.rb +2 -2
- data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +19 -9
- data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +2 -2
- data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +3 -3
- data/lib/wx/doc/gen/rbn/ribbon_panel.rb +2 -2
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +2 -2
- data/lib/wx/doc/gen/rt/event_list.rb +17 -0
- data/lib/wx/doc/gen/rt/shared_evt_handler.rb +14 -0
- data/lib/wx/doc/gen/rt/thread_event.rb +71 -0
- data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +19 -19
- data/lib/wx/doc/gen/sash_event.rb +2 -2
- data/lib/wx/doc/gen/sash_layout_window.rb +2 -2
- data/lib/wx/doc/gen/search_ctrl.rb +2 -2
- data/lib/wx/doc/gen/spin_ctrl.rb +2 -2
- data/lib/wx/doc/gen/splitter_window.rb +6 -6
- data/lib/wx/doc/gen/stc/styled_text_event.rb +34 -34
- data/lib/wx/doc/gen/task_bar_icon_event.rb +10 -10
- data/lib/wx/doc/gen/text_ctrl.rb +4 -4
- data/lib/wx/doc/gen/toggle_button.rb +1 -1
- data/lib/wx/doc/gen/toolbook.rb +2 -2
- data/lib/wx/doc/gen/top_level_window.rb +19 -0
- data/lib/wx/doc/gen/tree_ctrl.rb +21 -21
- data/lib/wx/doc/gen/treebook.rb +4 -4
- data/lib/wx/doc/gen/utils.rb +2 -2
- data/lib/wx/doc/gen/web/event_list.rb +95 -0
- data/lib/wx/doc/gen/web/web_view.rb +1136 -0
- data/lib/wx/doc/gen/web/web_view_event.rb +210 -0
- data/lib/wx/doc/gen/web/web_view_handler.rb +318 -0
- data/lib/wx/doc/gen/window.rb +1 -1
- data/lib/wx/doc/gen/wizard_event.rb +7 -7
- data/lib/wx/doc/html/html_help_controller.rb +23 -1
- data/lib/wx/doc/mbconv.rb +108 -0
- data/lib/wx/doc/rt/shared_event_handler.rb +49 -0
- data/lib/wx/doc/rt/thread_event.rb +28 -0
- data/lib/wx/doc/webview.rb +40 -0
- data/lib/wx/helpers.rb +1 -1
- data/lib/wx/html/htmlhelpcontroller.rb +10 -0
- data/lib/wx/keyword_defs.rb +11 -0
- data/lib/wx/rt/events/evt_list.rb +8 -0
- data/lib/wx/rt/require.rb +8 -0
- data/lib/wx/rt/thread_event.rb +14 -0
- data/lib/wx/rt.rb +16 -0
- data/lib/wx/version.rb +1 -1
- data/lib/wx/web/events/evt_list.rb +74 -0
- data/lib/wx/web/require.rb +8 -0
- data/lib/wx/web/webview.rb +106 -0
- data/lib/wx/web.rb +17 -0
- data/lib/wx/wxruby/cmd/setup.rb +15 -0
- data/lib/wx.rb +2 -0
- data/rakelib/configure.rb +24 -0
- data/rakelib/gem.rb +3 -2
- data/rakelib/install.rb +54 -27
- data/rakelib/lib/config/macosx.rb +7 -5
- data/rakelib/lib/config/mingw.rb +66 -5
- data/rakelib/lib/config/pkgman/mingw.rb +1 -1
- data/rakelib/lib/config/unixish.rb +4 -2
- data/rakelib/lib/config.rb +37 -3
- data/rakelib/lib/core/include/client_data.inc +38 -17
- data/rakelib/lib/core/include/funcall.inc +1 -1
- data/rakelib/lib/core/include/swigdirector.inc +3 -3
- data/rakelib/lib/core/include/swigrubyrun.inc +14 -26
- data/rakelib/lib/core/package.rb +0 -2
- data/rakelib/lib/director/app.rb +1 -8
- data/rakelib/lib/director/art_provider.rb +7 -3
- data/rakelib/lib/director/comboctrl.rb +0 -7
- data/rakelib/lib/director/context_help_button.rb +35 -2
- data/rakelib/lib/director/event_handler.rb +32 -28
- data/rakelib/lib/director/fs_file.rb +15 -10
- data/rakelib/lib/director/functions.rb +8 -0
- data/rakelib/lib/director/grid_cell_attr.rb +1 -3
- data/rakelib/lib/director/grid_cell_editor.rb +14 -12
- data/rakelib/lib/director/grid_cell_renderer.rb +11 -8
- data/rakelib/lib/director/grid_ctrl.rb +140 -121
- data/rakelib/lib/director/help_controller.rb +70 -2
- data/rakelib/lib/director/mb_conv.rb +30 -0
- data/rakelib/lib/director/menu.rb +92 -42
- data/rakelib/lib/director/menu_bar.rb +84 -45
- data/rakelib/lib/director/menu_item.rb +2 -2
- data/rakelib/lib/director/persistence_manager.rb +3 -2
- data/rakelib/lib/director/preview_frame.rb +2 -2
- data/rakelib/lib/director/richtext_buffer.rb +5 -2
- data/rakelib/lib/director/shared_evt_handler.rb +30 -0
- data/rakelib/lib/director/sizer.rb +8 -17
- data/rakelib/lib/director/sizer_item.rb +3 -4
- data/rakelib/lib/director/task_bar_icon.rb +7 -7
- data/rakelib/lib/director/thread_event.rb +33 -0
- data/rakelib/lib/director/validator.rb +3 -1
- data/rakelib/lib/director/variant.rb +16 -12
- data/rakelib/lib/director/webview.rb +166 -0
- data/rakelib/lib/director/webview_event.rb +37 -0
- data/rakelib/lib/director/webview_handler.rb +63 -0
- data/rakelib/lib/generate/doc/thread_event.yaml +20 -0
- data/rakelib/lib/generate/doc/web_view.yaml +135 -0
- data/rakelib/lib/generate/doc/web_view_event.yaml +38 -0
- data/rakelib/lib/generate/doc/web_view_handler.yaml +58 -0
- data/rakelib/lib/specs/interfaces.rb +12 -0
- data/rakelib/lib/typemap/common.rb +34 -1
- data/rakelib/lib/typemap/mb_conv.rb +58 -0
- data/rakelib/prepost.rake +23 -31
- data/rakelib/prepost.rb +20 -0
- data/samples/event/threaded.rb +295 -42
- data/samples/event/tn_threaded.png +0 -0
- data/samples/help/doc/back.gif +0 -0
- data/samples/help/doc/contents.gif +0 -0
- data/samples/help/doc/cshelp.txt +9 -0
- data/samples/help/doc/doc.chm +0 -0
- data/samples/help/doc/doc.cnt +8 -0
- data/samples/help/doc/doc.h +7 -0
- data/samples/help/doc/doc.hhc +40 -0
- data/samples/help/doc/doc.hhk +31 -0
- data/samples/help/doc/doc.hhp +33 -0
- data/samples/help/doc/doc.hpj +21 -0
- data/samples/help/doc/doc.htm +27 -0
- data/samples/help/doc/doc1.htm +24 -0
- data/samples/help/doc/doc2.htm +12 -0
- data/samples/help/doc/doc3.htm +12 -0
- data/samples/help/doc/doc4.htm +12 -0
- data/samples/help/doc/doc5.htm +14 -0
- data/samples/help/doc/forward.gif +0 -0
- data/samples/help/doc/up.gif +0 -0
- data/samples/help/doc.chm +0 -0
- data/samples/help/doc.chw +0 -0
- data/samples/help/doc.zip +0 -0
- data/samples/help/help.rb +352 -0
- data/samples/help/tn_help.png +0 -0
- data/samples/webview/handler_advanced.html +55 -0
- data/samples/webview/tn_webview.png +0 -0
- data/samples/webview/webview.rb +1264 -0
- data/tests/assets/handler_advanced.html +55 -0
- data/tests/assets/test.css +1 -0
- data/tests/assets/test.html +9 -0
- data/tests/assets/test.zip +0 -0
- data/tests/lib/text_entry_tests.rb +2 -2
- data/tests/lib/wxapp_runner.rb +40 -0
- data/tests/lib/wxframe_runner.rb +17 -2
- data/tests/test_art.rb +8 -8
- data/tests/test_clipboard.rb +4 -4
- data/tests/test_config.rb +6 -6
- data/tests/test_exceptions.rb +8 -6
- data/tests/test_ext_controls.rb +3 -3
- data/tests/test_file_dialog.rb +5 -5
- data/tests/test_font.rb +7 -7
- data/tests/test_grid_ctrl.rb +133 -0
- data/tests/test_help.rb +88 -0
- data/tests/test_intl.rb +1 -1
- data/tests/test_media_ctrl.rb +14 -6
- data/tests/test_menu.rb +94 -86
- data/tests/test_persistence.rb +1 -1
- data/tests/test_proof_check.rb +5 -5
- data/tests/test_propgrid.rb +1 -1
- data/tests/test_shared_event_handler.rb +141 -0
- data/tests/test_std_controls.rb +5 -5
- data/tests/test_webview.rb +492 -0
- data/tests/test_window.rb +3 -3
- metadata +78 -2
data/lib/wx/doc/gen/file_ctrl.rb
CHANGED
|
@@ -27,19 +27,19 @@ module Wx
|
|
|
27
27
|
|
|
28
28
|
#
|
|
29
29
|
#
|
|
30
|
-
EVT_FILECTRL_SELECTIONCHANGED =
|
|
30
|
+
EVT_FILECTRL_SELECTIONCHANGED = 10161
|
|
31
31
|
|
|
32
32
|
#
|
|
33
33
|
#
|
|
34
|
-
EVT_FILECTRL_FILEACTIVATED =
|
|
34
|
+
EVT_FILECTRL_FILEACTIVATED = 10162
|
|
35
35
|
|
|
36
36
|
#
|
|
37
37
|
#
|
|
38
|
-
EVT_FILECTRL_FOLDERCHANGED =
|
|
38
|
+
EVT_FILECTRL_FOLDERCHANGED = 10163
|
|
39
39
|
|
|
40
40
|
#
|
|
41
41
|
#
|
|
42
|
-
EVT_FILECTRL_FILTERCHANGED =
|
|
42
|
+
EVT_FILECTRL_FILTERCHANGED = 10164
|
|
43
43
|
|
|
44
44
|
# This control allows the user to select a file.
|
|
45
45
|
#
|
|
@@ -47,11 +47,11 @@ module Wx
|
|
|
47
47
|
|
|
48
48
|
#
|
|
49
49
|
#
|
|
50
|
-
EVT_FILEPICKER_CHANGED =
|
|
50
|
+
EVT_FILEPICKER_CHANGED = 10165
|
|
51
51
|
|
|
52
52
|
#
|
|
53
53
|
#
|
|
54
|
-
EVT_DIRPICKER_CHANGED =
|
|
54
|
+
EVT_DIRPICKER_CHANGED = 10166
|
|
55
55
|
|
|
56
56
|
# This event class is used for the events generated by {Wx::FilePickerCtrl} and by {Wx::DirPickerCtrl}.
|
|
57
57
|
#
|
|
@@ -148,7 +148,7 @@ module Wx
|
|
|
148
148
|
|
|
149
149
|
# This {Wx::FileSystem} handler can store arbitrary data in memory stream and make them accessible via an URL.
|
|
150
150
|
#
|
|
151
|
-
# It is particularly suitable for storing bitmaps from resources or included XPM files so that they can be used with {Wx::HTML} or {Wx::WebView}.
|
|
151
|
+
# It is particularly suitable for storing bitmaps from resources or included XPM files so that they can be used with {Wx::HTML} or {Wx::WEB::WebView}.
|
|
152
152
|
# Filenames are prefixed with <code>"memory:"</code>, e.g. <code>"memory:myfile.html"</code>.
|
|
153
153
|
#
|
|
154
154
|
# Category: Virtual File System
|
|
@@ -54,23 +54,23 @@ module Wx
|
|
|
54
54
|
|
|
55
55
|
#
|
|
56
56
|
#
|
|
57
|
-
EVT_FIND =
|
|
57
|
+
EVT_FIND = 10156
|
|
58
58
|
|
|
59
59
|
#
|
|
60
60
|
#
|
|
61
|
-
EVT_FIND_NEXT =
|
|
61
|
+
EVT_FIND_NEXT = 10157
|
|
62
62
|
|
|
63
63
|
#
|
|
64
64
|
#
|
|
65
|
-
EVT_FIND_REPLACE =
|
|
65
|
+
EVT_FIND_REPLACE = 10158
|
|
66
66
|
|
|
67
67
|
#
|
|
68
68
|
#
|
|
69
|
-
EVT_FIND_REPLACE_ALL =
|
|
69
|
+
EVT_FIND_REPLACE_ALL = 10159
|
|
70
70
|
|
|
71
71
|
#
|
|
72
72
|
#
|
|
73
|
-
EVT_FIND_CLOSE =
|
|
73
|
+
EVT_FIND_CLOSE = 10160
|
|
74
74
|
|
|
75
75
|
# {Wx::FindReplaceDialog} events.
|
|
76
76
|
#
|
|
@@ -108,126 +108,126 @@ module Wx
|
|
|
108
108
|
|
|
109
109
|
#
|
|
110
110
|
#
|
|
111
|
-
EVT_GRID_CELL_LEFT_CLICK =
|
|
111
|
+
EVT_GRID_CELL_LEFT_CLICK = 10262
|
|
112
112
|
|
|
113
113
|
#
|
|
114
114
|
#
|
|
115
|
-
EVT_GRID_CELL_RIGHT_CLICK =
|
|
115
|
+
EVT_GRID_CELL_RIGHT_CLICK = 10263
|
|
116
116
|
|
|
117
117
|
#
|
|
118
118
|
#
|
|
119
|
-
EVT_GRID_CELL_LEFT_DCLICK =
|
|
119
|
+
EVT_GRID_CELL_LEFT_DCLICK = 10264
|
|
120
120
|
|
|
121
121
|
#
|
|
122
122
|
#
|
|
123
|
-
EVT_GRID_CELL_RIGHT_DCLICK =
|
|
123
|
+
EVT_GRID_CELL_RIGHT_DCLICK = 10265
|
|
124
124
|
|
|
125
125
|
#
|
|
126
126
|
#
|
|
127
|
-
EVT_GRID_LABEL_LEFT_CLICK =
|
|
127
|
+
EVT_GRID_LABEL_LEFT_CLICK = 10267
|
|
128
128
|
|
|
129
129
|
#
|
|
130
130
|
#
|
|
131
|
-
EVT_GRID_LABEL_RIGHT_CLICK =
|
|
131
|
+
EVT_GRID_LABEL_RIGHT_CLICK = 10268
|
|
132
132
|
|
|
133
133
|
#
|
|
134
134
|
#
|
|
135
|
-
EVT_GRID_LABEL_LEFT_DCLICK =
|
|
135
|
+
EVT_GRID_LABEL_LEFT_DCLICK = 10269
|
|
136
136
|
|
|
137
137
|
#
|
|
138
138
|
#
|
|
139
|
-
EVT_GRID_LABEL_RIGHT_DCLICK =
|
|
139
|
+
EVT_GRID_LABEL_RIGHT_DCLICK = 10270
|
|
140
140
|
|
|
141
141
|
#
|
|
142
142
|
#
|
|
143
|
-
EVT_GRID_ROW_SIZE =
|
|
143
|
+
EVT_GRID_ROW_SIZE = 10271
|
|
144
144
|
|
|
145
145
|
#
|
|
146
146
|
#
|
|
147
|
-
EVT_GRID_ROW_AUTO_SIZE =
|
|
147
|
+
EVT_GRID_ROW_AUTO_SIZE = 10272
|
|
148
148
|
|
|
149
149
|
#
|
|
150
150
|
#
|
|
151
|
-
EVT_GRID_COL_SIZE =
|
|
151
|
+
EVT_GRID_COL_SIZE = 10273
|
|
152
152
|
|
|
153
153
|
#
|
|
154
154
|
#
|
|
155
|
-
EVT_GRID_COL_AUTO_SIZE =
|
|
155
|
+
EVT_GRID_COL_AUTO_SIZE = 10274
|
|
156
156
|
|
|
157
157
|
#
|
|
158
158
|
#
|
|
159
|
-
EVT_GRID_ROW_LABEL_SIZE =
|
|
159
|
+
EVT_GRID_ROW_LABEL_SIZE = 10275
|
|
160
160
|
|
|
161
161
|
#
|
|
162
162
|
#
|
|
163
|
-
EVT_GRID_COL_LABEL_SIZE =
|
|
163
|
+
EVT_GRID_COL_LABEL_SIZE = 10276
|
|
164
164
|
|
|
165
165
|
#
|
|
166
166
|
#
|
|
167
|
-
EVT_GRID_RANGE_SELECTING =
|
|
167
|
+
EVT_GRID_RANGE_SELECTING = 10280
|
|
168
168
|
|
|
169
169
|
#
|
|
170
170
|
#
|
|
171
|
-
EVT_GRID_RANGE_SELECTED =
|
|
171
|
+
EVT_GRID_RANGE_SELECTED = 10281
|
|
172
172
|
|
|
173
173
|
#
|
|
174
174
|
#
|
|
175
|
-
EVT_GRID_CELL_CHANGING =
|
|
175
|
+
EVT_GRID_CELL_CHANGING = 10282
|
|
176
176
|
|
|
177
177
|
#
|
|
178
178
|
#
|
|
179
|
-
EVT_GRID_CELL_CHANGED =
|
|
179
|
+
EVT_GRID_CELL_CHANGED = 10283
|
|
180
180
|
|
|
181
181
|
#
|
|
182
182
|
#
|
|
183
|
-
EVT_GRID_SELECT_CELL =
|
|
183
|
+
EVT_GRID_SELECT_CELL = 10284
|
|
184
184
|
|
|
185
185
|
#
|
|
186
186
|
#
|
|
187
|
-
EVT_GRID_EDITOR_SHOWN =
|
|
187
|
+
EVT_GRID_EDITOR_SHOWN = 10285
|
|
188
188
|
|
|
189
189
|
#
|
|
190
190
|
#
|
|
191
|
-
EVT_GRID_EDITOR_HIDDEN =
|
|
191
|
+
EVT_GRID_EDITOR_HIDDEN = 10286
|
|
192
192
|
|
|
193
193
|
#
|
|
194
194
|
#
|
|
195
|
-
EVT_GRID_EDITOR_CREATED =
|
|
195
|
+
EVT_GRID_EDITOR_CREATED = 10287
|
|
196
196
|
|
|
197
197
|
#
|
|
198
198
|
#
|
|
199
|
-
EVT_GRID_CELL_BEGIN_DRAG =
|
|
199
|
+
EVT_GRID_CELL_BEGIN_DRAG = 10266
|
|
200
200
|
|
|
201
201
|
#
|
|
202
202
|
#
|
|
203
|
-
EVT_GRID_ROW_MOVE =
|
|
203
|
+
EVT_GRID_ROW_MOVE = 10277
|
|
204
204
|
|
|
205
205
|
#
|
|
206
206
|
#
|
|
207
|
-
EVT_GRID_COL_MOVE =
|
|
207
|
+
EVT_GRID_COL_MOVE = 10278
|
|
208
208
|
|
|
209
209
|
#
|
|
210
210
|
#
|
|
211
|
-
EVT_GRID_COL_SORT =
|
|
211
|
+
EVT_GRID_COL_SORT = 10279
|
|
212
212
|
|
|
213
213
|
#
|
|
214
214
|
#
|
|
215
|
-
EVT_GRID_TABBING =
|
|
215
|
+
EVT_GRID_TABBING = 10288
|
|
216
216
|
|
|
217
217
|
# wxRuby specific alias for Wx::EVT_GRID_COL_SIZE
|
|
218
|
-
EVT_GRID_CMD_COL_SIZE =
|
|
218
|
+
EVT_GRID_CMD_COL_SIZE = 10273
|
|
219
219
|
|
|
220
220
|
# wxRuby specific alias for Wx::EVT_GRID_ROW_SIZE
|
|
221
|
-
EVT_GRID_CMD_ROW_SIZE =
|
|
221
|
+
EVT_GRID_CMD_ROW_SIZE = 10271
|
|
222
222
|
|
|
223
223
|
# wxRuby specific alias for Wx::EVT_GRID_EDITOR_CREATED
|
|
224
|
-
EVT_GRID_CMD_EDITOR_CREATED =
|
|
224
|
+
EVT_GRID_CMD_EDITOR_CREATED = 10287
|
|
225
225
|
|
|
226
226
|
# wxRuby specific alias for Wx::wxEVT_GRID_RANGE_SELECTING
|
|
227
|
-
EVT_GRID_CMD_RANGE_SELECTING =
|
|
227
|
+
EVT_GRID_CMD_RANGE_SELECTING = 10280
|
|
228
228
|
|
|
229
229
|
# wxRuby specific alias for Wx::wxEVT_GRID_RANGE_SELECTED
|
|
230
|
-
EVT_GRID_CMD_RANGE_SELECTED =
|
|
230
|
+
EVT_GRID_CMD_RANGE_SELECTED = 10281
|
|
231
231
|
|
|
232
232
|
# {Wx::GRID::Grid} and its related classes are used for displaying and editing tabular data.
|
|
233
233
|
#
|
|
@@ -2728,6 +2728,41 @@ module Wx
|
|
|
2728
2728
|
def set_grid_frozen_border_pen_width(width) end
|
|
2729
2729
|
alias_method :grid_frozen_border_pen_width=, :set_grid_frozen_border_pen_width
|
|
2730
2730
|
|
|
2731
|
+
# Returns true if this grid has support for cell attributes.
|
|
2732
|
+
#
|
|
2733
|
+
# The grid supports attributes if it has the associated table which, in turn, has attributes support, i.e. {Wx::GRID::GridTableBase#can_have_attributes} returns true.
|
|
2734
|
+
# @return [Boolean]
|
|
2735
|
+
def can_have_attributes; end
|
|
2736
|
+
alias_method :can_have_attributes?, :can_have_attributes
|
|
2737
|
+
|
|
2738
|
+
# Get the minimal width of the given column/row.
|
|
2739
|
+
#
|
|
2740
|
+
# The value returned by this function may be different from that returned by {Wx::GRID::Grid#get_col_minimal_acceptable_width} if {Wx::GRID::Grid#set_col_minimal_width} had been called for this column.
|
|
2741
|
+
# @param col [Integer]
|
|
2742
|
+
# @return [Integer]
|
|
2743
|
+
def get_col_minimal_width(col) end
|
|
2744
|
+
alias_method :col_minimal_width, :get_col_minimal_width
|
|
2745
|
+
|
|
2746
|
+
# Returns the coordinate of the right border specified column.
|
|
2747
|
+
# @param col [Integer]
|
|
2748
|
+
# @return [Integer]
|
|
2749
|
+
def get_col_right(col) end
|
|
2750
|
+
alias_method :col_right, :get_col_right
|
|
2751
|
+
|
|
2752
|
+
# Returns the coordinate of the left border specified column.
|
|
2753
|
+
# @param col [Integer]
|
|
2754
|
+
# @return [Integer]
|
|
2755
|
+
def get_col_left(col) end
|
|
2756
|
+
alias_method :col_left, :get_col_left
|
|
2757
|
+
|
|
2758
|
+
# Returns the minimal size for the given column.
|
|
2759
|
+
#
|
|
2760
|
+
# The value returned by this function may be different from that returned by {Wx::GRID::Grid#get_row_minimal_acceptable_height} if {Wx::GRID::Grid#set_row_minimal_height} had been called for this row.
|
|
2761
|
+
# @param col [Integer]
|
|
2762
|
+
# @return [Integer]
|
|
2763
|
+
def get_row_minimal_height(col) end
|
|
2764
|
+
alias_method :row_minimal_height, :get_row_minimal_height
|
|
2765
|
+
|
|
2731
2766
|
end # Grid
|
|
2732
2767
|
|
|
2733
2768
|
# Represents coordinates of a block of cells in the grid.
|
|
@@ -24,55 +24,55 @@ module Wx
|
|
|
24
24
|
|
|
25
25
|
#
|
|
26
26
|
#
|
|
27
|
-
EVT_HEADER_CLICK =
|
|
27
|
+
EVT_HEADER_CLICK = 10168
|
|
28
28
|
|
|
29
29
|
#
|
|
30
30
|
#
|
|
31
|
-
EVT_HEADER_RIGHT_CLICK =
|
|
31
|
+
EVT_HEADER_RIGHT_CLICK = 10169
|
|
32
32
|
|
|
33
33
|
#
|
|
34
34
|
#
|
|
35
|
-
EVT_HEADER_MIDDLE_CLICK =
|
|
35
|
+
EVT_HEADER_MIDDLE_CLICK = 10170
|
|
36
36
|
|
|
37
37
|
#
|
|
38
38
|
#
|
|
39
|
-
EVT_HEADER_DCLICK =
|
|
39
|
+
EVT_HEADER_DCLICK = 10171
|
|
40
40
|
|
|
41
41
|
#
|
|
42
42
|
#
|
|
43
|
-
EVT_HEADER_RIGHT_DCLICK =
|
|
43
|
+
EVT_HEADER_RIGHT_DCLICK = 10172
|
|
44
44
|
|
|
45
45
|
#
|
|
46
46
|
#
|
|
47
|
-
EVT_HEADER_MIDDLE_DCLICK =
|
|
47
|
+
EVT_HEADER_MIDDLE_DCLICK = 10173
|
|
48
48
|
|
|
49
49
|
#
|
|
50
50
|
#
|
|
51
|
-
EVT_HEADER_SEPARATOR_DCLICK =
|
|
51
|
+
EVT_HEADER_SEPARATOR_DCLICK = 10174
|
|
52
52
|
|
|
53
53
|
#
|
|
54
54
|
#
|
|
55
|
-
EVT_HEADER_BEGIN_RESIZE =
|
|
55
|
+
EVT_HEADER_BEGIN_RESIZE = 10175
|
|
56
56
|
|
|
57
57
|
#
|
|
58
58
|
#
|
|
59
|
-
EVT_HEADER_RESIZING =
|
|
59
|
+
EVT_HEADER_RESIZING = 10176
|
|
60
60
|
|
|
61
61
|
#
|
|
62
62
|
#
|
|
63
|
-
EVT_HEADER_END_RESIZE =
|
|
63
|
+
EVT_HEADER_END_RESIZE = 10177
|
|
64
64
|
|
|
65
65
|
#
|
|
66
66
|
#
|
|
67
|
-
EVT_HEADER_BEGIN_REORDER =
|
|
67
|
+
EVT_HEADER_BEGIN_REORDER = 10178
|
|
68
68
|
|
|
69
69
|
#
|
|
70
70
|
#
|
|
71
|
-
EVT_HEADER_END_REORDER =
|
|
71
|
+
EVT_HEADER_END_REORDER = 10179
|
|
72
72
|
|
|
73
73
|
#
|
|
74
74
|
#
|
|
75
|
-
EVT_HEADER_DRAGGING_CANCELLED =
|
|
75
|
+
EVT_HEADER_DRAGGING_CANCELLED = 10180
|
|
76
76
|
|
|
77
77
|
# Event class representing the events generated by {Wx::HeaderCtrl}.
|
|
78
78
|
#
|
|
@@ -99,6 +99,17 @@ module Wx
|
|
|
99
99
|
# @return [Wx::HelpController]
|
|
100
100
|
def initialize(parentWindow=nil) end
|
|
101
101
|
|
|
102
|
+
# If the help viewer is not running, runs it and displays the file at the given block number.
|
|
103
|
+
#
|
|
104
|
+
# - WinHelp: Refers to the context number.
|
|
105
|
+
# - MS HTML Help: Refers to the context number.
|
|
106
|
+
# - External HTML help: the same as for {Wx::HelpController#display_section}.
|
|
107
|
+
# - {Wx::HTML::HtmlHelpController}: sectionNo is an identifier as specified in the <code></code>.hhc file. See Help Files Format.
|
|
108
|
+
# DeprecatedThis function is for backward compatibility only, and applications should use {Wx::HelpController#display_section} instead.
|
|
109
|
+
# @param blockNo [Integer]
|
|
110
|
+
# @return [Boolean]
|
|
111
|
+
def display_block(blockNo) end
|
|
112
|
+
|
|
102
113
|
# If the help viewer is not running, runs it and displays the contents.
|
|
103
114
|
# @return [Boolean]
|
|
104
115
|
def display_contents; end
|
|
@@ -110,6 +121,23 @@ module Wx
|
|
|
110
121
|
# @return [Boolean]
|
|
111
122
|
def display_context_popup(contextId) end
|
|
112
123
|
|
|
124
|
+
# @overload display_section(section)
|
|
125
|
+
# If the help viewer is not running, runs it and displays the given section.
|
|
126
|
+
#
|
|
127
|
+
# The interpretation of section differs between help viewers. For most viewers, this call is equivalent to KeywordSearch. For MS HTML Help, {Wx::HTML} help and external HTML help, if section has a .htm or .html extension, that HTML file will be displayed; otherwise a keyword search is done.
|
|
128
|
+
# @param section [String]
|
|
129
|
+
# @return [Boolean]
|
|
130
|
+
# @overload display_section(sectionNo)
|
|
131
|
+
# If the help viewer is not running, runs it and displays the given section.
|
|
132
|
+
#
|
|
133
|
+
# - WinHelp, MS HTML Help sectionNo is a context id.
|
|
134
|
+
# - MS HTML Help: Pass -1 in sectionNo to display the index.
|
|
135
|
+
# - External HTML help: {Wx::ExtHelpController} implements sectionNo as an id in a map file, which is of the form:
|
|
136
|
+
# - {Wx::HTML::HtmlHelpController}: sectionNo is an identifier as specified in the <code></code>.hhc file. See Help Files Format. See also the help sample for notes on how to specify section numbers for various help file formats.
|
|
137
|
+
# @param sectionNo [Integer]
|
|
138
|
+
# @return [Boolean]
|
|
139
|
+
def display_section(*args) end
|
|
140
|
+
|
|
113
141
|
# Displays the text in a popup window, if possible.
|
|
114
142
|
#
|
|
115
143
|
# Returns false if unsuccessful or not implemented.
|
|
@@ -146,12 +174,27 @@ module Wx
|
|
|
146
174
|
# @return [Boolean]
|
|
147
175
|
def keyword_search(keyWord, mode=Wx::HelpSearchMode::HELP_SEARCH_ALL) end
|
|
148
176
|
|
|
177
|
+
# If the help viewer is not running, runs it and loads the given file.
|
|
178
|
+
#
|
|
179
|
+
# If the filename is not supplied or is empty, the file specified in {Wx::HelpController#initialize} is used.
|
|
180
|
+
# If the viewer is already displaying the specified file, it will not be reloaded. This member function may be used before each display call in case the user has opened another file.
|
|
181
|
+
# {Wx::HTML::HtmlHelpController} ignores this call.
|
|
182
|
+
# @param file [String]
|
|
183
|
+
# @return [Boolean]
|
|
184
|
+
def load_file(file=('')) end
|
|
185
|
+
|
|
149
186
|
# Overridable member called when this application's viewer is quit by the user.
|
|
150
187
|
#
|
|
151
188
|
# This does not work for all help controllers.
|
|
152
189
|
# @return [void]
|
|
153
190
|
def on_quit; end
|
|
154
191
|
|
|
192
|
+
# If the viewer is running, quits it by disconnecting.
|
|
193
|
+
#
|
|
194
|
+
# For Windows Help, the viewer will only close if no other application is using it.
|
|
195
|
+
# @return [Boolean]
|
|
196
|
+
def quit; end
|
|
197
|
+
|
|
155
198
|
# Set the parameters of the frame window.
|
|
156
199
|
#
|
|
157
200
|
# For {Wx::HTML::HtmlHelpController}, titleFormat specifies the title string format (with s being replaced by the actual page title) and size and position specify the geometry of the frame.
|
|
@@ -184,9 +227,9 @@ module Wx
|
|
|
184
227
|
#
|
|
185
228
|
# Todomodernize this function with {Wx::LaunchDefaultBrowser}
|
|
186
229
|
# @param viewer [String] This defaults to "netscape" for {Wx::ExtHelpController}.
|
|
187
|
-
# @param flags [Integer] This defaults to {Wx::HELP_NETSCAPE} for {Wx::ExtHelpController}, indicating that the viewer is a variant of Netscape Navigator.
|
|
230
|
+
# @param flags [Integer] This defaults to {Wx::HTML::HELP_NETSCAPE} for {Wx::ExtHelpController}, indicating that the viewer is a variant of Netscape Navigator.
|
|
188
231
|
# @return [void]
|
|
189
|
-
def set_viewer(viewer, flags=Wx::HELP_NETSCAPE) end
|
|
232
|
+
def set_viewer(viewer, flags=Wx::HTML::HELP_NETSCAPE) end
|
|
190
233
|
alias_method :viewer=, :set_viewer
|
|
191
234
|
|
|
192
235
|
end # HelpController
|
|
@@ -100,30 +100,30 @@ module Wx
|
|
|
100
100
|
# @wxrb_require USE_HELP,USE_HTML
|
|
101
101
|
class HtmlHelpController < Object
|
|
102
102
|
|
|
103
|
-
# @overload initialize(style=Wx::HF_DEFAULT_STYLE, parentWindow=nil)
|
|
103
|
+
# @overload initialize(style=Wx::HTML::HF_DEFAULT_STYLE, parentWindow=nil)
|
|
104
104
|
# Constructor.
|
|
105
105
|
# @param style [Integer] This is a combination of these flags:
|
|
106
106
|
#
|
|
107
107
|
# - {Wx::HF_TOOLBAR}: The help window has a toolbar.
|
|
108
|
-
# - {Wx::HF_FLAT_TOOLBAR}: The help window has a toolbar with flat buttons (aka coolbar).
|
|
108
|
+
# - {Wx::HTML::HF_FLAT_TOOLBAR}: The help window has a toolbar with flat buttons (aka coolbar).
|
|
109
109
|
# - {Wx::HF_CONTENTS}: The help window has a contents panel.
|
|
110
110
|
# - {Wx::HF_INDEX}: The help window has an index panel.
|
|
111
|
-
# - {Wx::HF_SEARCH}: The help window has a search panel.
|
|
112
|
-
# - {Wx::HF_BOOKMARKS}: The help window has bookmarks controls.
|
|
113
|
-
# - {Wx::HF_OPEN_FILES}: Allows user to open arbitrary HTML document.
|
|
114
|
-
# - {Wx::HF_PRINT}: The toolbar contains "print" button.
|
|
115
|
-
# - {Wx::HF_MERGE_BOOKS}: The contents pane does not show book nodes. All books are merged together and appear as single book to the user.
|
|
116
|
-
# - {Wx::HF_ICONS_BOOK}: All nodes in contents pane have a book icon. This is how Microsoft's HTML help viewer behaves.
|
|
117
|
-
# - {Wx::HF_ICONS_FOLDER}: Book nodes in contents pane have a book icon, book's sections have a folder icon. This is the default.
|
|
118
|
-
# - {Wx::HF_ICONS_BOOK_CHAPTER}: Both book nodes and nodes of top-level sections of a book (i.e. chapters) have a book icon, all other sections (sections, subsections, ...) have a folder icon.
|
|
111
|
+
# - {Wx::HTML::HF_SEARCH}: The help window has a search panel.
|
|
112
|
+
# - {Wx::HTML::HF_BOOKMARKS}: The help window has bookmarks controls.
|
|
113
|
+
# - {Wx::HTML::HF_OPEN_FILES}: Allows user to open arbitrary HTML document.
|
|
114
|
+
# - {Wx::HTML::HF_PRINT}: The toolbar contains "print" button.
|
|
115
|
+
# - {Wx::HTML::HF_MERGE_BOOKS}: The contents pane does not show book nodes. All books are merged together and appear as single book to the user.
|
|
116
|
+
# - {Wx::HTML::HF_ICONS_BOOK}: All nodes in contents pane have a book icon. This is how Microsoft's HTML help viewer behaves.
|
|
117
|
+
# - {Wx::HTML::HF_ICONS_FOLDER}: Book nodes in contents pane have a book icon, book's sections have a folder icon. This is the default.
|
|
118
|
+
# - {Wx::HTML::HF_ICONS_BOOK_CHAPTER}: Both book nodes and nodes of top-level sections of a book (i.e. chapters) have a book icon, all other sections (sections, subsections, ...) have a folder icon.
|
|
119
119
|
# - {Wx::HTML::HF_EMBEDDED}: Specifies that the help controller controls an embedded window of class {Wx::HTML::HtmlHelpWindow} that should not be destroyed when the controller is destroyed.
|
|
120
120
|
# - {Wx::HTML::HF_DIALOG}: Specifies that the help controller should create a dialog containing the help window.
|
|
121
121
|
# - {Wx::HTML::HF_FRAME}: Specifies that the help controller should create a frame containing the help window. This is the default if neither {Wx::HTML::HF_DIALOG} nor {Wx::HTML::HF_EMBEDDED} is specified.
|
|
122
122
|
# - {Wx::HTML::HF_MODAL}: Specifies that the help controller should create a modal dialog containing the help window (used with the {Wx::HTML::HF_DIALOG} style).
|
|
123
|
-
# - {Wx::HF_DEFAULT_STYLE}: {Wx::HF_TOOLBAR} | {Wx::HF_CONTENTS} | {Wx::HF_INDEX} | {Wx::HF_SEARCH} | {Wx::HF_BOOKMARKS} | {Wx::HF_PRINT}
|
|
123
|
+
# - {Wx::HTML::HF_DEFAULT_STYLE}: {Wx::HF_TOOLBAR} | {Wx::HF_CONTENTS} | {Wx::HF_INDEX} | {Wx::HTML::HF_SEARCH} | {Wx::HTML::HF_BOOKMARKS} | {Wx::HTML::HF_PRINT}
|
|
124
124
|
# @param parentWindow [Wx::Window] This is an optional window to be used as the parent for the help window.
|
|
125
125
|
# @return [Wx::HTML::HtmlHelpController]
|
|
126
|
-
# @overload initialize(parentWindow, style=Wx::HF_DEFAULT_STYLE)
|
|
126
|
+
# @overload initialize(parentWindow, style=Wx::HTML::HF_DEFAULT_STYLE)
|
|
127
127
|
# @param parentWindow [Wx::Window]
|
|
128
128
|
# @param style [Integer]
|
|
129
129
|
# @return [Wx::HTML::HtmlHelpController]
|
|
@@ -177,28 +177,10 @@ module Wx
|
|
|
177
177
|
# @return [Boolean]
|
|
178
178
|
def display(*args) end
|
|
179
179
|
|
|
180
|
-
# Displays help window and focuses contents panel.
|
|
181
|
-
# @return [Boolean]
|
|
182
|
-
def display_contents; end
|
|
183
|
-
|
|
184
180
|
# Displays help window and focuses index panel.
|
|
185
181
|
# @return [Boolean]
|
|
186
182
|
def display_index; end
|
|
187
183
|
|
|
188
|
-
# Displays the help window, focuses search panel and starts searching.
|
|
189
|
-
#
|
|
190
|
-
# Returns true if the keyword was found. Optionally it searches through the index (mode = {Wx::HelpSearchMode::HELP_SEARCH_INDEX}), default the content (mode = {Wx::HelpSearchMode::HELP_SEARCH_ALL}).
|
|
191
|
-
#
|
|
192
|
-
# <div class="wxrb-note">
|
|
193
|
-
# <b>Note:</b>
|
|
194
|
-
# <p>{Wx::HTML::HtmlHelpController#keyword_search} searches only pages listed in <code>".hhc"</code> file(s). You should list all pages in the contents file.
|
|
195
|
-
# </p>
|
|
196
|
-
# </div>
|
|
197
|
-
# @param keyword [String]
|
|
198
|
-
# @param mode [Wx::HelpSearchMode]
|
|
199
|
-
# @return [Boolean]
|
|
200
|
-
def keyword_search(keyword, mode=Wx::HelpSearchMode::HELP_SEARCH_ALL) end
|
|
201
|
-
|
|
202
184
|
# Reads the controller's setting (position of window, etc.).
|
|
203
185
|
# @param cfg [Wx::ConfigBase]
|
|
204
186
|
# @param path [String]
|
|
@@ -259,6 +241,21 @@ module Wx
|
|
|
259
241
|
def set_help_window(helpWindow) end
|
|
260
242
|
alias_method :help_window=, :set_help_window
|
|
261
243
|
|
|
244
|
+
# If the help viewer is not running, runs it and displays the file at the given block number.
|
|
245
|
+
#
|
|
246
|
+
# - WinHelp: Refers to the context number.
|
|
247
|
+
# - MS HTML Help: Refers to the context number.
|
|
248
|
+
# - External HTML help: the same as for {Wx::HTML::HtmlHelpController#display_section}.
|
|
249
|
+
# - {Wx::HTML::HtmlHelpController}: sectionNo is an identifier as specified in the <code></code>.hhc file. See Help Files Format.
|
|
250
|
+
# DeprecatedThis function is for backward compatibility only, and applications should use {Wx::HTML::HtmlHelpController#display_section} instead.
|
|
251
|
+
# @param blockNo [Integer]
|
|
252
|
+
# @return [Boolean]
|
|
253
|
+
def display_block(blockNo) end
|
|
254
|
+
|
|
255
|
+
# If the help viewer is not running, runs it and displays the contents.
|
|
256
|
+
# @return [Boolean]
|
|
257
|
+
def display_contents; end
|
|
258
|
+
|
|
262
259
|
# Displays the section as a popup window using a context id.
|
|
263
260
|
#
|
|
264
261
|
# Returns false if unsuccessful or not implemented.
|
|
@@ -266,6 +263,23 @@ module Wx
|
|
|
266
263
|
# @return [Boolean]
|
|
267
264
|
def display_context_popup(contextId) end
|
|
268
265
|
|
|
266
|
+
# @overload display_section(section)
|
|
267
|
+
# If the help viewer is not running, runs it and displays the given section.
|
|
268
|
+
#
|
|
269
|
+
# The interpretation of section differs between help viewers. For most viewers, this call is equivalent to KeywordSearch. For MS HTML Help, {Wx::HTML} help and external HTML help, if section has a .htm or .html extension, that HTML file will be displayed; otherwise a keyword search is done.
|
|
270
|
+
# @param section [String]
|
|
271
|
+
# @return [Boolean]
|
|
272
|
+
# @overload display_section(sectionNo)
|
|
273
|
+
# If the help viewer is not running, runs it and displays the given section.
|
|
274
|
+
#
|
|
275
|
+
# - WinHelp, MS HTML Help sectionNo is a context id.
|
|
276
|
+
# - MS HTML Help: Pass -1 in sectionNo to display the index.
|
|
277
|
+
# - External HTML help: {Wx::ExtHelpController} implements sectionNo as an id in a map file, which is of the form:
|
|
278
|
+
# - {Wx::HTML::HtmlHelpController}: sectionNo is an identifier as specified in the <code></code>.hhc file. See Help Files Format. See also the help sample for notes on how to specify section numbers for various help file formats.
|
|
279
|
+
# @param sectionNo [Integer]
|
|
280
|
+
# @return [Boolean]
|
|
281
|
+
def display_section(*args) end
|
|
282
|
+
|
|
269
283
|
# Displays the text in a popup window, if possible.
|
|
270
284
|
#
|
|
271
285
|
# Returns false if unsuccessful or not implemented.
|
|
@@ -289,12 +303,40 @@ module Wx
|
|
|
289
303
|
# @return [Boolean]
|
|
290
304
|
def init(file) end
|
|
291
305
|
|
|
306
|
+
# If the help viewer is not running, runs it, and searches for sections matching the given keyword.
|
|
307
|
+
#
|
|
308
|
+
# If one match is found, the file is displayed at this section. The optional parameter allows searching the index ({Wx::HelpSearchMode::HELP_SEARCH_INDEX}) but this currently is only supported by the {Wx::HTML::HtmlHelpController}.
|
|
309
|
+
#
|
|
310
|
+
# - WinHelp, MS HTML Help: If more than one match is found, the first topic is displayed.
|
|
311
|
+
# - MS HTML Help: Pass an empty string to display the search page.
|
|
312
|
+
# - External HTML help, simple {Wx::HTML} help: If more than one match is found, a choice of topics is displayed.
|
|
313
|
+
# - {Wx::HTML::HtmlHelpController}: see {Wx::HTML::HtmlHelpController#keyword_search}.
|
|
314
|
+
# @param keyWord [String]
|
|
315
|
+
# @param mode [Wx::HelpSearchMode]
|
|
316
|
+
# @return [Boolean]
|
|
317
|
+
def keyword_search(keyWord, mode=Wx::HelpSearchMode::HELP_SEARCH_ALL) end
|
|
318
|
+
|
|
319
|
+
# If the help viewer is not running, runs it and loads the given file.
|
|
320
|
+
#
|
|
321
|
+
# If the filename is not supplied or is empty, the file specified in {Wx::HTML::HtmlHelpController#initialize} is used.
|
|
322
|
+
# If the viewer is already displaying the specified file, it will not be reloaded. This member function may be used before each display call in case the user has opened another file.
|
|
323
|
+
# {Wx::HTML::HtmlHelpController} ignores this call.
|
|
324
|
+
# @param file [String]
|
|
325
|
+
# @return [Boolean]
|
|
326
|
+
def load_file(file=('')) end
|
|
327
|
+
|
|
292
328
|
# Overridable member called when this application's viewer is quit by the user.
|
|
293
329
|
#
|
|
294
330
|
# This does not work for all help controllers.
|
|
295
331
|
# @return [void]
|
|
296
332
|
def on_quit; end
|
|
297
333
|
|
|
334
|
+
# If the viewer is running, quits it by disconnecting.
|
|
335
|
+
#
|
|
336
|
+
# For Windows Help, the viewer will only close if no other application is using it.
|
|
337
|
+
# @return [Boolean]
|
|
338
|
+
def quit; end
|
|
339
|
+
|
|
298
340
|
# Set the parameters of the frame window.
|
|
299
341
|
#
|
|
300
342
|
# For {Wx::HTML::HtmlHelpController}, titleFormat specifies the title string format (with s being replaced by the actual page title) and size and position specify the geometry of the frame.
|
|
@@ -327,9 +369,9 @@ module Wx
|
|
|
327
369
|
#
|
|
328
370
|
# Todomodernize this function with {Wx::LaunchDefaultBrowser}
|
|
329
371
|
# @param viewer [String] This defaults to "netscape" for {Wx::ExtHelpController}.
|
|
330
|
-
# @param flags [Integer] This defaults to {Wx::HELP_NETSCAPE} for {Wx::ExtHelpController}, indicating that the viewer is a variant of Netscape Navigator.
|
|
372
|
+
# @param flags [Integer] This defaults to {Wx::HTML::HELP_NETSCAPE} for {Wx::ExtHelpController}, indicating that the viewer is a variant of Netscape Navigator.
|
|
331
373
|
# @return [void]
|
|
332
|
-
def set_viewer(viewer, flags=Wx::HELP_NETSCAPE) end
|
|
374
|
+
def set_viewer(viewer, flags=Wx::HTML::HELP_NETSCAPE) end
|
|
333
375
|
alias_method :viewer=, :set_viewer
|
|
334
376
|
|
|
335
377
|
end # HtmlHelpController
|
|
@@ -139,7 +139,7 @@ module Wx
|
|
|
139
139
|
# @param data [Wx::HTML::HtmlHelpData]
|
|
140
140
|
# @yieldparam [Wx::HTML::HtmlHelpWindow] win new instance
|
|
141
141
|
# @return [Wx::HTML::HtmlHelpWindow]
|
|
142
|
-
# @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::TAB_TRAVERSAL|Wx::Border::BORDER_NONE), helpStyle=Wx::HF_DEFAULT_STYLE, data=nil)
|
|
142
|
+
# @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::TAB_TRAVERSAL|Wx::Border::BORDER_NONE), helpStyle=Wx::HTML::HF_DEFAULT_STYLE, data=nil)
|
|
143
143
|
# Constructor.
|
|
144
144
|
#
|
|
145
145
|
# For the values of helpStyle, please see the documentation for {Wx::HTML::HtmlHelpController}.
|
|
@@ -151,7 +151,7 @@ module Wx
|
|
|
151
151
|
# @param helpStyle [Integer]
|
|
152
152
|
# @param data [Wx::HTML::HtmlHelpData]
|
|
153
153
|
# @return [Wx::HTML::HtmlHelpWindow]
|
|
154
|
-
# @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::TAB_TRAVERSAL|Wx::Border::BORDER_NONE), helpStyle=Wx::HF_DEFAULT_STYLE, data=nil, &block)
|
|
154
|
+
# @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::TAB_TRAVERSAL|Wx::Border::BORDER_NONE), helpStyle=Wx::HTML::HF_DEFAULT_STYLE, data=nil, &block)
|
|
155
155
|
# Constructor.
|
|
156
156
|
#
|
|
157
157
|
# For the values of helpStyle, please see the documentation for {Wx::HTML::HtmlHelpController}.
|
|
@@ -176,7 +176,7 @@ module Wx
|
|
|
176
176
|
# @param style [Integer]
|
|
177
177
|
# @param helpStyle [Integer]
|
|
178
178
|
# @return [Boolean]
|
|
179
|
-
def create(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::TAB_TRAVERSAL|Wx::Border::BORDER_NONE), helpStyle=Wx::HF_DEFAULT_STYLE) end
|
|
179
|
+
def create(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::TAB_TRAVERSAL|Wx::Border::BORDER_NONE), helpStyle=Wx::HTML::HF_DEFAULT_STYLE) end
|
|
180
180
|
|
|
181
181
|
# @overload display(x)
|
|
182
182
|
# Displays page x.
|
|
@@ -64,15 +64,15 @@ module Wx
|
|
|
64
64
|
|
|
65
65
|
#
|
|
66
66
|
#
|
|
67
|
-
EVT_HTML_CELL_CLICKED =
|
|
67
|
+
EVT_HTML_CELL_CLICKED = 10343
|
|
68
68
|
|
|
69
69
|
#
|
|
70
70
|
#
|
|
71
|
-
EVT_HTML_CELL_HOVER =
|
|
71
|
+
EVT_HTML_CELL_HOVER = 10344
|
|
72
72
|
|
|
73
73
|
#
|
|
74
74
|
#
|
|
75
|
-
EVT_HTML_LINK_CLICKED =
|
|
75
|
+
EVT_HTML_LINK_CLICKED = 10345
|
|
76
76
|
|
|
77
77
|
# {Wx::HTML::HtmlWindow} is probably the only class you will directly use unless you want to do something special (like adding new tag handlers or MIME filters).
|
|
78
78
|
#
|
|
@@ -80,7 +80,7 @@ module Wx
|
|
|
80
80
|
#
|
|
81
81
|
# <div class="wxrb-note">
|
|
82
82
|
# <b>Note:</b>
|
|
83
|
-
# <p>If you want complete HTML/CSS support as well as a Javascript engine, consider using {Wx::WebView} instead.
|
|
83
|
+
# <p>If you want complete HTML/CSS support as well as a Javascript engine, consider using {Wx::WEB::WebView} instead.
|
|
84
84
|
# </p>
|
|
85
85
|
# </div>
|
|
86
86
|
#
|