wxruby64 2.0.1-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (279) hide show
  1. checksums.yaml +7 -0
  2. data/INSTALL +254 -0
  3. data/LICENSE +53 -0
  4. data/README +198 -0
  5. data/art/wxruby-128x128.png +0 -0
  6. data/art/wxruby-256x256.png +0 -0
  7. data/art/wxruby-64x64.png +0 -0
  8. data/art/wxruby.png +0 -0
  9. data/lib/wx.rb +53 -0
  10. data/lib/wx/accessors.rb +68 -0
  11. data/lib/wx/classes/acceleratortable.rb +28 -0
  12. data/lib/wx/classes/animation.rb +18 -0
  13. data/lib/wx/classes/app.rb +51 -0
  14. data/lib/wx/classes/artprovider.rb +31 -0
  15. data/lib/wx/classes/auinotebook.rb +9 -0
  16. data/lib/wx/classes/bitmap.rb +59 -0
  17. data/lib/wx/classes/busycursor.rb +12 -0
  18. data/lib/wx/classes/checklistbox.rb +46 -0
  19. data/lib/wx/classes/choice.rb +4 -0
  20. data/lib/wx/classes/clientdc.rb +13 -0
  21. data/lib/wx/classes/clipboard.rb +56 -0
  22. data/lib/wx/classes/colour.rb +49 -0
  23. data/lib/wx/classes/combobox.rb +4 -0
  24. data/lib/wx/classes/commandevent.rb +7 -0
  25. data/lib/wx/classes/controlwithitems.rb +10 -0
  26. data/lib/wx/classes/data_object.rb +14 -0
  27. data/lib/wx/classes/data_object_simple.rb +6 -0
  28. data/lib/wx/classes/dataformat.rb +23 -0
  29. data/lib/wx/classes/dc.rb +57 -0
  30. data/lib/wx/classes/event.rb +5 -0
  31. data/lib/wx/classes/evthandler.rb +1039 -0
  32. data/lib/wx/classes/font.rb +118 -0
  33. data/lib/wx/classes/functions.rb +44 -0
  34. data/lib/wx/classes/gauge.rb +12 -0
  35. data/lib/wx/classes/genericdirctrl.rb +36 -0
  36. data/lib/wx/classes/grid.rb +146 -0
  37. data/lib/wx/classes/hboxsizer.rb +6 -0
  38. data/lib/wx/classes/helpcontroller.rb +5 -0
  39. data/lib/wx/classes/helpcontrollerhelpprovider.rb +23 -0
  40. data/lib/wx/classes/helpprovider.rb +15 -0
  41. data/lib/wx/classes/htmlhelpcontroller.rb +5 -0
  42. data/lib/wx/classes/htmlwindow.rb +14 -0
  43. data/lib/wx/classes/icon.rb +32 -0
  44. data/lib/wx/classes/iconbundle.rb +3 -0
  45. data/lib/wx/classes/image.rb +53 -0
  46. data/lib/wx/classes/imagelist.rb +3 -0
  47. data/lib/wx/classes/listbox.rb +4 -0
  48. data/lib/wx/classes/listctrl.rb +33 -0
  49. data/lib/wx/classes/locale.rb +28 -0
  50. data/lib/wx/classes/mediactrl.rb +48 -0
  51. data/lib/wx/classes/menu.rb +62 -0
  52. data/lib/wx/classes/menuitem.rb +7 -0
  53. data/lib/wx/classes/notebook.rb +9 -0
  54. data/lib/wx/classes/object.rb +14 -0
  55. data/lib/wx/classes/paintdc.rb +12 -0
  56. data/lib/wx/classes/point.rb +56 -0
  57. data/lib/wx/classes/previewframe.rb +13 -0
  58. data/lib/wx/classes/rect.rb +19 -0
  59. data/lib/wx/classes/richtextctrl.rb +63 -0
  60. data/lib/wx/classes/simplehelpprovider.rb +38 -0
  61. data/lib/wx/classes/size.rb +58 -0
  62. data/lib/wx/classes/sizer.rb +43 -0
  63. data/lib/wx/classes/sound.rb +23 -0
  64. data/lib/wx/classes/splitterwindow.rb +10 -0
  65. data/lib/wx/classes/standardpaths.rb +9 -0
  66. data/lib/wx/classes/styledtextctrl.rb +92 -0
  67. data/lib/wx/classes/textctrl.rb +14 -0
  68. data/lib/wx/classes/texturlevent.rb +18 -0
  69. data/lib/wx/classes/timer.rb +96 -0
  70. data/lib/wx/classes/toolbar.rb +36 -0
  71. data/lib/wx/classes/toolbartool.rb +4 -0
  72. data/lib/wx/classes/treectrl.rb +44 -0
  73. data/lib/wx/classes/validator.rb +7 -0
  74. data/lib/wx/classes/vboxsizer.rb +6 -0
  75. data/lib/wx/classes/window.rb +89 -0
  76. data/lib/wx/classes/xmlresource.rb +54 -0
  77. data/lib/wx/helpers.rb +54 -0
  78. data/lib/wx/keyword_ctors.rb +204 -0
  79. data/lib/wx/keyword_defs.rb +585 -0
  80. data/lib/wx/version.rb +3 -0
  81. data/lib/wxruby2.so +0 -0
  82. data/samples/SAMPLES-LICENSE.TXT +18 -0
  83. data/samples/aui/aui.rb +1356 -0
  84. data/samples/bigdemo/About.rbw +39 -0
  85. data/samples/bigdemo/ColorPanel.rbw +23 -0
  86. data/samples/bigdemo/GridSimple.rbw +78 -0
  87. data/samples/bigdemo/MDIDemo.rbw +57 -0
  88. data/samples/bigdemo/PopupMenu.rbw +149 -0
  89. data/samples/bigdemo/ShapedWindow.rbw +128 -0
  90. data/samples/bigdemo/Sizers.rbw +543 -0
  91. data/samples/bigdemo/bigdemo.rb +823 -0
  92. data/samples/bigdemo/demoTemplate.rbw +33 -0
  93. data/samples/bigdemo/helpfile.htb +0 -0
  94. data/samples/bigdemo/icons/Test 015.jpg +0 -0
  95. data/samples/bigdemo/icons/Test 015.png +0 -0
  96. data/samples/bigdemo/icons/choice.bmp +0 -0
  97. data/samples/bigdemo/icons/choice.xpm +27 -0
  98. data/samples/bigdemo/icons/combo.bmp +0 -0
  99. data/samples/bigdemo/icons/combo.xpm +27 -0
  100. data/samples/bigdemo/icons/copy.xpm +25 -0
  101. data/samples/bigdemo/icons/cut.xpm +24 -0
  102. data/samples/bigdemo/icons/gauge.bmp +0 -0
  103. data/samples/bigdemo/icons/gauge.xpm +27 -0
  104. data/samples/bigdemo/icons/help.xpm +25 -0
  105. data/samples/bigdemo/icons/list.bmp +0 -0
  106. data/samples/bigdemo/icons/list.xpm +27 -0
  107. data/samples/bigdemo/icons/mondrian.ico +0 -0
  108. data/samples/bigdemo/icons/mondrian.xpm +44 -0
  109. data/samples/bigdemo/icons/new.xpm +24 -0
  110. data/samples/bigdemo/icons/ogl.ico +0 -0
  111. data/samples/bigdemo/icons/ogl.xpm +45 -0
  112. data/samples/bigdemo/icons/open.xpm +26 -0
  113. data/samples/bigdemo/icons/paste.bmp +0 -0
  114. data/samples/bigdemo/icons/paste.xpm +38 -0
  115. data/samples/bigdemo/icons/pointy.png +0 -0
  116. data/samples/bigdemo/icons/preview.xpm +26 -0
  117. data/samples/bigdemo/icons/print.xpm +26 -0
  118. data/samples/bigdemo/icons/radio.bmp +0 -0
  119. data/samples/bigdemo/icons/radio.xpm +27 -0
  120. data/samples/bigdemo/icons/robert.xpm +415 -0
  121. data/samples/bigdemo/icons/sashtest.ico +0 -0
  122. data/samples/bigdemo/icons/save.xpm +25 -0
  123. data/samples/bigdemo/icons/smiles.bmp +0 -0
  124. data/samples/bigdemo/icons/smiles.xpm +39 -0
  125. data/samples/bigdemo/icons/smiley.ico +0 -0
  126. data/samples/bigdemo/icons/smiley.xpm +42 -0
  127. data/samples/bigdemo/icons/stattext.xpm +24 -0
  128. data/samples/bigdemo/icons/test2.bmp +0 -0
  129. data/samples/bigdemo/icons/test2.png +0 -0
  130. data/samples/bigdemo/icons/test2.xpm +79 -0
  131. data/samples/bigdemo/icons/text.bmp +0 -0
  132. data/samples/bigdemo/icons/text.xpm +27 -0
  133. data/samples/bigdemo/icons/tog1.bmp +0 -0
  134. data/samples/bigdemo/icons/tog1.xpm +38 -0
  135. data/samples/bigdemo/icons/tog2.bmp +0 -0
  136. data/samples/bigdemo/icons/tog2.xpm +38 -0
  137. data/samples/bigdemo/icons/wxruby-128x128.png +0 -0
  138. data/samples/bigdemo/icons/wxwin.ico +0 -0
  139. data/samples/bigdemo/icons/wxwin16x16.png +0 -0
  140. data/samples/bigdemo/icons/wxwin16x16.xpm +25 -0
  141. data/samples/bigdemo/icons/wxwin32x32.png +0 -0
  142. data/samples/bigdemo/icons/wxwin48x48.png +0 -0
  143. data/samples/bigdemo/run.rb +90 -0
  144. data/samples/bigdemo/tips.txt +7 -0
  145. data/samples/bigdemo/utils.rb +12 -0
  146. data/samples/bigdemo/wxArtProvider.rbw +281 -0
  147. data/samples/bigdemo/wxBitmapButton.rbw +65 -0
  148. data/samples/bigdemo/wxButton.rbw +64 -0
  149. data/samples/bigdemo/wxCalendarCtrl.rbw +60 -0
  150. data/samples/bigdemo/wxCheckBox.rbw +50 -0
  151. data/samples/bigdemo/wxCheckListBox.rbw +65 -0
  152. data/samples/bigdemo/wxChoice.rbw +47 -0
  153. data/samples/bigdemo/wxChoicebook.rbw +78 -0
  154. data/samples/bigdemo/wxColourDialog.rbw +31 -0
  155. data/samples/bigdemo/wxComboBox.rbw +77 -0
  156. data/samples/bigdemo/wxCursor.rbw +136 -0
  157. data/samples/bigdemo/wxDialog.rbw +74 -0
  158. data/samples/bigdemo/wxDirDialog.rbw +29 -0
  159. data/samples/bigdemo/wxDragImage.rbw +70 -0
  160. data/samples/bigdemo/wxFileDialog.rbw +37 -0
  161. data/samples/bigdemo/wxFileDialog_Save.rbw +35 -0
  162. data/samples/bigdemo/wxFindReplaceDialog.rbw +82 -0
  163. data/samples/bigdemo/wxFontDialog.rbw +173 -0
  164. data/samples/bigdemo/wxFrame.rbw +53 -0
  165. data/samples/bigdemo/wxGauge.rbw +71 -0
  166. data/samples/bigdemo/wxGenericDirCtrl.rbw +74 -0
  167. data/samples/bigdemo/wxGrid.rbw +66 -0
  168. data/samples/bigdemo/wxHtmlHelpController.rbw +52 -0
  169. data/samples/bigdemo/wxListBox.rbw +140 -0
  170. data/samples/bigdemo/wxListCtrl_virtual.rbw +112 -0
  171. data/samples/bigdemo/wxMDIWindows.rbw +50 -0
  172. data/samples/bigdemo/wxMenu.rbw +236 -0
  173. data/samples/bigdemo/wxMessageDialog.rbw +27 -0
  174. data/samples/bigdemo/wxMiniFrame.rbw +70 -0
  175. data/samples/bigdemo/wxMultipleChoiceDialog.rbw +32 -0
  176. data/samples/bigdemo/wxNotebook.rbw +136 -0
  177. data/samples/bigdemo/wxProgressDialog.rbw +43 -0
  178. data/samples/bigdemo/wxRadioBox.rbw +72 -0
  179. data/samples/bigdemo/wxRadioButton.rbw +125 -0
  180. data/samples/bigdemo/wxSashWindow.rbw +141 -0
  181. data/samples/bigdemo/wxScrolledMessageDialog.rbw +57 -0
  182. data/samples/bigdemo/wxScrolledWindow.rbw +199 -0
  183. data/samples/bigdemo/wxSingleChoiceDialog.rbw +33 -0
  184. data/samples/bigdemo/wxSlider.rbw +42 -0
  185. data/samples/bigdemo/wxSpinButton.rbw +50 -0
  186. data/samples/bigdemo/wxSpinCtrl.rbw +51 -0
  187. data/samples/bigdemo/wxSplitterWindow.rbw +63 -0
  188. data/samples/bigdemo/wxStaticBitmap.rbw +47 -0
  189. data/samples/bigdemo/wxStaticText.rbw +55 -0
  190. data/samples/bigdemo/wxStatusBar.rbw +126 -0
  191. data/samples/bigdemo/wxTextCtrl.rbw +149 -0
  192. data/samples/bigdemo/wxTextEntryDialog.rbw +31 -0
  193. data/samples/bigdemo/wxToggleButton.rbw +49 -0
  194. data/samples/bigdemo/wxToolBar.rbw +131 -0
  195. data/samples/bigdemo/wxTreeCtrl.rbw +191 -0
  196. data/samples/calendar/calendar.rb +348 -0
  197. data/samples/caret/caret.rb +282 -0
  198. data/samples/caret/mondrian.xpm +44 -0
  199. data/samples/controls/controls.rb +1136 -0
  200. data/samples/controls/get_item_sample.rb +87 -0
  201. data/samples/controls/icons/choice.xpm +27 -0
  202. data/samples/controls/icons/combo.xpm +27 -0
  203. data/samples/controls/icons/gauge.xpm +27 -0
  204. data/samples/controls/icons/list.xpm +27 -0
  205. data/samples/controls/icons/radio.xpm +27 -0
  206. data/samples/controls/icons/stattext.xpm +24 -0
  207. data/samples/controls/icons/text.xpm +27 -0
  208. data/samples/controls/mondrian.ico +0 -0
  209. data/samples/controls/mondrian.xpm +44 -0
  210. data/samples/controls/test2.bmp +0 -0
  211. data/samples/dialogs/dialogs.rb +797 -0
  212. data/samples/dialogs/tips.txt +18 -0
  213. data/samples/dragdrop/dragdrop.rb +177 -0
  214. data/samples/drawing/bitmap.rb +49 -0
  215. data/samples/drawing/bitmap_image.rb +92 -0
  216. data/samples/drawing/graphics_drawing.rb +235 -0
  217. data/samples/drawing/maths_images.rb +265 -0
  218. data/samples/drawing/rmagic_bitmap_image.rb +110 -0
  219. data/samples/drawing/ruby-logo.jpg +0 -0
  220. data/samples/etc/activation.rb +102 -0
  221. data/samples/etc/choice.rb +67 -0
  222. data/samples/etc/miniframe.rb +79 -0
  223. data/samples/etc/sash.rb +130 -0
  224. data/samples/etc/scrollwin.rb +110 -0
  225. data/samples/etc/system_settings.rb +252 -0
  226. data/samples/etc/threaded.rb +72 -0
  227. data/samples/etc/toolbar_sizer_additem.rb +55 -0
  228. data/samples/etc/wizard.rb +74 -0
  229. data/samples/event/event.rb +182 -0
  230. data/samples/event/update_ui_event.rb +70 -0
  231. data/samples/grid/grid.rb +198 -0
  232. data/samples/grid/gridtablebase.rb +148 -0
  233. data/samples/html/html.rb +262 -0
  234. data/samples/listbook/listbook.rb +174 -0
  235. data/samples/listbook/listbook.xrc +370 -0
  236. data/samples/mdi/mdi.rb +85 -0
  237. data/samples/media/mediactrl.rb +167 -0
  238. data/samples/minimal/minimal.rb +77 -0
  239. data/samples/minimal/mondrian.ico +0 -0
  240. data/samples/minimal/mondrian.png +0 -0
  241. data/samples/minimal/nothing.rb +16 -0
  242. data/samples/opengl/cube.rb +130 -0
  243. data/samples/opengl/cube_anim_lighting.rb +191 -0
  244. data/samples/printing/mondrian.ico +0 -0
  245. data/samples/printing/mondrian.xpm +44 -0
  246. data/samples/printing/printing.rb +487 -0
  247. data/samples/sockets/SocketPackets.rb +27 -0
  248. data/samples/sockets/res/message-new.png +0 -0
  249. data/samples/sockets/res/user.png +0 -0
  250. data/samples/sockets/wxClient.rb +395 -0
  251. data/samples/sockets/wxServer.rb +422 -0
  252. data/samples/sockets/wxSocketGUI.rb +97 -0
  253. data/samples/text/document-open.png +0 -0
  254. data/samples/text/document-save.png +0 -0
  255. data/samples/text/edit-copy.png +0 -0
  256. data/samples/text/edit-cut.png +0 -0
  257. data/samples/text/edit-paste.png +0 -0
  258. data/samples/text/edit-redo.png +0 -0
  259. data/samples/text/edit-undo.png +0 -0
  260. data/samples/text/format-text-bold.png +0 -0
  261. data/samples/text/format-text-italic.png +0 -0
  262. data/samples/text/format-text-underline.png +0 -0
  263. data/samples/text/mondrian.ico +0 -0
  264. data/samples/text/mondrian.xpm +44 -0
  265. data/samples/text/preferences-desktop-font.png +0 -0
  266. data/samples/text/rich_textctrl.rb +290 -0
  267. data/samples/text/scintilla.rb +169 -0
  268. data/samples/text/textctrl.rb +111 -0
  269. data/samples/text/unicode.rb +242 -0
  270. data/samples/text/utf8.txt +15 -0
  271. data/samples/treectrl/icon1.xpm +79 -0
  272. data/samples/treectrl/icon2.xpm +53 -0
  273. data/samples/treectrl/icon3.xpm +79 -0
  274. data/samples/treectrl/icon4.xpm +43 -0
  275. data/samples/treectrl/icon5.xpm +79 -0
  276. data/samples/treectrl/treectrl.rb +1166 -0
  277. data/samples/xrc/samples.xrc +46 -0
  278. data/samples/xrc/xrc_sample.rb +76 -0
  279. metadata +330 -0
