wxruby 1.9.3-i386-mswin32 → 1.9.4-i386-mswin32

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.
Files changed (126) hide show
  1. data/LICENSE +53 -53
  2. data/README +299 -299
  3. data/lib/wx/classes/evthandler.rb +9 -0
  4. data/lib/wx/classes/timer.rb +25 -0
  5. data/lib/wx/version.rb +1 -1
  6. data/lib/wx.rb +42 -42
  7. data/lib/wxruby2.exp +0 -0
  8. data/lib/wxruby2.lib +0 -0
  9. data/lib/wxruby2.so +0 -0
  10. data/samples/SAMPLES-LICENSE.TXT +17 -17
  11. data/samples/bigdemo/About.rbw +39 -39
  12. data/samples/bigdemo/ColorPanel.rbw +25 -25
  13. data/samples/bigdemo/GridSimple.rbw +80 -80
  14. data/samples/bigdemo/MDIDemo.rbw +59 -59
  15. data/samples/bigdemo/PopupMenu.rbw +151 -151
  16. data/samples/bigdemo/Sizers.rbw +545 -545
  17. data/samples/bigdemo/bigdemo.rb +826 -826
  18. data/samples/bigdemo/demoTemplate.rbw +37 -37
  19. data/samples/bigdemo/icons/choice.xpm +27 -27
  20. data/samples/bigdemo/icons/combo.xpm +27 -27
  21. data/samples/bigdemo/icons/copy.xpm +25 -25
  22. data/samples/bigdemo/icons/cut.xpm +24 -24
  23. data/samples/bigdemo/icons/gauge.xpm +27 -27
  24. data/samples/bigdemo/icons/help.xpm +25 -25
  25. data/samples/bigdemo/icons/list.xpm +27 -27
  26. data/samples/bigdemo/icons/mondrian.xpm +44 -44
  27. data/samples/bigdemo/icons/new.xpm +24 -24
  28. data/samples/bigdemo/icons/ogl.ico +0 -0
  29. data/samples/bigdemo/icons/ogl.xpm +45 -45
  30. data/samples/bigdemo/icons/open.xpm +26 -26
  31. data/samples/bigdemo/icons/paste.xpm +38 -38
  32. data/samples/bigdemo/icons/preview.xpm +26 -26
  33. data/samples/bigdemo/icons/print.xpm +26 -26
  34. data/samples/bigdemo/icons/radio.xpm +27 -27
  35. data/samples/bigdemo/icons/robert.xpm +415 -415
  36. data/samples/bigdemo/icons/save.xpm +25 -25
  37. data/samples/bigdemo/icons/smiles.xpm +39 -39
  38. data/samples/bigdemo/icons/smiley.xpm +42 -42
  39. data/samples/bigdemo/icons/stattext.xpm +24 -24
  40. data/samples/bigdemo/icons/test2.bmp +0 -0
  41. data/samples/bigdemo/icons/test2.xpm +79 -79
  42. data/samples/bigdemo/icons/text.xpm +27 -27
  43. data/samples/bigdemo/icons/tog1.xpm +38 -38
  44. data/samples/bigdemo/icons/tog2.xpm +38 -38
  45. data/samples/bigdemo/icons/wxwin16x16.xpm +25 -25
  46. data/samples/bigdemo/tips.txt +7 -7
  47. data/samples/bigdemo/utils.rb +11 -11
  48. data/samples/bigdemo/wxButton.rbw +66 -66
  49. data/samples/bigdemo/wxCalendarCtrl.rbw +72 -72
  50. data/samples/bigdemo/wxCheckBox.rbw +52 -52
  51. data/samples/bigdemo/wxCheckListBox.rbw +77 -77
  52. data/samples/bigdemo/wxChoice.rbw +49 -49
  53. data/samples/bigdemo/wxColourDialog.rbw +34 -34
  54. data/samples/bigdemo/wxComboBox.rbw +79 -79
  55. data/samples/bigdemo/wxDialog.rbw +92 -92
  56. data/samples/bigdemo/wxDirDialog.rbw +32 -32
  57. data/samples/bigdemo/wxFileDialog.rbw +39 -39
  58. data/samples/bigdemo/wxFileDialog_Save.rbw +38 -38
  59. data/samples/bigdemo/wxFindReplaceDialog.rbw +85 -85
  60. data/samples/bigdemo/wxFontDialog.rbw +176 -176
  61. data/samples/bigdemo/wxFrame.rbw +55 -55
  62. data/samples/bigdemo/wxGauge.rbw +73 -73
  63. data/samples/bigdemo/wxGrid.rbw +68 -68
  64. data/samples/bigdemo/wxListBox.rbw +142 -142
  65. data/samples/bigdemo/wxListCtrl_virtual.rbw +109 -109
  66. data/samples/bigdemo/wxMDIWindows.rbw +52 -52
  67. data/samples/bigdemo/wxMenu.rbw +238 -238
  68. data/samples/bigdemo/wxMessageDialog.rbw +30 -30
  69. data/samples/bigdemo/wxMultipleChoiceDialog.rbw +34 -34
  70. data/samples/bigdemo/wxNotebook.rbw +138 -138
  71. data/samples/bigdemo/wxProgressDialog.rbw +45 -45
  72. data/samples/bigdemo/wxRadioBox.rbw +74 -74
  73. data/samples/bigdemo/wxRadioButton.rbw +127 -127
  74. data/samples/bigdemo/wxScrolledMessageDialog.rbw +59 -59
  75. data/samples/bigdemo/wxScrolledWindow.rbw +201 -201
  76. data/samples/bigdemo/wxSingleChoiceDialog.rbw +35 -35
  77. data/samples/bigdemo/wxSlider.rbw +44 -44
  78. data/samples/bigdemo/wxSpinButton.rbw +52 -52
  79. data/samples/bigdemo/wxSpinCtrl.rbw +53 -53
  80. data/samples/bigdemo/wxSplitterWindow.rbw +65 -65
  81. data/samples/bigdemo/wxStaticBitmap.rbw +53 -53
  82. data/samples/bigdemo/wxStaticText.rbw +57 -57
  83. data/samples/bigdemo/wxStatusBar.rbw +128 -128
  84. data/samples/bigdemo/wxTextCtrl.rbw +151 -151
  85. data/samples/bigdemo/wxTextEntryDialog.rbw +34 -34
  86. data/samples/bigdemo/wxToggleButton.rbw +51 -51
  87. data/samples/bigdemo/wxToolBar.rbw +133 -133
  88. data/samples/bigdemo/wxTreeCtrl.rbw +192 -192
  89. data/samples/calendar/calendar.rb +275 -275
  90. data/samples/caret/caret.rb +286 -286
  91. data/samples/caret/mondrian.xpm +44 -44
  92. data/samples/controls/controls.rb +1140 -1140
  93. data/samples/controls/get_item_sample.rb +87 -87
  94. data/samples/controls/icons/choice.xpm +27 -27
  95. data/samples/controls/icons/combo.xpm +27 -27
  96. data/samples/controls/icons/gauge.xpm +27 -27
  97. data/samples/controls/icons/list.xpm +27 -27
  98. data/samples/controls/icons/radio.xpm +27 -27
  99. data/samples/controls/icons/stattext.xpm +24 -24
  100. data/samples/controls/icons/text.xpm +27 -27
  101. data/samples/controls/mondrian.xpm +44 -44
  102. data/samples/dialogs/dialogs.rb +724 -724
  103. data/samples/dialogs/tips.txt +18 -18
  104. data/samples/drawing/graphics_drawing.rb +22 -18
  105. data/samples/drawing/images.rb +48 -48
  106. data/samples/etc/activation.rb +108 -108
  107. data/samples/etc/choice.rb +72 -72
  108. data/samples/etc/miniframe.rb +84 -84
  109. data/samples/etc/sash.rb +135 -135
  110. data/samples/etc/scrollwin.rb +116 -116
  111. data/samples/etc/system_settings.rb +258 -258
  112. data/samples/etc/threaded.rb +5 -8
  113. data/samples/etc/wizard.rb +79 -79
  114. data/samples/html/html.rb +14 -10
  115. data/samples/listbook/listbook.rb +181 -181
  116. data/samples/listbook/listbook.xrc +370 -370
  117. data/samples/mdi/mdi.rb +87 -87
  118. data/samples/minimal/minimal.rb +85 -85
  119. data/samples/minimal/nothing.rb +21 -21
  120. data/samples/text/textctrl.rb +124 -124
  121. data/samples/text/unicode.rb +238 -238
  122. data/samples/text/utf8.txt +14 -14
  123. data/samples/treectrl/treectrl.rb +1180 -1180
  124. data/samples/xrc/samples.xrc +46 -46
  125. data/samples/xrc/xrc_sample.rb +107 -107
  126. metadata +3 -3
