Update of /cvsroot/fxruby/FXRuby/examples
In directory usw-pr-cvs1:/tmp/cvs-serv15718/examples
Modified Files:
Tag: release10
canvasdemo.rb
Log Message:
Removed a lot of scaffolding that we were using to make overloaded
methods work properly. This is now supported directly by SWIG 1.3.14
and so we don't have to do it anymore.
Index: canvasdemo.rb
===================================================================
RCS file: /cvsroot/fxruby/FXRuby/examples/Attic/canvasdemo.rb,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -d -r1.1.2.1 -r1.1.2.2
*** canvasdemo.rb 24 May 2002 23:01:12 -0000 1.1.2.1
--- canvasdemo.rb 8 Jul 2002 13:27:16 -0000 1.1.2.2
***************
*** 5,12 ****
include Canvas
! class OGLMainWindow < FXMainWindow
def initialize(app)
# Initialize base class first
! super(app, "OGLEditDemo", nil, nil, DECOR_ALL, 0, 0, 500, 400)
# Menu bar
--- 5,12 ----
include Canvas
! class CanvasDemo < FXMainWindow
def initialize(app)
# Initialize base class first
! super(app, "Canvas Demo", nil, nil, DECOR_ALL, 0, 0, 800, 600)
# Menu bar
***************
*** 44,49 ****
aboutBox = FXMenuCommand.new(help_menu, "&About...")
aboutBox.connect(SEL_COMMAND) do |sender, sel, ptr|
! FXMessageBox.information(self, MBOX_OK, "About OGLEdit",
! "OGLEdit Demo\nTo draw a shape, select a shape on the toolbar and left-click on the canvas.\nTo draw a line, right-drag between shapes.\nFor further details, see the OGL manual.\n (c) Julian Smart 1996")
end
--- 44,49 ----
aboutBox = FXMenuCommand.new(help_menu, "&About...")
aboutBox.connect(SEL_COMMAND) do |sender, sel, ptr|
! FXMessageBox.information(self, MBOX_OK, "About Canvas",
! "Canvas Demo\nTo draw a shape, select a shape on the toolbar and left-click on the canvas.\nTo draw a line, right-drag between shapes.")
end
***************
*** 82,88 ****
if __FILE__ == $0
! app = FXApp.new("OGLEdit", "FXRuby")
app.init(ARGV)
! OGLMainWindow.new(app)
app.create
app.run
--- 82,88 ----
if __FILE__ == $0
! app = FXApp.new("CanvasDemo", "FXRuby")
app.init(ARGV)
! CanvasDemo.new(app)
app.create
app.run
|