wxruby-ruby19 1.9.8-x86-linux → 1.9.10-x86-linux
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.
- data/LICENSE +53 -0
 - data/README +297 -0
 - data/lib/wx/accessors.rb +58 -0
 - data/lib/wx/classes/acceleratortable.rb +28 -0
 - data/lib/wx/classes/animation.rb +18 -0
 - data/lib/wx/classes/app.rb +51 -0
 - data/lib/wx/classes/artprovider.rb +31 -0
 - data/lib/wx/classes/auinotebook.rb +9 -0
 - data/lib/wx/classes/bitmap.rb +56 -0
 - data/lib/wx/classes/busycursor.rb +12 -0
 - data/lib/wx/classes/checklistbox.rb +45 -0
 - data/lib/wx/classes/choice.rb +4 -0
 - data/lib/wx/classes/clientdc.rb +13 -0
 - data/lib/wx/classes/clipboard.rb +32 -0
 - data/lib/wx/classes/colour.rb +49 -0
 - data/lib/wx/classes/combobox.rb +4 -0
 - data/lib/wx/classes/commandevent.rb +7 -0
 - data/lib/wx/classes/controlwithitems.rb +10 -0
 - data/lib/wx/classes/data_object.rb +14 -0
 - data/lib/wx/classes/data_object_simple.rb +6 -0
 - data/lib/wx/classes/dataformat.rb +23 -0
 - data/lib/wx/classes/dc.rb +57 -0
 - data/lib/wx/classes/event.rb +5 -0
 - data/lib/wx/classes/evthandler.rb +1039 -0
 - data/lib/wx/classes/font.rb +118 -0
 - data/lib/wx/classes/functions.rb +44 -0
 - data/lib/wx/classes/gauge.rb +12 -0
 - data/lib/wx/classes/genericdirctrl.rb +36 -0
 - data/lib/wx/classes/grid.rb +146 -0
 - data/lib/wx/classes/hboxsizer.rb +6 -0
 - data/lib/wx/classes/helpcontroller.rb +5 -0
 - data/lib/wx/classes/helpcontrollerhelpprovider.rb +23 -0
 - data/lib/wx/classes/helpprovider.rb +15 -0
 - data/lib/wx/classes/htmlhelpcontroller.rb +5 -0
 - data/lib/wx/classes/htmlwindow.rb +14 -0
 - data/lib/wx/classes/icon.rb +32 -0
 - data/lib/wx/classes/iconbundle.rb +3 -0
 - data/lib/wx/classes/image.rb +43 -0
 - data/lib/wx/classes/imagelist.rb +3 -0
 - data/lib/wx/classes/listbox.rb +4 -0
 - data/lib/wx/classes/listctrl.rb +33 -0
 - data/lib/wx/classes/locale.rb +28 -0
 - data/lib/wx/classes/mediactrl.rb +48 -0
 - data/lib/wx/classes/menu.rb +62 -0
 - data/lib/wx/classes/menuitem.rb +7 -0
 - data/lib/wx/classes/notebook.rb +9 -0
 - data/lib/wx/classes/object.rb +14 -0
 - data/lib/wx/classes/paintdc.rb +12 -0
 - data/lib/wx/classes/point.rb +56 -0
 - data/lib/wx/classes/previewframe.rb +13 -0
 - data/lib/wx/classes/rect.rb +19 -0
 - data/lib/wx/classes/richtextctrl.rb +63 -0
 - data/lib/wx/classes/simplehelpprovider.rb +38 -0
 - data/lib/wx/classes/size.rb +58 -0
 - data/lib/wx/classes/sizer.rb +37 -0
 - data/lib/wx/classes/sound.rb +23 -0
 - data/lib/wx/classes/standardpaths.rb +9 -0
 - data/lib/wx/classes/styledtextctrl.rb +92 -0
 - data/lib/wx/classes/textctrl.rb +14 -0
 - data/lib/wx/classes/texturlevent.rb +18 -0
 - data/lib/wx/classes/timer.rb +94 -0
 - data/lib/wx/classes/toolbar.rb +27 -0
 - data/lib/wx/classes/toolbartool.rb +4 -0
 - data/lib/wx/classes/treectrl.rb +44 -0
 - data/lib/wx/classes/vboxsizer.rb +6 -0
 - data/lib/wx/classes/window.rb +89 -0
 - data/lib/wx/classes/xmlresource.rb +54 -0
 - data/lib/wx/helpers.rb +45 -0
 - data/lib/wx/keyword_ctors.rb +204 -0
 - data/lib/wx/keyword_defs.rb +558 -0
 - data/lib/wx/version.rb +3 -0
 - data/lib/wx.rb +53 -0
 - data/lib/wxruby2.so +0 -0
 - data/samples/SAMPLES-LICENSE.TXT +18 -0
 - data/samples/aui/aui.rb +1356 -0
 - data/samples/bigdemo/About.rbw +39 -0
 - data/samples/bigdemo/ColorPanel.rbw +23 -0
 - data/samples/bigdemo/GridSimple.rbw +78 -0
 - data/samples/bigdemo/MDIDemo.rbw +57 -0
 - data/samples/bigdemo/PopupMenu.rbw +149 -0
 - data/samples/bigdemo/ShapedWindow.rbw +131 -0
 - data/samples/bigdemo/Sizers.rbw +543 -0
 - data/samples/bigdemo/bigdemo.rb +823 -0
 - data/samples/bigdemo/demoTemplate.rbw +33 -0
 - data/samples/bigdemo/helpfile.htb +0 -0
 - data/samples/bigdemo/icons/Test 015.jpg +0 -0
 - data/samples/bigdemo/icons/Test 015.png +0 -0
 - data/samples/bigdemo/icons/choice.bmp +0 -0
 - data/samples/bigdemo/icons/choice.xpm +27 -0
 - data/samples/bigdemo/icons/combo.bmp +0 -0
 - data/samples/bigdemo/icons/combo.xpm +27 -0
 - data/samples/bigdemo/icons/copy.xpm +25 -0
 - data/samples/bigdemo/icons/cut.xpm +24 -0
 - data/samples/bigdemo/icons/gauge.bmp +0 -0
 - data/samples/bigdemo/icons/gauge.xpm +27 -0
 - data/samples/bigdemo/icons/help.xpm +25 -0
 - data/samples/bigdemo/icons/list.bmp +0 -0
 - data/samples/bigdemo/icons/list.xpm +27 -0
 - data/samples/bigdemo/icons/mondrian.ico +0 -0
 - data/samples/bigdemo/icons/mondrian.xpm +44 -0
 - data/samples/bigdemo/icons/new.xpm +24 -0
 - data/samples/bigdemo/icons/ogl.ico +0 -0
 - data/samples/bigdemo/icons/ogl.xpm +45 -0
 - data/samples/bigdemo/icons/open.xpm +26 -0
 - data/samples/bigdemo/icons/paste.bmp +0 -0
 - data/samples/bigdemo/icons/paste.xpm +38 -0
 - data/samples/bigdemo/icons/pointy.png +0 -0
 - data/samples/bigdemo/icons/preview.xpm +26 -0
 - data/samples/bigdemo/icons/print.xpm +26 -0
 - data/samples/bigdemo/icons/radio.bmp +0 -0
 - data/samples/bigdemo/icons/radio.xpm +27 -0
 - data/samples/bigdemo/icons/robert.xpm +415 -0
 - data/samples/bigdemo/icons/ruby.png +0 -0
 - data/samples/bigdemo/icons/sashtest.ico +0 -0
 - data/samples/bigdemo/icons/save.xpm +25 -0
 - data/samples/bigdemo/icons/smiles.bmp +0 -0
 - data/samples/bigdemo/icons/smiles.xpm +39 -0
 - data/samples/bigdemo/icons/smiley.ico +0 -0
 - data/samples/bigdemo/icons/smiley.xpm +42 -0
 - data/samples/bigdemo/icons/stattext.xpm +24 -0
 - data/samples/bigdemo/icons/test2.bmp +0 -0
 - data/samples/bigdemo/icons/test2.png +0 -0
 - data/samples/bigdemo/icons/test2.xpm +79 -0
 - data/samples/bigdemo/icons/text.bmp +0 -0
 - data/samples/bigdemo/icons/text.xpm +27 -0
 - data/samples/bigdemo/icons/tog1.bmp +0 -0
 - data/samples/bigdemo/icons/tog1.xpm +38 -0
 - data/samples/bigdemo/icons/tog2.bmp +0 -0
 - data/samples/bigdemo/icons/tog2.xpm +38 -0
 - data/samples/bigdemo/icons/wxwin.ico +0 -0
 - data/samples/bigdemo/icons/wxwin16x16.png +0 -0
 - data/samples/bigdemo/icons/wxwin16x16.xpm +25 -0
 - data/samples/bigdemo/icons/wxwin32x32.png +0 -0
 - data/samples/bigdemo/icons/wxwin48x48.png +0 -0
 - data/samples/bigdemo/run.rb +90 -0
 - data/samples/bigdemo/tips.txt +7 -0
 - data/samples/bigdemo/utils.rb +12 -0
 - data/samples/bigdemo/wxArtProvider.rbw +281 -0
 - data/samples/bigdemo/wxBitmapButton.rbw +65 -0
 - data/samples/bigdemo/wxButton.rbw +64 -0
 - data/samples/bigdemo/wxCalendarCtrl.rbw +60 -0
 - data/samples/bigdemo/wxCheckBox.rbw +50 -0
 - data/samples/bigdemo/wxCheckListBox.rbw +65 -0
 - data/samples/bigdemo/wxChoice.rbw +47 -0
 - data/samples/bigdemo/wxChoicebook.rbw +78 -0
 - data/samples/bigdemo/wxColourDialog.rbw +31 -0
 - data/samples/bigdemo/wxComboBox.rbw +77 -0
 - data/samples/bigdemo/wxCursor.rbw +136 -0
 - data/samples/bigdemo/wxDialog.rbw +74 -0
 - data/samples/bigdemo/wxDirDialog.rbw +29 -0
 - data/samples/bigdemo/wxDragImage.rbw +70 -0
 - data/samples/bigdemo/wxFileDialog.rbw +37 -0
 - data/samples/bigdemo/wxFileDialog_Save.rbw +35 -0
 - data/samples/bigdemo/wxFindReplaceDialog.rbw +82 -0
 - data/samples/bigdemo/wxFontDialog.rbw +173 -0
 - data/samples/bigdemo/wxFrame.rbw +53 -0
 - data/samples/bigdemo/wxGauge.rbw +71 -0
 - data/samples/bigdemo/wxGenericDirCtrl.rbw +74 -0
 - data/samples/bigdemo/wxGrid.rbw +66 -0
 - data/samples/bigdemo/wxHtmlHelpController.rbw +52 -0
 - data/samples/bigdemo/wxListBox.rbw +140 -0
 - data/samples/bigdemo/wxListCtrl_virtual.rbw +112 -0
 - data/samples/bigdemo/wxMDIWindows.rbw +50 -0
 - data/samples/bigdemo/wxMenu.rbw +236 -0
 - data/samples/bigdemo/wxMessageDialog.rbw +27 -0
 - data/samples/bigdemo/wxMiniFrame.rbw +70 -0
 - data/samples/bigdemo/wxMultipleChoiceDialog.rbw +32 -0
 - data/samples/bigdemo/wxNotebook.rbw +136 -0
 - data/samples/bigdemo/wxProgressDialog.rbw +43 -0
 - data/samples/bigdemo/wxRadioBox.rbw +72 -0
 - data/samples/bigdemo/wxRadioButton.rbw +125 -0
 - data/samples/bigdemo/wxSashWindow.rbw +141 -0
 - data/samples/bigdemo/wxScrolledMessageDialog.rbw +57 -0
 - data/samples/bigdemo/wxScrolledWindow.rbw +199 -0
 - data/samples/bigdemo/wxSingleChoiceDialog.rbw +33 -0
 - data/samples/bigdemo/wxSlider.rbw +42 -0
 - data/samples/bigdemo/wxSpinButton.rbw +50 -0
 - data/samples/bigdemo/wxSpinCtrl.rbw +51 -0
 - data/samples/bigdemo/wxSplitterWindow.rbw +63 -0
 - data/samples/bigdemo/wxStaticBitmap.rbw +51 -0
 - data/samples/bigdemo/wxStaticText.rbw +55 -0
 - data/samples/bigdemo/wxStatusBar.rbw +126 -0
 - data/samples/bigdemo/wxTextCtrl.rbw +149 -0
 - data/samples/bigdemo/wxTextEntryDialog.rbw +31 -0
 - data/samples/bigdemo/wxToggleButton.rbw +49 -0
 - data/samples/bigdemo/wxToolBar.rbw +131 -0
 - data/samples/bigdemo/wxTreeCtrl.rbw +191 -0
 - data/samples/calendar/calendar.rb +256 -0
 - data/samples/caret/caret.rb +282 -0
 - data/samples/caret/mondrian.xpm +44 -0
 - data/samples/controls/controls.rb +1136 -0
 - data/samples/controls/get_item_sample.rb +87 -0
 - data/samples/controls/icons/choice.xpm +27 -0
 - data/samples/controls/icons/combo.xpm +27 -0
 - data/samples/controls/icons/gauge.xpm +27 -0
 - data/samples/controls/icons/list.xpm +27 -0
 - data/samples/controls/icons/radio.xpm +27 -0
 - data/samples/controls/icons/stattext.xpm +24 -0
 - data/samples/controls/icons/text.xpm +27 -0
 - data/samples/controls/mondrian.ico +0 -0
 - data/samples/controls/mondrian.xpm +44 -0
 - data/samples/controls/test2.bmp +0 -0
 - data/samples/dialogs/dialogs.rb +797 -0
 - data/samples/dialogs/tips.txt +18 -0
 - data/samples/dragdrop/dragdrop.rb +177 -0
 - data/samples/drawing/graphics_drawing.rb +235 -0
 - data/samples/drawing/images.rb +37 -0
 - data/samples/drawing/paperclip.png +0 -0
 - data/samples/etc/activation.rb +102 -0
 - data/samples/etc/choice.rb +67 -0
 - data/samples/etc/miniframe.rb +79 -0
 - data/samples/etc/sash.rb +130 -0
 - data/samples/etc/scrollwin.rb +110 -0
 - data/samples/etc/system_settings.rb +252 -0
 - data/samples/etc/threaded.rb +72 -0
 - data/samples/etc/toolbar_sizer_additem.rb +55 -0
 - data/samples/etc/wizard.rb +74 -0
 - data/samples/event/event.rb +182 -0
 - data/samples/event/update_ui_event.rb +70 -0
 - data/samples/grid/grid.rb +198 -0
 - data/samples/grid/gridtablebase.rb +148 -0
 - data/samples/html/html.rb +262 -0
 - data/samples/listbook/listbook.rb +174 -0
 - data/samples/listbook/listbook.xrc +370 -0
 - data/samples/mdi/mdi.rb +85 -0
 - data/samples/media/mediactrl.rb +167 -0
 - data/samples/minimal/minimal.rb +77 -0
 - data/samples/minimal/mondrian.ico +0 -0
 - data/samples/minimal/mondrian.png +0 -0
 - data/samples/minimal/nothing.rb +16 -0
 - data/samples/opengl/cube.rb +117 -0
 - data/samples/printing/mondrian.ico +0 -0
 - data/samples/printing/mondrian.xpm +44 -0
 - data/samples/printing/printing.rb +487 -0
 - data/samples/sockets/SocketPackets.rb +27 -0
 - data/samples/sockets/res/message-new.png +0 -0
 - data/samples/sockets/res/user.png +0 -0
 - data/samples/sockets/wxClient.rb +395 -0
 - data/samples/sockets/wxServer.rb +422 -0
 - data/samples/sockets/wxSocketGUI.rb +97 -0
 - data/samples/text/format-text-bold.png +0 -0
 - data/samples/text/format-text-italic.png +0 -0
 - data/samples/text/format-text-underline.png +0 -0
 - data/samples/text/mondrian.ico +0 -0
 - data/samples/text/mondrian.xpm +44 -0
 - data/samples/text/rich_textctrl.rb +98 -0
 - data/samples/text/scintilla.rb +169 -0
 - data/samples/text/textctrl.rb +111 -0
 - data/samples/text/unicode.rb +242 -0
 - data/samples/text/utf8.txt +15 -0
 - data/samples/treectrl/icon1.xpm +79 -0
 - data/samples/treectrl/icon2.xpm +53 -0
 - data/samples/treectrl/icon3.xpm +79 -0
 - data/samples/treectrl/icon4.xpm +43 -0
 - data/samples/treectrl/icon5.xpm +79 -0
 - data/samples/treectrl/treectrl.rb +1166 -0
 - data/samples/xrc/samples.xrc +46 -0
 - data/samples/xrc/xrc_sample.rb +76 -0
 - metadata +234 -220
 