@@ -0,0 +1,585 @@
1
+ # = WxSugar - Keyword Constructors Classes
2
+ #
3
+ # This extension defines the keyword parameters for +new+ methods for
4
+ # widgets, windows and frames. It's for use with *Keyword Constructors*
5
+ # and is no use on its own - except if you are looking for a bug or want
6
+ # to add a missing class.
7
+ #
8
+ # For each class, the parameters *must* be declared in the order that
9
+ # they are supplied to wxRuby. A parameter is specified by a symbol
10
+ # name, and, optionally, a default argument which will of whatever type
11
+ # the wxRuby core library accepts. Because hashes are unordered in Ruby
12
+ # 1.8, if a default argument is specified, this must be the last in a
13
+ # list of parameters.
14
+ #
15
+ # Some common parameters to constructors such as size, position, title,
16
+ # id and so forth always have a standard default argumnet, which is
17
+ # defined in keyword_ctors. In these cases, it is not necessary to
18
+ # supply the default argument in the definition.
19
+ module Wx
20
+ @defined_kw_classes = {}
21
+
22
+ # accepts a string unadorned name of a WxWidgets class, and block, which
23
+ # defines the constructor parameters and style flags for that class.
24
+ # If the named class exists in the available WxRuby, the block is run and
25
+ # the class may use keyword constructors. If the class is not available, the
26
+ # block is ignored.
27
+ def self.define_keyword_ctors(klass_name, &block)
28
+ # check this class hasn't already been defined
29
+ if @defined_kw_classes[klass_name]
30
+ raise ArgumentError, "Keyword ctor for #{klass_name} already defined"
31
+ else
32
+ @defined_kw_classes[klass_name] = true
33
+ end
34
+
35
+ begin
36
+ klass = Wx::const_get(klass_name)
37
+ rescue NameError
38
+ return nil
39
+ end
40
+ klass.module_eval { include Wx::KeywordConstructor }
41
+ klass.instance_eval(&block)
42
+ end
43
+ end
44
+
45
+ # Window : base class for all widgets and frames
46
+ Wx::define_keyword_ctors('Window') do
47
+ wx_ctor_params :id, :pos, :size, :style
48
+ wx_ctor_params :name => 'window'
49
+ end
50
+
51
+
52
+ ### FRAMES
53
+
54
+ # wxTopLevelWindow ABSTRACT: Any top level window, dialog or frame
55
+
56
+ # Normal frame
57
+ Wx::define_keyword_ctors('Frame') do
58
+ wx_ctor_params :id, :title, :pos, :size, :style => Wx::DEFAULT_FRAME_STYLE
59
+ wx_ctor_params :name => 'frame'
60
+ end
61
+
62
+ # MDI child frame
63
+ Wx::define_keyword_ctors('MDIChildFrame') do
64
+ wx_ctor_params :id, :title, :pos, :size, :style => Wx::DEFAULT_FRAME_STYLE
65
+ wx_ctor_params :name => 'frame'
66
+ end
67
+
68
+ # MDI parent frame
69
+ Wx::define_keyword_ctors('MDIParentFrame') do
70
+ wx_ctor_params :id, :title, :pos, :size
71
+ wx_ctor_params :style => Wx::DEFAULT_FRAME_STYLE|Wx::VSCROLL|Wx::HSCROLL
72
+ wx_ctor_params :name => 'frame'
73
+ end
74
+
75
+ # wxMiniFrame A frame with a small title bar
76
+ Wx::define_keyword_ctors('MiniFrame') do
77
+ wx_ctor_params :id, :title, :pos, :size
78
+ wx_ctor_params :style => Wx::DEFAULT_FRAME_STYLE
79
+ wx_ctor_params :name => 'frame'
80
+ end
81
+
82
+ # wxSplashScreen Splash screen class
83
+ # FIXME - this probably won't work at present because the 'parent' arg
84
+ # comes in a funny place in this class's ctor
85
+ #
86
+ # Wx::define_keyword_ctors('SplashScreen') do
87
+ # wx_ctor_params :bitmap => Wx::NULL_BITMAP
88
+ # wx_ctor_params :splashstyle, :milliseconds, :id => 1
89
+ # wx_ctor_params :parent => nil
90
+ # wx_ctor_params :title => ''
91
+ # wx_ctor_params :pos, :size
92
+ # wx_ctor_params :style => Wx::SIMPLE_BORDER|Wx::FRAME_NO_TASKBAR|Wx::STAY_ON_TOP
93
+ # end
94
+
95
+ # wxPropertySheetDialog Property sheet dialog
96
+ # wxTipWindow Shows text in a small window
97
+
98
+ # wxWizard A wizard dialog
99
+ Wx::define_keyword_ctors('Wizard') do
100
+ wx_ctor_params :id, :title, :bitmap => Wx::NULL_BITMAP
101
+ wx_ctor_params :pos # NB - no size argument for this class
102
+ wx_ctor_params :style => Wx::DEFAULT_DIALOG_STYLE
103
+ end
104
+
105
+
106
+ # MISCELLANEOUS WINDOWS
107
+
108
+ # OpenGL Canvas
109
+ Wx::define_keyword_ctors('GLCanvas') do
110
+ wx_ctor_params :id
111
+ wx_ctor_params :pos, :size, :style => Wx::FULL_REPAINT_ON_RESIZE
112
+ wx_ctor_params :name => 'GLCanvas'
113
+ wx_ctor_params :attrib_list => [Wx::GL_RGBA, Wx::GL_DOUBLEBUFFER]
114
+ wx_ctor_params :palette => Wx::NULL_PALETTE
115
+ end
116
+
117
+ # A window whose colour changes according to current user settings
118
+ Wx::define_keyword_ctors('Panel') do
119
+ wx_ctor_params :id, :pos, :size, :style => Wx::TAB_TRAVERSAL
120
+ wx_ctor_params :name => 'panel'
121
+ end
122
+
123
+ # wxScrolledWindow Window with automatically managed scrollbars
124
+ Wx::define_keyword_ctors('ScrolledWindow') do
125
+ wx_ctor_params :id, :pos, :size, :style => Wx::VSCROLL|Wx::HSCROLL
126
+ wx_ctor_params :name => 'scrolledWindow'
127
+ end
128
+
129
+ # wxGrid A grid (table) window
130
+ Wx::define_keyword_ctors('Grid') do
131
+ wx_ctor_params :id, :pos, :size, :style => Wx::WANTS_CHARS
132
+ wx_ctor_params :name => 'grid'
133
+ end
134
+
135
+ # Window which can be split vertically or horizontally
136
+ Wx::define_keyword_ctors('SplitterWindow') do
137
+ wx_ctor_params :id, :pos, :size, :style => Wx::SP_3D
138
+ wx_ctor_params :name => 'splitterWindow'
139
+ end
140
+
141
+ # Implements the status bar on a frame
142
+ Wx::define_keyword_ctors('StatusBar') do
143
+ wx_ctor_params :id, :style => Wx::ST_SIZEGRIP
144
+ wx_ctor_params :name => 'statusBar'
145
+ end
146
+
147
+ # Toolbar class
148
+ Wx::define_keyword_ctors('ToolBar') do
149
+ wx_ctor_params :id, :pos, :size, :style => Wx::TB_HORIZONTAL|Wx::NO_BORDER
150
+ wx_ctor_params :name => 'toolBar' # not as documented in Wx 2.6.3
151
+ end
152
+
153
+ # ToolBarTool class
154
+ Wx::define_keyword_ctors('ToolBarTool') do
155
+ # By default we want Wx to generate an id for us, thus it doesn't
156
+ # respect the wxWidgets default constructor value which is
157
+ # ID_SEPARATOR
158
+ wx_ctor_params :id => Wx::ID_ANY
159
+ wx_ctor_params :label => ''
160
+ wx_ctor_params :bitmap
161
+ wx_ctor_params :disabled_bitmap => Wx::NULL_BITMAP
162
+ wx_ctor_params :kind => Wx::ITEM_NORMAL
163
+ wx_ctor_params :data => nil
164
+ wx_ctor_params :short_help => ''
165
+ wx_ctor_params :long_help => ''
166
+ end
167
+
168
+ # Similar to notebook but using choice control
169
+ Wx::define_keyword_ctors('Choicebook') do
170
+ wx_ctor_params :id, :pos, :size, :style, :name => 'choiceBook'
171
+ end
172
+
173
+ # Notebook class
174
+ Wx::define_keyword_ctors('Notebook') do
175
+ wx_ctor_params :id, :pos, :size, :style, :name => 'noteBook'
176
+ end
177
+
178
+ # Similar to notebook but using list control
179
+ Wx::define_keyword_ctors('Listbook') do
180
+ wx_ctor_params :id, :pos, :size, :style, :name => 'listBook'
181
+ end
182
+
183
+ # Similar to notebook but using toolbar
184
+ Wx::define_keyword_ctors('Toolbook') do
185
+ wx_ctor_params :id, :pos, :size, :style, :name => 'toolBook'
186
+ end
187
+
188
+ # Similar to notebook but using tree control
189
+ Wx::define_keyword_ctors('Treebook') do
190
+ wx_ctor_params :id, :pos, :size, :style, :name => 'treeBook'
191
+ end
192
+
193
+ # wxSashWindow: Window with four optional sashes that can be dragged
194
+ Wx::define_keyword_ctors('SashWindow') do
195
+ wx_ctor_params :id, :pos, :size
196
+ wx_ctor_params :style => Wx::CLIP_CHILDREN|Wx::SW_3D
197
+ wx_ctor_params :name => 'sashWindow'
198
+ end
199
+
200
+ # wxSashLayoutWindow: Window that can be involved in an IDE-like layout
201
+ # arrangement
202
+ Wx::define_keyword_ctors('SashLayoutWindow') do
203
+ wx_ctor_params :id, :pos, :size
204
+ wx_ctor_params :style => Wx::CLIP_CHILDREN|Wx::SW_3D
205
+ wx_ctor_params :name => 'layoutWindow'
206
+ end
207
+
208
+ # wxVScrolledWindow: As wxScrolledWindow but supports lines of variable height
209
+
210
+ # wxWizardPage: A base class for the page in wizard dialog.
211
+ Wx::define_keyword_ctors('WizardPage') do
212
+ wx_ctor_params :bitmap => Wx::NULL_BITMAP
213
+ end
214
+
215
+ # wxWizardPageSimple: A page in wizard dialog.
216
+ Wx::define_keyword_ctors('WizardPageSimple') do
217
+ wx_ctor_params :prev => nil
218
+ wx_ctor_params :next => nil
219
+ wx_ctor_params :bitmap => Wx::NULL_BITMAP
220
+ end
221
+
222
+ ### DIALOGS
223
+ # wxDialog Base class for common dialogs
224
+ Wx::define_keyword_ctors('Dialog') do
225
+ wx_ctor_params :id, :title => ''
226
+ wx_ctor_params :pos, :size, :style => Wx::DEFAULT_DIALOG_STYLE
227
+ wx_ctor_params :name => 'dialogBox'
228
+ end
229
+
230
+ # wxColourDialog Colour chooser dialog
231
+ Wx::define_keyword_ctors('ColourDialog') do
232
+ wx_ctor_params :colour_data => nil
233
+ end
234
+
235
+ # wxDirDialog Directory selector dialog
236
+ Wx::define_keyword_ctors('DirDialog') do
237
+ wx_ctor_params :message => 'Choose a directory'
238
+ wx_ctor_params :default_path => ''
239
+ wx_ctor_params :style => Wx::DD_DEFAULT_STYLE
240
+ wx_ctor_params :pos, :size, :name => 'wxDirCtrl'
241
+ end
242
+
243
+ # wxFileDialog File selector dialog
244
+ Wx::define_keyword_ctors('FileDialog') do
245
+ wx_ctor_params :message => 'Choose a file'
246
+ wx_ctor_params :default_dir => ''
247
+ wx_ctor_params :default_file => ''
248
+ wx_ctor_params :wildcard => '*.*'
249
+ wx_ctor_params :style => Wx::FD_DEFAULT_STYLE
250
+ wx_ctor_params :pos, :size, :name => 'filedlg'
251
+ end
252
+
253
+ # wxFindReplaceDialog Text search/replace dialog
254
+ Wx::define_keyword_ctors('FindReplaceDialog') do
255
+ wx_ctor_params :find_replace_data => Wx::FindReplaceData.new()
256
+ wx_ctor_params :title => 'findReplaceDialog'
257
+ wx_ctor_params :style
258
+ end
259
+
260
+ # Dialog to get one or more selections from a list
261
+ Wx::define_keyword_ctors('MultiChoiceDialog') do
262
+ wx_ctor_params :message => ''
263
+ wx_ctor_params :caption => ''
264
+ wx_ctor_params :choices => []
265
+ wx_ctor_params :style => Wx::DEFAULT_DIALOG_STYLE|Wx::RESIZE_BORDER|
266
+ Wx::OK|Wx::CANCEL|Wx::CENTRE
267
+ wx_ctor_params :pos
268
+ end
269
+
270
+ # Dialog to get a single selection from a list and return the string
271
+ Wx::define_keyword_ctors('SingleChoiceDialog') do
272
+ wx_ctor_params :message => ''
273
+ wx_ctor_params :caption => ''
274
+ wx_ctor_params :choices => []
275
+ wx_ctor_params :style => Wx::DEFAULT_DIALOG_STYLE|Wx::RESIZE_BORDER|
276
+ Wx::OK|Wx::CANCEL|Wx::CENTRE
277
+ wx_ctor_params :pos
278
+ end
279
+
280
+ # Dialog to get a single line of text from the user
281
+ Wx::define_keyword_ctors('TextEntryDialog') do
282
+ wx_ctor_params :message => ''
283
+ wx_ctor_params :caption => 'Please enter text'
284
+ wx_ctor_params :default_value => ''
285
+ wx_ctor_params :style => Wx::OK|Wx::CANCEL|Wx::CENTRE
286
+ wx_ctor_params :pos
287
+ end
288
+
289
+ # wxPasswordEntryDialog Dialog to get a password from the user
290
+ # Wx::define_keyword_ctors('PasswordEntryDialog') do
291
+ # wx_ctor_params :message => ''
292
+ # wx_ctor_params :caption => 'Enter password'
293
+ # wx_ctor_params :default_value => ''
294
+ # wx_ctor_params :style => Wx::OK|Wx::CANCEL|Wx::CENTRE
295
+ # wx_ctor_params :pos
296
+ # end
297
+
298
+ # wxFontDialog Font chooser dialog
299
+ # wxPageSetupDialog Standard page setup dialog
300
+ Wx::define_keyword_ctors('PageSetupDialog') do
301
+ wx_ctor_params :data
302
+ end
303
+
304
+ # wxPrintDialog Standard print dialog
305
+ Wx::define_keyword_ctors('PrintDialog') do
306
+ wx_ctor_params :data
307
+ end
308
+
309
+ # Simple message box dialog
310
+ Wx::define_keyword_ctors('MessageDialog') do
311
+ wx_ctor_params :message => ''
312
+ wx_ctor_params :caption => 'Message box'
313
+ wx_ctor_params :style => Wx::OK|Wx::CANCEL
314
+ wx_ctor_params :pos
315
+ end
316
+
317
+ # Property editing dialog
318
+ Wx::define_keyword_ctors('PropertySheetDialog') do
319
+ wx_ctor_params :id, :title
320
+ wx_ctor_params :pos, :size, :style => Wx::DEFAULT_DIALOG_STYLE
321
+ wx_ctor_params :name => 'propertySheetDialog'
322
+ end
323
+
324
+ ### CONTROLS
325
+
326
+ # Push button control, displaying text
327
+ Wx::define_keyword_ctors('Button') do
328
+ wx_ctor_params :id, :label => ''
329
+ wx_ctor_params :pos, :size, :style
330
+ wx_ctor_params :validator, :name => 'button'
331
+ end
332
+
333
+ # Push button control, displaying a bitmap
334
+ Wx::define_keyword_ctors('BitmapButton') do
335
+ wx_ctor_params :id, :bitmap, :pos, :size, :style => Wx::BU_AUTODRAW
336
+ wx_ctor_params :validator, :name => 'button'
337
+ end
338
+
339
+ # A button which stays pressed when clicked by user.
340
+ Wx::define_keyword_ctors('ToggleButton') do
341
+ wx_ctor_params :id, :label, :pos, :size, :style
342
+ wx_ctor_params :validator, :name => 'checkBox'
343
+ end
344
+
345
+ # Control showing an entire calendar month
346
+ Wx::define_keyword_ctors('CalendarCtrl') do
347
+ wx_ctor_params :id, :date => Time.now()
348
+ wx_ctor_params :pos, :size, :style => Wx::CAL_SHOW_HOLIDAYS
349
+ wx_ctor_params :name => 'calendar'
350
+ end
351
+
352
+ # Checkbox control
353
+ Wx::define_keyword_ctors('CheckBox') do
354
+ wx_ctor_params :id, :label => ''
355
+ wx_ctor_params :pos, :size, :style
356
+ wx_ctor_params :validator, :name => 'checkBox'
357
+ end
358
+
359
+ # A listbox with a checkbox to the left of each item
360
+ Wx::define_keyword_ctors('CheckListBox') do
361
+ wx_ctor_params :id, :pos, :size, :choices, :style
362
+ wx_ctor_params :validator, :name => 'listBox'
363
+ end
364
+
365
+ # wxChoice Choice control (a combobox without the editable area)
366
+ Wx::define_keyword_ctors('Choice') do
367
+ wx_ctor_params :id, :pos, :size, :choices, :style
368
+ wx_ctor_params :validator, :name => 'choice'
369
+ end
370
+
371
+ # wxComboBox A choice with an editable area
372
+ Wx::define_keyword_ctors('ComboBox') do
373
+ wx_ctor_params :id, :value => ''
374
+ wx_ctor_params :pos, :size, :choices => []
375
+ wx_ctor_params :style
376
+ wx_ctor_params :validator, :name => 'comboBox'
377
+ end
378
+
379
+ # wxBitmapComboBox A choice with an editable area
380
+ Wx::define_keyword_ctors('BitmapComboBox') do
381
+ wx_ctor_params :id, :value => ''
382
+ wx_ctor_params :pos, :size, :choices => []
383
+ wx_ctor_params :style
384
+ wx_ctor_params :validator, :name => 'comboBox'
385
+ end
386
+
387
+ # wxDatePickerCtrl Small date picker control
388
+
389
+ # wxGauge A control to represent a varying quantity, such as time
390
+ # remaining
391
+ Wx::define_keyword_ctors('Gauge') do
392
+ wx_ctor_params :id, :range, :pos, :size, :style => Wx::GA_HORIZONTAL
393
+ wx_ctor_params :validator, :name => 'gauge'
394
+ end
395
+
396
+ # wxGenericDirCtrl A control for displaying a directory tree
397
+ Wx::define_keyword_ctors('GenericDirCtrl') do
398
+ # TODO :dir => Wx::DIR_DIALOG_DEFAULT_FOLDER_STR
399
+ wx_ctor_params :id, :dir => ''
400
+ wx_ctor_params :pos, :size,
401
+ :style => Wx::DIRCTRL_3D_INTERNAL|Wx::SUNKEN_BORDER
402
+ wx_ctor_params :filter => ''
403
+ wx_ctor_params :default_filter => 0
404
+ wx_ctor_params :name => 'genericDirCtrl'
405
+ end
406
+
407
+
408
+ # wxHtmlListBox A listbox showing HTML content
409
+ # wxListBox A list of strings for single or multiple selection
410
+ Wx::define_keyword_ctors('ListBox') do
411
+ wx_ctor_params :id, :pos, :size, :choices => []
412
+ wx_ctor_params :style
413
+ wx_ctor_params :validator, :name => 'listBox'
414
+ end
415
+
416
+ # wxListCtrl A control for displaying lists of strings and/or icons, plus a multicolumn report view
417
+ Wx::define_keyword_ctors('ListCtrl') do
418
+ wx_ctor_params :id, :pos, :size, :style => Wx::LC_ICON
419
+ wx_ctor_params :validator, :name => 'listCtrl'
420
+ end
421
+
422
+ # wxListView A simpler interface (facade for wxListCtrl in report mode
423
+
424
+ # wxTreeCtrl Tree (hierarchy) control
425
+ Wx::define_keyword_ctors('TreeCtrl') do
426
+ wx_ctor_params :id, :pos, :size, :style => Wx::TR_HAS_BUTTONS
427
+ wx_ctor_params :validator, :name => 'treeCtrl'
428
+ end
429
+
430
+ # wxSpinCtrl A spin control - i.e. spin button and text control
431
+ Wx::define_keyword_ctors('SpinCtrl') do
432
+ wx_ctor_params :id, :value => ''
433
+ wx_ctor_params :pos, :size, :style => Wx::SP_ARROW_KEYS
434
+ wx_ctor_params :min => 0
435
+ wx_ctor_params :max => 100
436
+ wx_ctor_params :initial => 0
437
+ wx_ctor_params :name => 'spinCtrl'
438
+ end
439
+
440
+ # One or more lines of non-editable text
441
+ Wx::define_keyword_ctors('StaticText') do
442
+ wx_ctor_params :id, :label, :pos, :size, :style, :name => 'staticText'
443
+ end
444
+
445
+ Wx::define_keyword_ctors('StaticBox') do
446
+ wx_ctor_params :id, :label, :pos, :size, :style, :name => 'staticBox'
447
+ end
448
+
449
+ Wx::define_keyword_ctors('StaticLine') do
450
+ wx_ctor_params :id, :pos, :size, :style => Wx::LI_HORIZONTAL
451
+ wx_ctor_params :name => 'staticBox'
452
+ end
453
+
454
+ # wxStaticBitmap A control to display a bitmap
455
+ Wx::define_keyword_ctors('StaticBitmap') do
456
+ wx_ctor_params :id, :label, :pos, :size, :style
457
+ end
458
+
459
+
460
+ # wxRadioBox A group of radio buttons
461
+ Wx::define_keyword_ctors('RadioBox') do
462
+ wx_ctor_params :id, :label => ''
463
+ wx_ctor_params :pos, :size, :choices => []
464
+ wx_ctor_params :major_dimension => 0
465
+ wx_ctor_params :style => Wx::RA_SPECIFY_COLS
466
+ wx_ctor_params :validator, :name => 'radioBox'
467
+ end
468
+
469
+ # wxRadioButton: A round button used with others in a mutually exclusive way
470
+ Wx::define_keyword_ctors('RadioButton') do
471
+ wx_ctor_params :id, :label => ''
472
+ wx_ctor_params :pos, :size, :style => 0
473
+ wx_ctor_params :validator, :name => 'radioButton'
474
+ end
475
+
476
+ # wxSlider A slider that can be dragged by the user
477
+ Wx::define_keyword_ctors('Slider') do
478
+ wx_ctor_params :id, :value => 0
479
+ wx_ctor_params :min_value, :max_value
480
+ wx_ctor_params :pos, :size, :style => Wx::SL_HORIZONTAL
481
+ wx_ctor_params :validator, :name => 'slider'
482
+ end
483
+
484
+ # wxSpinButton - Has two small up and down (or left and right) arrow buttons
485
+ Wx::define_keyword_ctors('SpinButton') do
486
+ wx_ctor_params :id, :pos, :size, :style => Wx::SP_HORIZONTAL
487
+ wx_ctor_params :name => 'spinButton'
488
+ end
489
+
490
+ # wxScrollBar - standalone scrollbar with arrows and thumb
491
+ Wx::define_keyword_ctors('ScrollBar') do
492
+ wx_ctor_params :id, :pos, :size, :style => Wx::SB_HORIZONTAL
493
+ wx_ctor_params :validator, :name => 'scrollBar'
494
+ end
495
+
496
+
497
+ # wxVListBox A listbox supporting variable height rows
498
+
499
+ # wxTextCtrl Single or multiline text editing control
500
+ Wx::define_keyword_ctors('TextCtrl') do
501
+ wx_ctor_params :id, :value => ''
502
+ wx_ctor_params :pos, :size, :style
503
+ wx_ctor_params :validator, :name => 'textCtrl'
504
+ end
505
+
506
+ # wxHtmlWindow - Control for displaying HTML
507
+ Wx::define_keyword_ctors('HtmlWindow') do
508
+ wx_ctor_params :id, :pos, :size, :style => Wx::HW_DEFAULT_STYLE
509
+ wx_ctor_params :name => 'htmlWindow'
510
+ end
511
+
512
+ # wxHyperTextCtrl - display a clickable URL
513
+ Wx::define_keyword_ctors('HyperlinkCtrl') do
514
+ wx_ctor_params :id, :label => ''
515
+ wx_ctor_params :url => ''
516
+ wx_ctor_params :pos, :size, :style => 0
517
+ wx_ctor_params :name => 'hyperlink'
518
+ end
519
+
520
+ Wx::define_keyword_ctors('StyledTextCtrl') do
521
+ wx_ctor_params :id, :pos, :size, :style => 0
522
+ wx_ctor_params :name => 'styledTextCtrl'
523
+ end
524
+
525
+
526
+ Wx::define_keyword_ctors('CollapsiblePane') do
527
+ wx_ctor_params :id, :label => ''
528
+ wx_ctor_params :pos, :size, :style => 0
529
+ wx_ctor_params :validator, :name => 'collapsiblePane'
530
+ end
531
+
532
+ Wx::define_keyword_ctors('MediaCtrl') do
533
+ wx_ctor_params :id, :filename => ''
534
+ wx_ctor_params :pos, :size, :style => 0
535
+ wx_ctor_params :backend => ''
536
+ wx_ctor_params :validator, :name => 'mediaCtrl'
537
+ end
538
+
539
+ Wx::define_keyword_ctors('SearchCtrl') do
540
+ wx_ctor_params :id, :value => ''
541
+ wx_ctor_params :pos, :size, :style => 0
542
+ wx_ctor_params :validator, :name => 'searchCtrl'
543
+ end
544
+
545
+
546
+ Wx::define_keyword_ctors('AnimationCtrl') do
547
+ wx_ctor_params :id, :anim
548
+ wx_ctor_params :pos, :size, :style => Wx::AC_DEFAULT_STYLE
549
+ wx_ctor_params :name => 'animationCtrl'
550
+ end
551
+
552
+ Wx::define_keyword_ctors('VScrolledWindow') do
553
+ wx_ctor_params :id, :pos, :size, :style, :name => 'VScrolledWindowNameStr'
554
+ end
555
+
556
+ Wx::define_keyword_ctors('VListBox') do
557
+ wx_ctor_params :id, :pos, :size, :style, :name => 'VListBoxNameStr'
558
+ end
559
+
560
+ Wx::define_keyword_ctors('HtmlListBox') do
561
+ wx_ctor_params :id, :pos, :size, :style, :name => 'HtmlListBoxNameStr'
562
+ end
563
+
564
+ Wx::define_keyword_ctors('DatePickerCtrl') do
565
+ wx_ctor_params :id, :dt, :pos, :size, :style, :validator, :name => 'dateCtrl'
566
+ end
567
+
568
+ Wx::define_keyword_ctors('RichTextCtrl') do
569
+ wx_ctor_params :id, :value => ''
570
+ wx_ctor_params :pos, :size, :style => Wx::TE_MULTILINE
571
+ wx_ctor_params :validator, :name => 'textCtrl'
572
+ end
573
+
574
+ Wx::define_keyword_ctors('RichTextStyleListBox') do
575
+ wx_ctor_params :id, :pos, :size, :style
576
+ end
577
+
578
+ Wx::define_keyword_ctors('RichTextStyleListCtrl') do
579
+ wx_ctor_params :id, :pos, :size, :style
580
+ end
581
+
582
+
583
+ # FIXME - SymbolPickerDialog is hard to because the parent argument is
584
+ # in a strange place.
585
+