@@ -1,46 +1,46 @@
1
- <?xml version="1.0" encoding="ISO-8859-1"?>
2
- <resource xmlns="http://www.wxwindows.org/wxxrc">
3
- <object class="wxDialog" name="SAMPLE_DIALOG">
4
- <style>wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU</style>
5
- <size>400,300</size>
6
- <title>Sample</title>
7
- <centered>1</centered>
8
- <object class="wxBoxSizer">
9
- <orient>wxHORIZONTAL</orient>
10
- <object class="sizeritem">
11
- <flag>wxALIGN_CENTER_VERTICAL|wxALL</flag>
12
- <border>5</border>
13
- <object class="wxBoxSizer">
14
- <orient>wxVERTICAL</orient>
15
- <object class="sizeritem">
16
- <flag>wxALIGN_CENTER_HORIZONTAL|wxALL</flag>
17
- <border>5</border>
18
- <object class="wxButton" name="wxID_OK">
19
- <size>-1,-1</size>
20
- <style></style>
21
- <label>Ok</label>
22
- </object>
23
- </object>
24
- <object class="sizeritem">
25
- <flag>wxALIGN_CENTER_HORIZONTAL|wxALL</flag>
26
- <border>5</border>
27
- <object class="wxButton" name="wxID_CANCEL">
28
- <size>-1,-1</size>
29
- <style></style>
30
- <label>Cancel</label>
31
- </object>
32
- </object>
33
- <object class="sizeritem">
34
- <flag>wxALIGN_CENTER_HORIZONTAL|wxALL</flag>
35
- <border>5</border>
36
- <object class="wxButton" name="SAMPLE_MESSAGE">
37
- <size>-1,-1</size>
38
- <style></style>
39
- <label>Message...</label>
40
- </object>
41
- </object>
42
- </object>
43
- </object>
44
- </object>
45
- </object>
46
- </resource>
1
+ <?xml version="1.0" encoding="ISO-8859-1"?>
2
+ <resource xmlns="http://www.wxwindows.org/wxxrc">
3
+ <object class="wxDialog" name="SAMPLE_DIALOG">
4
+ <style>wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU</style>
5
+ <size>400,300</size>
6
+ <title>Sample</title>
7
+ <centered>1</centered>
8
+ <object class="wxBoxSizer">
9
+ <orient>wxHORIZONTAL</orient>
10
+ <object class="sizeritem">
11
+ <flag>wxALIGN_CENTER_VERTICAL|wxALL</flag>
12
+ <border>5</border>
13
+ <object class="wxBoxSizer">
14
+ <orient>wxVERTICAL</orient>
15
+ <object class="sizeritem">
16
+ <flag>wxALIGN_CENTER_HORIZONTAL|wxALL</flag>
17
+ <border>5</border>
18
+ <object class="wxButton" name="wxID_OK">
19
+ <size>-1,-1</size>
20
+ <style></style>
21
+ <label>Ok</label>
22
+ </object>
23
+ </object>
24
+ <object class="sizeritem">
25
+ <flag>wxALIGN_CENTER_HORIZONTAL|wxALL</flag>
26
+ <border>5</border>
27
+ <object class="wxButton" name="wxID_CANCEL">
28
+ <size>-1,-1</size>
29
+ <style></style>
30
+ <label>Cancel</label>
31
+ </object>
32
+ </object>
33
+ <object class="sizeritem">
34
+ <flag>wxALIGN_CENTER_HORIZONTAL|wxALL</flag>
35
+ <border>5</border>
36
+ <object class="wxButton" name="SAMPLE_MESSAGE">
37
+ <size>-1,-1</size>
38
+ <style></style>
39
+ <label>Message...</label>
40
+ </object>
41
+ </object>
42
+ </object>
43
+ </object>
44
+ </object>
45
+ </object>
46
+ </resource>
@@ -1,107 +1,107 @@
1
- #!/usr/bin/env ruby
2
- # wxRuby2 Sample Code. Copyright (c) 2004-2006 Kevin B. Smith
3
- # Freely reusable code: see SAMPLES-LICENSE.TXT for details
4
-
5
- begin
6
- require 'wx'
7
- rescue LoadError => no_wx_err
8
- begin
9
- require 'rubygems'
10
- require 'wx'
11
- rescue LoadError
12
- raise no_wx_err
13
- end
14
- end
15
-
16
- # Basic Frame Class. This creates the dialog window
17
- class SimpleFrame < Wx::Frame
18
-
19
- FILE_DIALOG = 1001
20
-
21
- def initialize()
22
- super(nil,-1,"Sample",Wx::Point.new(50,50),Wx::Size.new(300,300))
23
- txt = "Choose 'Open Dialog' from the menu to see a dialog made with XRC"
24
- Wx::StaticText.new( self, -1, txt, Wx::Point.new(10, 10) )
25
-
26
- # Create a new menu
27
- bar = Wx::MenuBar.new()
28
- menu = Wx::Menu.new()
29
- menu.append(FILE_DIALOG,"Open Dialog")
30
- menu.append(Wx::ID_EXIT,"Quit")
31
- bar.append(menu,"File")
32
-
33
- set_menu_bar(bar)
34
-
35
- #
36
- # Assign the menu events
37
- #
38
- evt_menu(FILE_DIALOG) do
39
- SimpleDialog.new(self).show_modal()
40
- end
41
-
42
- evt_menu(Wx::ID_EXIT) do
43
- puts Wx::get_app.get_app_name
44
- Wx::get_app.exit_main_loop()
45
- end
46
-
47
- evt_close() do
48
- Wx::get_app.exit_main_loop()
49
- end
50
- end
51
-
52
- end
53
-
54
- # Dialog subclass. The components within the dialog are loaded from XRC.
55
- class SimpleDialog < Wx::Dialog
56
- def initialize(parent)
57
- # To load a layout defined in XRC into a Ruby subclass of Dialog,
58
- # first call the empty constructor. All the details of size,
59
- # title, position and so on are loaded from the XRC by the call to
60
- # load_frame_subclass. Using a non-empty constructor will cause
61
- # errors on GTK.
62
- super()
63
-
64
- # Load the dialog from XRC. We define $xml in on_init.
65
- # We could use XmlResource.get() over and over again, but
66
- # honestly, thats just too much work.
67
- $xml.load_dialog_subclass(self,parent,'SAMPLE_DIALOG')
68
-
69
- # Get the buttons. The xrcid method turns a string identifier
70
- # used in an xml file into a numeric identifier as used in
71
- # wxruby.
72
- @ok = find_window_by_id( Wx::xrcid('wxID_OK') )
73
- @cancel = find_window_by_id( Wx::xrcid('wxID_CANCEL') )
74
- @message = find_window_by_id( Wx::xrcid('SAMPLE_MESSAGE') )
75
-
76
- # Bind the buttons to event handlers
77
- evt_button( @ok.get_id ) { end_modal(Wx::ID_OK) }
78
- evt_button( @cancel.get_id ) { end_modal(Wx::ID_CANCEL) }
79
- evt_button( @message.get_id ) do
80
- Wx::message_box("And now a message from our sponsors.")
81
- end
82
- end
83
- end
84
-
85
- #
86
- # Application class.
87
- #
88
- class XrcApp < Wx::App
89
-
90
- def on_init
91
- # Create a resource handler
92
- $xml = Wx::XmlResource.get();
93
- $xml.init_all_handlers();
94
-
95
-
96
- # Load a resource file
97
- xrc_file = File.join( File.dirname(__FILE__), 'samples.xrc' )
98
- $xml.load(xrc_file)
99
-
100
- # Show the main frame.
101
- main = SimpleFrame.new()
102
- main.show(true)
103
- end
104
-
105
- end
106
-
107
- XrcApp.new.main_loop()
1
+ #!/usr/bin/env ruby
2
+ # wxRuby2 Sample Code. Copyright (c) 2004-2006 Kevin B. Smith
3
+ # Freely reusable code: see SAMPLES-LICENSE.TXT for details
4
+
5
+ begin
6
+ require 'wx'
7
+ rescue LoadError => no_wx_err
8
+ begin
9
+ require 'rubygems'
10
+ require 'wx'
11
+ rescue LoadError
12
+ raise no_wx_err
13
+ end
14
+ end
15
+
16
+ # Basic Frame Class. This creates the dialog window
17
+ class SimpleFrame < Wx::Frame
18
+
19
+ FILE_DIALOG = 1001
20
+
21
+ def initialize()
22
+ super(nil,-1,"Sample",Wx::Point.new(50,50),Wx::Size.new(300,300))
23
+ txt = "Choose 'Open Dialog' from the menu to see a dialog made with XRC"
24
+ Wx::StaticText.new( self, -1, txt, Wx::Point.new(10, 10) )
25
+
26
+ # Create a new menu
27
+ bar = Wx::MenuBar.new()
28
+ menu = Wx::Menu.new()
29
+ menu.append(FILE_DIALOG,"Open Dialog")
30
+ menu.append(Wx::ID_EXIT,"Quit")
31
+ bar.append(menu,"File")
32
+
33
+ set_menu_bar(bar)
34
+
35
+ #
36
+ # Assign the menu events
37
+ #
38
+ evt_menu(FILE_DIALOG) do
39
+ SimpleDialog.new(self).show_modal()
40
+ end
41
+
42
+ evt_menu(Wx::ID_EXIT) do
43
+ puts Wx::get_app.get_app_name
44
+ Wx::get_app.exit_main_loop()
45
+ end
46
+
47
+ evt_close() do
48
+ Wx::get_app.exit_main_loop()
49
+ end
50
+ end
51
+
52
+ end
53
+
54
+ # Dialog subclass. The components within the dialog are loaded from XRC.
55
+ class SimpleDialog < Wx::Dialog
56
+ def initialize(parent)
57
+ # To load a layout defined in XRC into a Ruby subclass of Dialog,
58
+ # first call the empty constructor. All the details of size,
59
+ # title, position and so on are loaded from the XRC by the call to
60
+ # load_frame_subclass. Using a non-empty constructor will cause
61
+ # errors on GTK.
62
+ super()
63
+
64
+ # Load the dialog from XRC. We define $xml in on_init.
65
+ # We could use XmlResource.get() over and over again, but
66
+ # honestly, thats just too much work.
67
+ $xml.load_dialog_subclass(self,parent,'SAMPLE_DIALOG')
68
+
69
+ # Get the buttons. The xrcid method turns a string identifier
70
+ # used in an xml file into a numeric identifier as used in
71
+ # wxruby.
72
+ @ok = find_window_by_id( Wx::xrcid('wxID_OK') )
73
+ @cancel = find_window_by_id( Wx::xrcid('wxID_CANCEL') )
74
+ @message = find_window_by_id( Wx::xrcid('SAMPLE_MESSAGE') )
75
+
76
+ # Bind the buttons to event handlers
77
+ evt_button( @ok.get_id ) { end_modal(Wx::ID_OK) }
78
+ evt_button( @cancel.get_id ) { end_modal(Wx::ID_CANCEL) }
79
+ evt_button( @message.get_id ) do
80
+ Wx::message_box("And now a message from our sponsors.")
81
+ end
82
+ end
83
+ end
84
+
85
+ #
86
+ # Application class.
87
+ #
88
+ class XrcApp < Wx::App
89
+
90
+ def on_init
91
+ # Create a resource handler
92
+ $xml = Wx::XmlResource.get();
93
+ $xml.init_all_handlers();
94
+
95
+
96
+ # Load a resource file
97
+ xrc_file = File.join( File.dirname(__FILE__), 'samples.xrc' )
98
+ $xml.load(xrc_file)
99
+
100
+ # Show the main frame.
101
+ main = SimpleFrame.new()
102
+ main.show(true)
103
+ end
104
+
105
+ end
106
+
107
+ XrcApp.new.main_loop()
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: wxruby
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.9.3
7
- date: 2008-01-14 00:00:00 -08:00
6
+ version: 1.9.4
7
+ date: 2008-01-16 00:00:00 -08:00
8
8
  summary: Ruby interface to the wxWidgets GUI library
9
9
  require_paths:
10
10
  - lib
@@ -12,7 +12,7 @@ email: support@wxruby.org
12
12
  homepage: http://wxruby.org/
13
13
  rubyforge_project: wxruby
14
14
  description: wxRuby allows the creation of graphical user interface (GUI) applications via the wxWidgets library. wxRuby provides native-style GUI windows, dialogs and controls on platforms including Windows, OS X and Linux.
15
- autorequire: wx
15
+ autorequire:
16
16
  default_executable:
17
17
  bindir: bin
18
18
  has_rdoc: false