| 
         @@ -0,0 +1,558 @@ 
     | 
|
| 
      
 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 
     | 
    
         
            +
            # A window whose colour changes according to current user settings
         
     | 
| 
      
 109 
     | 
    
         
            +
            Wx::define_keyword_ctors('Panel') do
         
     | 
| 
      
 110 
     | 
    
         
            +
              wx_ctor_params :id, :pos, :size, :style => Wx::TAB_TRAVERSAL
         
     | 
| 
      
 111 
     | 
    
         
            +
              wx_ctor_params :name => 'panel'
         
     | 
| 
      
 112 
     | 
    
         
            +
            end
         
     | 
| 
      
 113 
     | 
    
         
            +
             
     | 
| 
      
 114 
     | 
    
         
            +
            # wxScrolledWindow 	Window with automatically managed scrollbars
         
     | 
| 
      
 115 
     | 
    
         
            +
            Wx::define_keyword_ctors('ScrolledWindow') do
         
     | 
| 
      
 116 
     | 
    
         
            +
              wx_ctor_params :id, :pos, :size, :style => Wx::VSCROLL|Wx::HSCROLL
         
     | 
| 
      
 117 
     | 
    
         
            +
              wx_ctor_params :name => 'scrolledWindow'
         
     | 
| 
      
 118 
     | 
    
         
            +
            end
         
     | 
| 
      
 119 
     | 
    
         
            +
             
     | 
| 
      
 120 
     | 
    
         
            +
            # wxGrid 	A grid (table) window
         
     | 
| 
      
 121 
     | 
    
         
            +
            Wx::define_keyword_ctors('Grid') do
         
     | 
| 
      
 122 
     | 
    
         
            +
              wx_ctor_params :id, :pos, :size, :style => Wx::WANTS_CHARS
         
     | 
| 
      
 123 
     | 
    
         
            +
              wx_ctor_params :name => 'grid'
         
     | 
| 
      
 124 
     | 
    
         
            +
            end
         
     | 
| 
      
 125 
     | 
    
         
            +
             
     | 
| 
      
 126 
     | 
    
         
            +
            # Window which can be split vertically or horizontally
         
     | 
| 
      
 127 
     | 
    
         
            +
            Wx::define_keyword_ctors('SplitterWindow') do
         
     | 
| 
      
 128 
     | 
    
         
            +
              wx_ctor_params :id, :pos, :size, :style => Wx::SP_3D
         
     | 
| 
      
 129 
     | 
    
         
            +
              wx_ctor_params :name => 'splitterWindow'
         
     | 
| 
      
 130 
     | 
    
         
            +
            end
         
     | 
| 
      
 131 
     | 
    
         
            +
             
     | 
| 
      
 132 
     | 
    
         
            +
            # Implements the status bar on a frame
         
     | 
| 
      
 133 
     | 
    
         
            +
            Wx::define_keyword_ctors('StatusBar') do
         
     | 
| 
      
 134 
     | 
    
         
            +
              wx_ctor_params :id, :style => Wx::ST_SIZEGRIP
         
     | 
| 
      
 135 
     | 
    
         
            +
              wx_ctor_params :name => 'statusBar'
         
     | 
| 
      
 136 
     | 
    
         
            +
            end
         
     | 
| 
      
 137 
     | 
    
         
            +
             
     | 
| 
      
 138 
     | 
    
         
            +
            # Toolbar class
         
     | 
| 
      
 139 
     | 
    
         
            +
            Wx::define_keyword_ctors('ToolBar') do
         
     | 
| 
      
 140 
     | 
    
         
            +
              wx_ctor_params :id, :pos, :size, :style => Wx::TB_HORIZONTAL|Wx::NO_BORDER
         
     | 
| 
      
 141 
     | 
    
         
            +
              wx_ctor_params :name => 'toolBar' # not as documented in Wx 2.6.3
         
     | 
| 
      
 142 
     | 
    
         
            +
            end
         
     | 
| 
      
 143 
     | 
    
         
            +
             
     | 
| 
      
 144 
     | 
    
         
            +
            # ToolBarTool class
         
     | 
| 
      
 145 
     | 
    
         
            +
            Wx::define_keyword_ctors('ToolBarTool') do
         
     | 
| 
      
 146 
     | 
    
         
            +
              # By default we want Wx to generate an id for us, thus it doesn't
         
     | 
| 
      
 147 
     | 
    
         
            +
              # respect the wxWidgets default constructor value which is
         
     | 
| 
      
 148 
     | 
    
         
            +
              # ID_SEPARATOR
         
     | 
| 
      
 149 
     | 
    
         
            +
              wx_ctor_params :id => Wx::ID_ANY
         
     | 
| 
      
 150 
     | 
    
         
            +
              wx_ctor_params :label => ''
         
     | 
| 
      
 151 
     | 
    
         
            +
              wx_ctor_params :bitmap
         
     | 
| 
      
 152 
     | 
    
         
            +
              wx_ctor_params :disabled_bitmap => Wx::NULL_BITMAP
         
     | 
| 
      
 153 
     | 
    
         
            +
              wx_ctor_params :kind => Wx::ITEM_NORMAL
         
     | 
| 
      
 154 
     | 
    
         
            +
              wx_ctor_params :data => nil
         
     | 
| 
      
 155 
     | 
    
         
            +
              wx_ctor_params :short_help => ''
         
     | 
| 
      
 156 
     | 
    
         
            +
              wx_ctor_params :long_help => ''
         
     | 
| 
      
 157 
     | 
    
         
            +
            end
         
     | 
| 
      
 158 
     | 
    
         
            +
             
     | 
| 
      
 159 
     | 
    
         
            +
            # Similar to notebook but using choice control
         
     | 
| 
      
 160 
     | 
    
         
            +
            Wx::define_keyword_ctors('Choicebook') do
         
     | 
| 
      
 161 
     | 
    
         
            +
              wx_ctor_params :id, :pos, :size, :style, :name => 'choiceBook'
         
     | 
| 
      
 162 
     | 
    
         
            +
            end
         
     | 
| 
      
 163 
     | 
    
         
            +
             
     | 
| 
      
 164 
     | 
    
         
            +
            # Notebook class
         
     | 
| 
      
 165 
     | 
    
         
            +
            Wx::define_keyword_ctors('Notebook') do
         
     | 
| 
      
 166 
     | 
    
         
            +
              wx_ctor_params :id, :pos, :size, :style, :name => 'noteBook' 
         
     | 
| 
      
 167 
     | 
    
         
            +
            end
         
     | 
| 
      
 168 
     | 
    
         
            +
             
     | 
| 
      
 169 
     | 
    
         
            +
            # Similar to notebook but using list control
         
     | 
| 
      
 170 
     | 
    
         
            +
            Wx::define_keyword_ctors('Listbook') do
         
     | 
| 
      
 171 
     | 
    
         
            +
              wx_ctor_params :id, :pos, :size, :style, :name => 'listBook'
         
     | 
| 
      
 172 
     | 
    
         
            +
            end
         
     | 
| 
      
 173 
     | 
    
         
            +
             
     | 
| 
      
 174 
     | 
    
         
            +
            # Similar to notebook but using toolbar
         
     | 
| 
      
 175 
     | 
    
         
            +
            Wx::define_keyword_ctors('Toolbook') do
         
     | 
| 
      
 176 
     | 
    
         
            +
              wx_ctor_params :id, :pos, :size, :style, :name => 'toolBook'
         
     | 
| 
      
 177 
     | 
    
         
            +
            end
         
     | 
| 
      
 178 
     | 
    
         
            +
             
     | 
| 
      
 179 
     | 
    
         
            +
            # Similar to notebook but using tree control
         
     | 
| 
      
 180 
     | 
    
         
            +
            Wx::define_keyword_ctors('Treebook') do
         
     | 
| 
      
 181 
     | 
    
         
            +
              wx_ctor_params :id, :pos, :size, :style, :name => 'treeBook'
         
     | 
| 
      
 182 
     | 
    
         
            +
            end
         
     | 
| 
      
 183 
     | 
    
         
            +
             
     | 
| 
      
 184 
     | 
    
         
            +
            # wxSashWindow:	Window with four optional sashes that can be dragged
         
     | 
| 
      
 185 
     | 
    
         
            +
            Wx::define_keyword_ctors('SashWindow') do
         
     | 
| 
      
 186 
     | 
    
         
            +
              wx_ctor_params :id, :pos, :size
         
     | 
| 
      
 187 
     | 
    
         
            +
              wx_ctor_params :style =>  Wx::CLIP_CHILDREN|Wx::SW_3D
         
     | 
| 
      
 188 
     | 
    
         
            +
              wx_ctor_params :name => 'sashWindow'
         
     | 
| 
      
 189 
     | 
    
         
            +
            end
         
     | 
| 
      
 190 
     | 
    
         
            +
             
     | 
| 
      
 191 
     | 
    
         
            +
            # wxSashLayoutWindow: Window that can be involved in an IDE-like layout
         
     | 
| 
      
 192 
     | 
    
         
            +
            # arrangement
         
     | 
| 
      
 193 
     | 
    
         
            +
            Wx::define_keyword_ctors('SashLayoutWindow') do
         
     | 
| 
      
 194 
     | 
    
         
            +
              wx_ctor_params :id, :pos, :size
         
     | 
| 
      
 195 
     | 
    
         
            +
              wx_ctor_params :style =>  Wx::CLIP_CHILDREN|Wx::SW_3D
         
     | 
| 
      
 196 
     | 
    
         
            +
              wx_ctor_params :name => 'layoutWindow'
         
     | 
| 
      
 197 
     | 
    
         
            +
            end
         
     | 
| 
      
 198 
     | 
    
         
            +
             
     | 
| 
      
 199 
     | 
    
         
            +
            # wxVScrolledWindow: As wxScrolledWindow but supports lines of variable height
         
     | 
| 
      
 200 
     | 
    
         
            +
             
     | 
| 
      
 201 
     | 
    
         
            +
            # wxWizardPage: A base class for the page in wizard dialog.
         
     | 
| 
      
 202 
     | 
    
         
            +
            Wx::define_keyword_ctors('WizardPage') do
         
     | 
| 
      
 203 
     | 
    
         
            +
              wx_ctor_params :bitmap => Wx::NULL_BITMAP
         
     | 
| 
      
 204 
     | 
    
         
            +
            end
         
     | 
| 
      
 205 
     | 
    
         
            +
             
     | 
| 
      
 206 
     | 
    
         
            +
            # wxWizardPageSimple: A page in wizard dialog.
         
     | 
| 
      
 207 
     | 
    
         
            +
            Wx::define_keyword_ctors('WizardPageSimple') do
         
     | 
| 
      
 208 
     | 
    
         
            +
              wx_ctor_params :prev => nil
         
     | 
| 
      
 209 
     | 
    
         
            +
              wx_ctor_params :next => nil
         
     | 
| 
      
 210 
     | 
    
         
            +
              wx_ctor_params :bitmap => Wx::NULL_BITMAP
         
     | 
| 
      
 211 
     | 
    
         
            +
            end
         
     | 
| 
      
 212 
     | 
    
         
            +
             
     | 
| 
      
 213 
     | 
    
         
            +
            ### DIALOGS
         
     | 
| 
      
 214 
     | 
    
         
            +
            # wxDialog 	Base class for common dialogs
         
     | 
| 
      
 215 
     | 
    
         
            +
            Wx::define_keyword_ctors('Dialog') do
         
     | 
| 
      
 216 
     | 
    
         
            +
              wx_ctor_params :id, :title => ''
         
     | 
| 
      
 217 
     | 
    
         
            +
              wx_ctor_params :pos, :size, :style => Wx::DEFAULT_DIALOG_STYLE
         
     | 
| 
      
 218 
     | 
    
         
            +
              wx_ctor_params :name => 'dialogBox'
         
     | 
| 
      
 219 
     | 
    
         
            +
            end
         
     | 
| 
      
 220 
     | 
    
         
            +
             
     | 
| 
      
 221 
     | 
    
         
            +
            # wxColourDialog 	Colour chooser dialog
         
     | 
| 
      
 222 
     | 
    
         
            +
            Wx::define_keyword_ctors('ColourDialog') do
         
     | 
| 
      
 223 
     | 
    
         
            +
              wx_ctor_params :colour_data => nil
         
     | 
| 
      
 224 
     | 
    
         
            +
            end
         
     | 
| 
      
 225 
     | 
    
         
            +
             
     | 
| 
      
 226 
     | 
    
         
            +
            # wxDirDialog 	Directory selector dialog
         
     | 
| 
      
 227 
     | 
    
         
            +
            Wx::define_keyword_ctors('DirDialog') do
         
     | 
| 
      
 228 
     | 
    
         
            +
              wx_ctor_params :message => 'Choose a directory'
         
     | 
| 
      
 229 
     | 
    
         
            +
              wx_ctor_params :default_path => ''
         
     | 
| 
      
 230 
     | 
    
         
            +
              wx_ctor_params :style, :pos, :size, :name => 'wxDirCtrl'
         
     | 
| 
      
 231 
     | 
    
         
            +
            end
         
     | 
| 
      
 232 
     | 
    
         
            +
             
     | 
| 
      
 233 
     | 
    
         
            +
            # wxFileDialog 	File selector dialog
         
     | 
| 
      
 234 
     | 
    
         
            +
            Wx::define_keyword_ctors('FileDialog') do
         
     | 
| 
      
 235 
     | 
    
         
            +
              wx_ctor_params :message => 'Choose a file'
         
     | 
| 
      
 236 
     | 
    
         
            +
              wx_ctor_params :default_dir  => ''
         
     | 
| 
      
 237 
     | 
    
         
            +
              wx_ctor_params :default_file => ''
         
     | 
| 
      
 238 
     | 
    
         
            +
              wx_ctor_params :wildcard => '*.*'
         
     | 
| 
      
 239 
     | 
    
         
            +
              wx_ctor_params :style, :pos
         
     | 
| 
      
 240 
     | 
    
         
            +
            end
         
     | 
| 
      
 241 
     | 
    
         
            +
             
     | 
| 
      
 242 
     | 
    
         
            +
            # wxFindReplaceDialog 	Text search/replace dialog
         
     | 
| 
      
 243 
     | 
    
         
            +
            Wx::define_keyword_ctors('FindReplaceDialog') do
         
     | 
| 
      
 244 
     | 
    
         
            +
              wx_ctor_params :find_replace_data => Wx::FindReplaceData.new()
         
     | 
| 
      
 245 
     | 
    
         
            +
              wx_ctor_params :title => 'findReplaceDialog'
         
     | 
| 
      
 246 
     | 
    
         
            +
              wx_ctor_params :style
         
     | 
| 
      
 247 
     | 
    
         
            +
            end
         
     | 
| 
      
 248 
     | 
    
         
            +
             
     | 
| 
      
 249 
     | 
    
         
            +
            # wxMultiChoiceDialog 	Dialog to get one or more selections from a list
         
     | 
| 
      
 250 
     | 
    
         
            +
            # wxSingleChoiceDialog 	Dialog to get a single selection from a list and return the string
         
     | 
| 
      
 251 
     | 
    
         
            +
             
     | 
| 
      
 252 
     | 
    
         
            +
            # Dialog to get a single line of text from the user
         
     | 
| 
      
 253 
     | 
    
         
            +
            Wx::define_keyword_ctors('TextEntryDialog') do
         
     | 
| 
      
 254 
     | 
    
         
            +
              wx_ctor_params :message => ''
         
     | 
| 
      
 255 
     | 
    
         
            +
              wx_ctor_params :caption => 'Please enter text'
         
     | 
| 
      
 256 
     | 
    
         
            +
              wx_ctor_params :default_value => ''
         
     | 
| 
      
 257 
     | 
    
         
            +
              wx_ctor_params :style => Wx::OK|Wx::CANCEL|Wx::CENTRE
         
     | 
| 
      
 258 
     | 
    
         
            +
              wx_ctor_params :pos
         
     | 
| 
      
 259 
     | 
    
         
            +
            end
         
     | 
| 
      
 260 
     | 
    
         
            +
             
     | 
| 
      
 261 
     | 
    
         
            +
            # wxPasswordEntryDialog 	Dialog to get a password from the user
         
     | 
| 
      
 262 
     | 
    
         
            +
            # Wx::define_keyword_ctors('PasswordEntryDialog') do
         
     | 
| 
      
 263 
     | 
    
         
            +
            #   wx_ctor_params :message => ''
         
     | 
| 
      
 264 
     | 
    
         
            +
            #   wx_ctor_params :caption => 'Enter password'
         
     | 
| 
      
 265 
     | 
    
         
            +
            #   wx_ctor_params :default_value => ''
         
     | 
| 
      
 266 
     | 
    
         
            +
            #   wx_ctor_params :style => Wx::OK|Wx::CANCEL|Wx::CENTRE
         
     | 
| 
      
 267 
     | 
    
         
            +
            #   wx_ctor_params :pos
         
     | 
| 
      
 268 
     | 
    
         
            +
            # end
         
     | 
| 
      
 269 
     | 
    
         
            +
             
     | 
| 
      
 270 
     | 
    
         
            +
            # wxFontDialog 	Font chooser dialog
         
     | 
| 
      
 271 
     | 
    
         
            +
            # wxPageSetupDialog 	Standard page setup dialog
         
     | 
| 
      
 272 
     | 
    
         
            +
            Wx::define_keyword_ctors('PageSetupDialog') do
         
     | 
| 
      
 273 
     | 
    
         
            +
              wx_ctor_params :data
         
     | 
| 
      
 274 
     | 
    
         
            +
            end
         
     | 
| 
      
 275 
     | 
    
         
            +
             
     | 
| 
      
 276 
     | 
    
         
            +
            # wxPrintDialog 	Standard print dialog
         
     | 
| 
      
 277 
     | 
    
         
            +
            Wx::define_keyword_ctors('PrintDialog') do
         
     | 
| 
      
 278 
     | 
    
         
            +
              wx_ctor_params :data
         
     | 
| 
      
 279 
     | 
    
         
            +
            end
         
     | 
| 
      
 280 
     | 
    
         
            +
             
     | 
| 
      
 281 
     | 
    
         
            +
            # Simple message box dialog
         
     | 
| 
      
 282 
     | 
    
         
            +
            Wx::define_keyword_ctors('MessageDialog') do
         
     | 
| 
      
 283 
     | 
    
         
            +
              wx_ctor_params :message => ''
         
     | 
| 
      
 284 
     | 
    
         
            +
              wx_ctor_params :caption => 'Message box'
         
     | 
| 
      
 285 
     | 
    
         
            +
              wx_ctor_params :style => Wx::OK|Wx::CANCEL
         
     | 
| 
      
 286 
     | 
    
         
            +
              wx_ctor_params :pos
         
     | 
| 
      
 287 
     | 
    
         
            +
            end
         
     | 
| 
      
 288 
     | 
    
         
            +
             
     | 
| 
      
 289 
     | 
    
         
            +
            # Property editing dialog
         
     | 
| 
      
 290 
     | 
    
         
            +
            Wx::define_keyword_ctors('PropertySheetDialog') do
         
     | 
| 
      
 291 
     | 
    
         
            +
              wx_ctor_params :id, :title
         
     | 
| 
      
 292 
     | 
    
         
            +
              wx_ctor_params :pos, :size, :style => Wx::DEFAULT_DIALOG_STYLE
         
     | 
| 
      
 293 
     | 
    
         
            +
              wx_ctor_params :name => 'propertySheetDialog'
         
     | 
| 
      
 294 
     | 
    
         
            +
            end
         
     | 
| 
      
 295 
     | 
    
         
            +
             
     | 
| 
      
 296 
     | 
    
         
            +
            ### CONTROLS
         
     | 
| 
      
 297 
     | 
    
         
            +
             
     | 
| 
      
 298 
     | 
    
         
            +
            # Push button control, displaying text
         
     | 
| 
      
 299 
     | 
    
         
            +
            Wx::define_keyword_ctors('Button') do
         
     | 
| 
      
 300 
     | 
    
         
            +
              wx_ctor_params :id, :label => ''
         
     | 
| 
      
 301 
     | 
    
         
            +
              wx_ctor_params :pos, :size, :style
         
     | 
| 
      
 302 
     | 
    
         
            +
              wx_ctor_params :validator, :name => 'button'
         
     | 
| 
      
 303 
     | 
    
         
            +
            end
         
     | 
| 
      
 304 
     | 
    
         
            +
             
     | 
| 
      
 305 
     | 
    
         
            +
            # Push button control, displaying a bitmap
         
     | 
| 
      
 306 
     | 
    
         
            +
            Wx::define_keyword_ctors('BitmapButton') do
         
     | 
| 
      
 307 
     | 
    
         
            +
              wx_ctor_params :id, :bitmap, :pos, :size, :style => Wx::BU_AUTODRAW
         
     | 
| 
      
 308 
     | 
    
         
            +
              wx_ctor_params :validator, :name => 'button'
         
     | 
| 
      
 309 
     | 
    
         
            +
            end
         
     | 
| 
      
 310 
     | 
    
         
            +
             
     | 
| 
      
 311 
     | 
    
         
            +
            # A button which stays pressed when clicked by user.
         
     | 
| 
      
 312 
     | 
    
         
            +
            Wx::define_keyword_ctors('ToggleButton') do
         
     | 
| 
      
 313 
     | 
    
         
            +
              wx_ctor_params :id, :label, :pos, :size, :style
         
     | 
| 
      
 314 
     | 
    
         
            +
              wx_ctor_params :validator, :name => 'checkBox'
         
     | 
| 
      
 315 
     | 
    
         
            +
            end
         
     | 
| 
      
 316 
     | 
    
         
            +
             
     | 
| 
      
 317 
     | 
    
         
            +
            # Control showing an entire calendar month
         
     | 
| 
      
 318 
     | 
    
         
            +
            Wx::define_keyword_ctors('CalendarCtrl') do
         
     | 
| 
      
 319 
     | 
    
         
            +
              wx_ctor_params :id, :date => Time.now()
         
     | 
| 
      
 320 
     | 
    
         
            +
              wx_ctor_params :pos, :size, :style => Wx::CAL_SHOW_HOLIDAYS
         
     | 
| 
      
 321 
     | 
    
         
            +
              wx_ctor_params :name => 'calendar'
         
     | 
| 
      
 322 
     | 
    
         
            +
            end
         
     | 
| 
      
 323 
     | 
    
         
            +
             
     | 
| 
      
 324 
     | 
    
         
            +
            # 	Checkbox control
         
     | 
| 
      
 325 
     | 
    
         
            +
            Wx::define_keyword_ctors('CheckBox') do
         
     | 
| 
      
 326 
     | 
    
         
            +
              wx_ctor_params :id, :label => ''
         
     | 
| 
      
 327 
     | 
    
         
            +
              wx_ctor_params :pos, :size, :style
         
     | 
| 
      
 328 
     | 
    
         
            +
              wx_ctor_params :validator, :name => 'checkBox'
         
     | 
| 
      
 329 
     | 
    
         
            +
            end
         
     | 
| 
      
 330 
     | 
    
         
            +
             
     | 
| 
      
 331 
     | 
    
         
            +
            # A listbox with a checkbox to the left of each item
         
     | 
| 
      
 332 
     | 
    
         
            +
            Wx::define_keyword_ctors('CheckListBox') do 	
         
     | 
| 
      
 333 
     | 
    
         
            +
              wx_ctor_params :id, :pos, :size, :choices, :style
         
     | 
| 
      
 334 
     | 
    
         
            +
              wx_ctor_params :validator, :name => 'listBox'
         
     | 
| 
      
 335 
     | 
    
         
            +
            end
         
     | 
| 
      
 336 
     | 
    
         
            +
             
     | 
| 
      
 337 
     | 
    
         
            +
            # wxChoice 	Choice control (a combobox without the editable area)
         
     | 
| 
      
 338 
     | 
    
         
            +
            Wx::define_keyword_ctors('Choice') do
         
     | 
| 
      
 339 
     | 
    
         
            +
              wx_ctor_params :id, :pos, :size, :choices, :style
         
     | 
| 
      
 340 
     | 
    
         
            +
              wx_ctor_params :validator, :name => 'choice'
         
     | 
| 
      
 341 
     | 
    
         
            +
            end
         
     | 
| 
      
 342 
     | 
    
         
            +
             
     | 
| 
      
 343 
     | 
    
         
            +
            # wxComboBox 	A choice with an editable area
         
     | 
| 
      
 344 
     | 
    
         
            +
            Wx::define_keyword_ctors('ComboBox') do
         
     | 
| 
      
 345 
     | 
    
         
            +
              wx_ctor_params :id, :value => ''
         
     | 
| 
      
 346 
     | 
    
         
            +
              wx_ctor_params :pos, :size, :choices => []
         
     | 
| 
      
 347 
     | 
    
         
            +
              wx_ctor_params :style 
         
     | 
| 
      
 348 
     | 
    
         
            +
              wx_ctor_params :validator, :name => 'comboBox'
         
     | 
| 
      
 349 
     | 
    
         
            +
            end
         
     | 
| 
      
 350 
     | 
    
         
            +
             
     | 
| 
      
 351 
     | 
    
         
            +
            # wxBitmapComboBox 	A choice with an editable area
         
     | 
| 
      
 352 
     | 
    
         
            +
            Wx::define_keyword_ctors('BitmapComboBox') do
         
     | 
| 
      
 353 
     | 
    
         
            +
              wx_ctor_params :id, :value => ''
         
     | 
| 
      
 354 
     | 
    
         
            +
              wx_ctor_params :pos, :size, :choices => []
         
     | 
| 
      
 355 
     | 
    
         
            +
              wx_ctor_params :style 
         
     | 
| 
      
 356 
     | 
    
         
            +
              wx_ctor_params :validator, :name => 'comboBox'
         
     | 
| 
      
 357 
     | 
    
         
            +
            end
         
     | 
| 
      
 358 
     | 
    
         
            +
             
     | 
| 
      
 359 
     | 
    
         
            +
            # wxDatePickerCtrl 	Small date picker control
         
     | 
| 
      
 360 
     | 
    
         
            +
             
     | 
| 
      
 361 
     | 
    
         
            +
            # wxGauge 	A control to represent a varying quantity, such as time
         
     | 
| 
      
 362 
     | 
    
         
            +
            # remaining
         
     | 
| 
      
 363 
     | 
    
         
            +
            Wx::define_keyword_ctors('Gauge') do
         
     | 
| 
      
 364 
     | 
    
         
            +
              wx_ctor_params :id, :range, :pos, :size, :style => Wx::GA_HORIZONTAL
         
     | 
| 
      
 365 
     | 
    
         
            +
              wx_ctor_params :validator, :name => 'gauge'
         
     | 
| 
      
 366 
     | 
    
         
            +
            end
         
     | 
| 
      
 367 
     | 
    
         
            +
             
     | 
| 
      
 368 
     | 
    
         
            +
            # wxGenericDirCtrl 	A control for displaying a directory tree
         
     | 
| 
      
 369 
     | 
    
         
            +
            Wx::define_keyword_ctors('GenericDirCtrl') do
         
     | 
| 
      
 370 
     | 
    
         
            +
              # TODO :dir => Wx::DIR_DIALOG_DEFAULT_FOLDER_STR
         
     | 
| 
      
 371 
     | 
    
         
            +
              wx_ctor_params :id, :dir => '' 
         
     | 
| 
      
 372 
     | 
    
         
            +
              wx_ctor_params :pos, :size, 
         
     | 
| 
      
 373 
     | 
    
         
            +
                             :style => Wx::DIRCTRL_3D_INTERNAL|Wx::SUNKEN_BORDER
         
     | 
| 
      
 374 
     | 
    
         
            +
              wx_ctor_params :filter => ''
         
     | 
| 
      
 375 
     | 
    
         
            +
              wx_ctor_params :default_filter => 0
         
     | 
| 
      
 376 
     | 
    
         
            +
              wx_ctor_params :name => 'genericDirCtrl'
         
     | 
| 
      
 377 
     | 
    
         
            +
            end
         
     | 
| 
      
 378 
     | 
    
         
            +
             
     | 
| 
      
 379 
     | 
    
         
            +
             
     | 
| 
      
 380 
     | 
    
         
            +
            # wxHtmlListBox 	A listbox showing HTML content
         
     | 
| 
      
 381 
     | 
    
         
            +
            # wxListBox 	A list of strings for single or multiple selection
         
     | 
| 
      
 382 
     | 
    
         
            +
            Wx::define_keyword_ctors('ListBox') do
         
     | 
| 
      
 383 
     | 
    
         
            +
              wx_ctor_params :id, :pos, :size, :choices => []
         
     | 
| 
      
 384 
     | 
    
         
            +
              wx_ctor_params :style
         
     | 
| 
      
 385 
     | 
    
         
            +
              wx_ctor_params :validator, :name => 'listBox'
         
     | 
| 
      
 386 
     | 
    
         
            +
            end
         
     | 
| 
      
 387 
     | 
    
         
            +
             
     | 
| 
      
 388 
     | 
    
         
            +
            # wxListCtrl 	A control for displaying lists of strings and/or icons, plus a multicolumn report view
         
     | 
| 
      
 389 
     | 
    
         
            +
            Wx::define_keyword_ctors('ListCtrl') do
         
     | 
| 
      
 390 
     | 
    
         
            +
              wx_ctor_params :id, :pos, :size, :style => Wx::LC_ICON
         
     | 
| 
      
 391 
     | 
    
         
            +
              wx_ctor_params :validator, :name => 'listCtrl'
         
     | 
| 
      
 392 
     | 
    
         
            +
            end
         
     | 
| 
      
 393 
     | 
    
         
            +
             
     | 
| 
      
 394 
     | 
    
         
            +
            # wxListView 	A simpler interface (facade for wxListCtrl in report mode
         
     | 
| 
      
 395 
     | 
    
         
            +
             
     | 
| 
      
 396 
     | 
    
         
            +
            # wxTreeCtrl 	Tree (hierarchy) control
         
     | 
| 
      
 397 
     | 
    
         
            +
            Wx::define_keyword_ctors('TreeCtrl') do
         
     | 
| 
      
 398 
     | 
    
         
            +
              wx_ctor_params :id, :pos, :size, :style => Wx::TR_HAS_BUTTONS
         
     | 
| 
      
 399 
     | 
    
         
            +
              wx_ctor_params :validator, :name => 'treeCtrl'
         
     | 
| 
      
 400 
     | 
    
         
            +
            end
         
     | 
| 
      
 401 
     | 
    
         
            +
             
     | 
| 
      
 402 
     | 
    
         
            +
            # wxSpinCtrl 	A spin control - i.e. spin button and text control
         
     | 
| 
      
 403 
     | 
    
         
            +
            Wx::define_keyword_ctors('SpinCtrl') do
         
     | 
| 
      
 404 
     | 
    
         
            +
              wx_ctor_params :id, :value => ''
         
     | 
| 
      
 405 
     | 
    
         
            +
              wx_ctor_params :pos, :size, :style => Wx::SP_ARROW_KEYS
         
     | 
| 
      
 406 
     | 
    
         
            +
              wx_ctor_params :min => 0
         
     | 
| 
      
 407 
     | 
    
         
            +
              wx_ctor_params :max => 100
         
     | 
| 
      
 408 
     | 
    
         
            +
              wx_ctor_params :initial => 0
         
     | 
| 
      
 409 
     | 
    
         
            +
              wx_ctor_params :name => 'spinCtrl'
         
     | 
| 
      
 410 
     | 
    
         
            +
            end
         
     | 
| 
      
 411 
     | 
    
         
            +
             
     | 
| 
      
 412 
     | 
    
         
            +
            # One or more lines of non-editable text
         
     | 
| 
      
 413 
     | 
    
         
            +
            Wx::define_keyword_ctors('StaticText') do
         
     | 
| 
      
 414 
     | 
    
         
            +
              wx_ctor_params :id, :label, :pos, :size, :style, :name => 'staticText'
         
     | 
| 
      
 415 
     | 
    
         
            +
            end
         
     | 
| 
      
 416 
     | 
    
         
            +
             
     | 
| 
      
 417 
     | 
    
         
            +
            Wx::define_keyword_ctors('StaticBox') do
         
     | 
| 
      
 418 
     | 
    
         
            +
              wx_ctor_params :id, :label, :pos, :size, :style, :name => 'staticBox'
         
     | 
| 
      
 419 
     | 
    
         
            +
            end
         
     | 
| 
      
 420 
     | 
    
         
            +
             
     | 
| 
      
 421 
     | 
    
         
            +
            Wx::define_keyword_ctors('StaticLine') do
         
     | 
| 
      
 422 
     | 
    
         
            +
              wx_ctor_params :id, :pos, :size, :style => Wx::LI_HORIZONTAL
         
     | 
| 
      
 423 
     | 
    
         
            +
              wx_ctor_params :name => 'staticBox'
         
     | 
| 
      
 424 
     | 
    
         
            +
            end
         
     | 
| 
      
 425 
     | 
    
         
            +
             
     | 
| 
      
 426 
     | 
    
         
            +
            # wxStaticBitmap 	A control to display a bitmap
         
     | 
| 
      
 427 
     | 
    
         
            +
            Wx::define_keyword_ctors('StaticBitmap') do
         
     | 
| 
      
 428 
     | 
    
         
            +
              wx_ctor_params :id, :label, :pos, :size, :style
         
     | 
| 
      
 429 
     | 
    
         
            +
            end
         
     | 
| 
      
 430 
     | 
    
         
            +
             
     | 
| 
      
 431 
     | 
    
         
            +
             
     | 
| 
      
 432 
     | 
    
         
            +
            # wxRadioBox 	A group of radio buttons
         
     | 
| 
      
 433 
     | 
    
         
            +
            Wx::define_keyword_ctors('RadioBox') do
         
     | 
| 
      
 434 
     | 
    
         
            +
              wx_ctor_params :id, :label => ''
         
     | 
| 
      
 435 
     | 
    
         
            +
              wx_ctor_params :pos, :size, :choices => []
         
     | 
| 
      
 436 
     | 
    
         
            +
              wx_ctor_params :major_dimension => 0
         
     | 
| 
      
 437 
     | 
    
         
            +
              wx_ctor_params :style => Wx::RA_SPECIFY_COLS
         
     | 
| 
      
 438 
     | 
    
         
            +
              wx_ctor_params :validator, :name => 'radioBox'
         
     | 
| 
      
 439 
     | 
    
         
            +
            end
         
     | 
| 
      
 440 
     | 
    
         
            +
             
     | 
| 
      
 441 
     | 
    
         
            +
            # wxRadioButton: A round button used with others in a mutually exclusive way
         
     | 
| 
      
 442 
     | 
    
         
            +
            Wx::define_keyword_ctors('RadioButton') do
         
     | 
| 
      
 443 
     | 
    
         
            +
              wx_ctor_params :id, :label => ''
         
     | 
| 
      
 444 
     | 
    
         
            +
              wx_ctor_params :pos, :size, :style => 0
         
     | 
| 
      
 445 
     | 
    
         
            +
              wx_ctor_params :validator, :name => 'radioButton'
         
     | 
| 
      
 446 
     | 
    
         
            +
            end
         
     | 
| 
      
 447 
     | 
    
         
            +
             
     | 
| 
      
 448 
     | 
    
         
            +
            # wxSlider 	A slider that can be dragged by the user
         
     | 
| 
      
 449 
     | 
    
         
            +
            Wx::define_keyword_ctors('Slider') do
         
     | 
| 
      
 450 
     | 
    
         
            +
              wx_ctor_params :id, :value => 0
         
     | 
| 
      
 451 
     | 
    
         
            +
              wx_ctor_params :min_value, :max_value
         
     | 
| 
      
 452 
     | 
    
         
            +
              wx_ctor_params :pos, :size, :style => Wx::SL_HORIZONTAL
         
     | 
| 
      
 453 
     | 
    
         
            +
              wx_ctor_params :validator, :name => 'slider'
         
     | 
| 
      
 454 
     | 
    
         
            +
            end
         
     | 
| 
      
 455 
     | 
    
         
            +
             
     | 
| 
      
 456 
     | 
    
         
            +
            # wxSpinButton - Has two small up and down (or left and right) arrow buttons
         
     | 
| 
      
 457 
     | 
    
         
            +
            Wx::define_keyword_ctors('SpinButton') do
         
     | 
| 
      
 458 
     | 
    
         
            +
               wx_ctor_params :id, :pos, :size, :style => Wx::SP_HORIZONTAL
         
     | 
| 
      
 459 
     | 
    
         
            +
               wx_ctor_params :name => 'spinButton'
         
     | 
| 
      
 460 
     | 
    
         
            +
            end
         
     | 
| 
      
 461 
     | 
    
         
            +
             
     | 
| 
      
 462 
     | 
    
         
            +
            # wxScrollBar - standalone scrollbar with arrows and thumb 
         
     | 
| 
      
 463 
     | 
    
         
            +
            Wx::define_keyword_ctors('ScrollBar') do 
         
     | 
| 
      
 464 
     | 
    
         
            +
               wx_ctor_params :id, :pos, :size, :style => Wx::SB_HORIZONTAL
         
     | 
| 
      
 465 
     | 
    
         
            +
               wx_ctor_params :validator, :name => 'scrollBar'
         
     | 
| 
      
 466 
     | 
    
         
            +
            end
         
     | 
| 
      
 467 
     | 
    
         
            +
             
     | 
| 
      
 468 
     | 
    
         
            +
             
     | 
| 
      
 469 
     | 
    
         
            +
            # wxVListBox 	A listbox supporting variable height rows
         
     | 
| 
      
 470 
     | 
    
         
            +
             
     | 
| 
      
 471 
     | 
    
         
            +
            # wxTextCtrl 	Single or multiline text editing control
         
     | 
| 
      
 472 
     | 
    
         
            +
            Wx::define_keyword_ctors('TextCtrl') do
         
     | 
| 
      
 473 
     | 
    
         
            +
              wx_ctor_params :id, :value => ''
         
     | 
| 
      
 474 
     | 
    
         
            +
              wx_ctor_params :pos, :size, :style
         
     | 
| 
      
 475 
     | 
    
         
            +
              wx_ctor_params :validator, :name => 'textCtrl'
         
     | 
| 
      
 476 
     | 
    
         
            +
            end
         
     | 
| 
      
 477 
     | 
    
         
            +
             
     | 
| 
      
 478 
     | 
    
         
            +
            # wxHtmlWindow - Control for displaying HTML
         
     | 
| 
      
 479 
     | 
    
         
            +
            Wx::define_keyword_ctors('HtmlWindow') do
         
     | 
| 
      
 480 
     | 
    
         
            +
              wx_ctor_params :id, :pos, :size, :style => Wx::HW_DEFAULT_STYLE
         
     | 
| 
      
 481 
     | 
    
         
            +
              wx_ctor_params :name => 'htmlWindow'
         
     | 
| 
      
 482 
     | 
    
         
            +
            end
         
     | 
| 
      
 483 
     | 
    
         
            +
             
     | 
| 
      
 484 
     | 
    
         
            +
            # wxHyperTextCtrl - display a clickable URL
         
     | 
| 
      
 485 
     | 
    
         
            +
            Wx::define_keyword_ctors('HyperlinkCtrl') do
         
     | 
| 
      
 486 
     | 
    
         
            +
              wx_ctor_params :id, :label => ''
         
     | 
| 
      
 487 
     | 
    
         
            +
              wx_ctor_params :url => ''
         
     | 
| 
      
 488 
     | 
    
         
            +
              wx_ctor_params :pos, :size, :style => 0
         
     | 
| 
      
 489 
     | 
    
         
            +
              wx_ctor_params :name => 'hyperlink'
         
     | 
| 
      
 490 
     | 
    
         
            +
            end
         
     | 
| 
      
 491 
     | 
    
         
            +
             
     | 
| 
      
 492 
     | 
    
         
            +
            Wx::define_keyword_ctors('StyledTextCtrl') do
         
     | 
| 
      
 493 
     | 
    
         
            +
              wx_ctor_params :id, :pos, :size, :style => 0
         
     | 
| 
      
 494 
     | 
    
         
            +
              wx_ctor_params :name => 'styledTextCtrl'
         
     | 
| 
      
 495 
     | 
    
         
            +
            end
         
     | 
| 
      
 496 
     | 
    
         
            +
             
     | 
| 
      
 497 
     | 
    
         
            +
             
     | 
| 
      
 498 
     | 
    
         
            +
            Wx::define_keyword_ctors('CollapsiblePane') do
         
     | 
| 
      
 499 
     | 
    
         
            +
              wx_ctor_params :id, :label => ''
         
     | 
| 
      
 500 
     | 
    
         
            +
              wx_ctor_params :pos, :size, :style => 0
         
     | 
| 
      
 501 
     | 
    
         
            +
              wx_ctor_params :validator, :name => 'collapsiblePane'
         
     | 
| 
      
 502 
     | 
    
         
            +
            end
         
     | 
| 
      
 503 
     | 
    
         
            +
             
     | 
| 
      
 504 
     | 
    
         
            +
            Wx::define_keyword_ctors('MediaCtrl') do
         
     | 
| 
      
 505 
     | 
    
         
            +
              wx_ctor_params :id, :filename => ''
         
     | 
| 
      
 506 
     | 
    
         
            +
              wx_ctor_params :pos, :size, :style => 0
         
     | 
| 
      
 507 
     | 
    
         
            +
              wx_ctor_params :backend => ''
         
     | 
| 
      
 508 
     | 
    
         
            +
              wx_ctor_params :validator, :name => 'mediaCtrl'
         
     | 
| 
      
 509 
     | 
    
         
            +
            end
         
     | 
| 
      
 510 
     | 
    
         
            +
             
     | 
| 
      
 511 
     | 
    
         
            +
            Wx::define_keyword_ctors('SearchCtrl') do
         
     | 
| 
      
 512 
     | 
    
         
            +
              wx_ctor_params :id, :value => ''
         
     | 
| 
      
 513 
     | 
    
         
            +
              wx_ctor_params :pos, :size, :style => 0
         
     | 
| 
      
 514 
     | 
    
         
            +
              wx_ctor_params :validator, :name => 'searchCtrl'
         
     | 
| 
      
 515 
     | 
    
         
            +
            end
         
     | 
| 
      
 516 
     | 
    
         
            +
             
     | 
| 
      
 517 
     | 
    
         
            +
             
     | 
| 
      
 518 
     | 
    
         
            +
            Wx::define_keyword_ctors('AnimationCtrl') do
         
     | 
| 
      
 519 
     | 
    
         
            +
              wx_ctor_params :id, :anim
         
     | 
| 
      
 520 
     | 
    
         
            +
              wx_ctor_params :pos, :size, :style => Wx::AC_DEFAULT_STYLE
         
     | 
| 
      
 521 
     | 
    
         
            +
              wx_ctor_params :name => 'animationCtrl'
         
     | 
| 
      
 522 
     | 
    
         
            +
            end
         
     | 
| 
      
 523 
     | 
    
         
            +
             
     | 
| 
      
 524 
     | 
    
         
            +
            Wx::define_keyword_ctors('VScrolledWindow') do
         
     | 
| 
      
 525 
     | 
    
         
            +
              wx_ctor_params :id, :pos, :size, :style, :name => 'VScrolledWindowNameStr'
         
     | 
| 
      
 526 
     | 
    
         
            +
            end
         
     | 
| 
      
 527 
     | 
    
         
            +
             
     | 
| 
      
 528 
     | 
    
         
            +
            Wx::define_keyword_ctors('VListBox') do
         
     | 
| 
      
 529 
     | 
    
         
            +
              wx_ctor_params :id, :pos, :size, :style, :name => 'VListBoxNameStr'
         
     | 
| 
      
 530 
     | 
    
         
            +
            end
         
     | 
| 
      
 531 
     | 
    
         
            +
             
     | 
| 
      
 532 
     | 
    
         
            +
            Wx::define_keyword_ctors('HtmlListBox') do
         
     | 
| 
      
 533 
     | 
    
         
            +
              wx_ctor_params :id, :pos, :size, :style, :name => 'HtmlListBoxNameStr'
         
     | 
| 
      
 534 
     | 
    
         
            +
            end
         
     | 
| 
      
 535 
     | 
    
         
            +
             
     | 
| 
      
 536 
     | 
    
         
            +
            Wx::define_keyword_ctors('DatePickerCtrl') do
         
     | 
| 
      
 537 
     | 
    
         
            +
              wx_ctor_params :id, :dt => Time.now
         
     | 
| 
      
 538 
     | 
    
         
            +
              wx_ctor_params :pos, :size, :style, :validator, :name => 'dateCtrl'
         
     | 
| 
      
 539 
     | 
    
         
            +
            end
         
     | 
| 
      
 540 
     | 
    
         
            +
             
     | 
| 
      
 541 
     | 
    
         
            +
            Wx::define_keyword_ctors('RichTextCtrl') do
         
     | 
| 
      
 542 
     | 
    
         
            +
              wx_ctor_params :id, :value => ''
         
     | 
| 
      
 543 
     | 
    
         
            +
              wx_ctor_params :pos, :size, :style => Wx::TE_MULTILINE
         
     | 
| 
      
 544 
     | 
    
         
            +
              wx_ctor_params :validator, :name => 'textCtrl'
         
     | 
| 
      
 545 
     | 
    
         
            +
            end
         
     | 
| 
      
 546 
     | 
    
         
            +
             
     | 
| 
      
 547 
     | 
    
         
            +
            Wx::define_keyword_ctors('RichTextStyleListBox') do
         
     | 
| 
      
 548 
     | 
    
         
            +
              wx_ctor_params :id, :pos, :size, :style
         
     | 
| 
      
 549 
     | 
    
         
            +
            end
         
     | 
| 
      
 550 
     | 
    
         
            +
             
     | 
| 
      
 551 
     | 
    
         
            +
            Wx::define_keyword_ctors('RichTextStyleListCtrl') do
         
     | 
| 
      
 552 
     | 
    
         
            +
              wx_ctor_params :id, :pos, :size, :style
         
     | 
| 
      
 553 
     | 
    
         
            +
            end
         
     | 
| 
      
 554 
     | 
    
         
            +
             
     | 
| 
      
 555 
     | 
    
         
            +
             
     | 
| 
      
 556 
     | 
    
         
            +
            # FIXME - SymbolPickerDialog is hard to because the parent argument is
         
     | 
| 
      
 557 
     | 
    
         
            +
            # in a strange place.
         
     | 
| 
      
 558 
     | 
    
         
            +
             
     | 
    
        data/lib/wx/version.rb
    ADDED
    
    
    
        data/lib/wx.rb
    ADDED
    
    | 
         @@ -0,0 +1,53 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # Copyright 2004-2006 by Kevin Smith
         
     | 
| 
      
 2 
     | 
    
         
            +
            # released under the MIT-style wxruby2 license
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            # This wrapper serves three functions:
         
     | 
| 
      
 5 
     | 
    
         
            +
            # 1. It loads the binary library 'wxruby2.so' or 'wxruby.dll', while
         
     | 
| 
      
 6 
     | 
    
         
            +
            #    still allowing applications to just require 'wx'.
         
     | 
| 
      
 7 
     | 
    
         
            +
            # 2. It sets up the version information
         
     | 
| 
      
 8 
     | 
    
         
            +
            # 3. It loads in ruby extensions to the core Wx classes.
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
            # load the binary library
         
     | 
| 
      
 12 
     | 
    
         
            +
            require 'wxruby2'
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
      
 14 
     | 
    
         
            +
            # alias the module
         
     | 
| 
      
 15 
     | 
    
         
            +
            Wx = Wxruby2
         
     | 
| 
      
 16 
     | 
    
         
            +
             
     | 
| 
      
 17 
     | 
    
         
            +
            # Load the version information (should be bundled with all released versions)
         
     | 
| 
      
 18 
     | 
    
         
            +
            begin
         
     | 
| 
      
 19 
     | 
    
         
            +
              require 'wx/version'
         
     | 
| 
      
 20 
     | 
    
         
            +
            rescue LoadError
         
     | 
| 
      
 21 
     | 
    
         
            +
              Wx::WXRUBY_VERSION = '0.0.0'
         
     | 
| 
      
 22 
     | 
    
         
            +
            end
         
     | 
| 
      
 23 
     | 
    
         
            +
            # Convenience string for WxWidgets version info
         
     | 
| 
      
 24 
     | 
    
         
            +
            Wx::WXWIDGETS_VERSION = '%i.%i.%i' % [ Wx::WXWIDGETS_MAJOR_VERSION,
         
     | 
| 
      
 25 
     | 
    
         
            +
                                                   Wx::WXWIDGETS_MINOR_VERSION,
         
     | 
| 
      
 26 
     | 
    
         
            +
                                                   Wx::WXWIDGETS_RELEASE_NUMBER ]
         
     | 
| 
      
 27 
     | 
    
         
            +
             
     | 
| 
      
 28 
     | 
    
         
            +
            # Helper functions
         
     | 
| 
      
 29 
     | 
    
         
            +
            require 'wx/helpers'
         
     | 
| 
      
 30 
     | 
    
         
            +
             
     | 
| 
      
 31 
     | 
    
         
            +
            # Load in all the class extension methods written in ruby
         
     | 
| 
      
 32 
     | 
    
         
            +
            # evthandler must be required first b/c it sets up methods modified elsewhere
         
     | 
| 
      
 33 
     | 
    
         
            +
            require 'wx/classes/evthandler.rb'
         
     | 
| 
      
 34 
     | 
    
         
            +
            class_files = File.join( File.dirname(__FILE__), 'wx', 'classes', '*.rb')
         
     | 
| 
      
 35 
     | 
    
         
            +
            Dir.glob(class_files) do | class_file | 
         
     | 
| 
      
 36 
     | 
    
         
            +
              require 'wx/classes/' + class_file[/\w+\.rb$/]
         
     | 
| 
      
 37 
     | 
    
         
            +
            end
         
     | 
| 
      
 38 
     | 
    
         
            +
             
     | 
| 
      
 39 
     | 
    
         
            +
            # Load in syntax sweeteners
         
     | 
| 
      
 40 
     | 
    
         
            +
            require 'wx/accessors'
         
     | 
| 
      
 41 
     | 
    
         
            +
            require 'wx/keyword_ctors'
         
     | 
| 
      
 42 
     | 
    
         
            +
            require 'wx/keyword_defs'
         
     | 
| 
      
 43 
     | 
    
         
            +
             
     | 
| 
      
 44 
     | 
    
         
            +
            # If a program is ended by ruby's exit, it can bypass doing the proper
         
     | 
| 
      
 45 
     | 
    
         
            +
            # Wx clean-up routines called by Wx::App#on_exit. This can under some
         
     | 
| 
      
 46 
     | 
    
         
            +
            # circumstances cause crashes as the application ends.
         
     | 
| 
      
 47 
     | 
    
         
            +
            Kernel::at_exit do
         
     | 
| 
      
 48 
     | 
    
         
            +
              # These are set at App startup and wxRuby shut down respectively - see App.i
         
     | 
| 
      
 49 
     | 
    
         
            +
              if Wx::const_defined?(:THE_APP) and not $__wx_app_ended__ 
         
     | 
| 
      
 50 
     | 
    
         
            +
                Wx::THE_APP.on_exit
         
     | 
| 
      
 51 
     | 
    
         
            +
              end
         
     | 
| 
      
 52 
     | 
    
         
            +
            end
         
     | 
| 
      
 53 
     | 
    
         
            +
             
     | 
    
        data/lib/wxruby2.so
    CHANGED
    
    | 
         Binary file 
     | 
| 
         @@ -0,0 +1,18 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            wxRuby2 Sample Code
         
     | 
| 
      
 2 
     | 
    
         
            +
            Copyright (c) 2004-2006 Kevin B. Smith
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            Permission is hereby granted, free of charge, to any person obtaining 
         
     | 
| 
      
 5 
     | 
    
         
            +
            a copy of this software, to deal in the Software without restriction,
         
     | 
| 
      
 6 
     | 
    
         
            +
            including without limitation the rights to use, copy, modify, merge,
         
     | 
| 
      
 7 
     | 
    
         
            +
            publish, distribute, sublicense, and/or sell copies of any portion of 
         
     | 
| 
      
 8 
     | 
    
         
            +
            this Software, and to permit persons to whom the Software is furnished
         
     | 
| 
      
 9 
     | 
    
         
            +
            to do so. This copyright notice need not be retained in any derived
         
     | 
| 
      
 10 
     | 
    
         
            +
            work.
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
      
 12 
     | 
    
         
            +
            THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
         
     | 
| 
      
 13 
     | 
    
         
            +
            OR  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
         
     | 
| 
      
 14 
     | 
    
         
            +
            MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
         
     | 
| 
      
 15 
     | 
    
         
            +
            IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
         
     | 
| 
      
 16 
     | 
    
         
            +
            CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
         
     | 
| 
      
 17 
     | 
    
         
            +
            TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
         
     | 
| 
      
 18 
     | 
    
         
            +
            SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
         
     |