fxruby 1.6.28-x86-mingw32 → 1.6.29-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -7
 - checksums.yaml.gz.sig +0 -0
 - data.tar.gz.sig +0 -0
 - data/.gitignore +1 -1
 - data/History.txt +13 -1
 - data/Manifest.txt +1 -1
 - data/Rakefile +49 -39
 - data/examples/RAA.rb +8 -2
 - data/examples/WhatAQuietStiff.rb +2 -2
 - data/examples/babelfish.rb +9 -2
 - data/examples/browser.rb +1 -1
 - data/examples/button.rb +3 -9
 - data/examples/canvasdemo.rb +3 -3
 - data/examples/charts.rb +9 -2
 - data/examples/dctest.rb +4 -10
 - data/examples/gembrowser.rb +4 -4
 - data/examples/gltest.rb +3 -3
 - data/examples/glviewer.rb +3 -9
 - data/examples/groupbox.rb +3 -9
 - data/examples/header.rb +1 -1
 - data/examples/hello2.rb +1 -1
 - data/examples/iRAA.rb +7 -1
 - data/examples/iconlist.rb +3 -9
 - data/examples/imageviewer.rb +3 -9
 - data/examples/mditest.rb +1 -1
 - data/examples/raabrowser.rb +8 -2
 - data/examples/rmagick.rb +7 -1
 - data/examples/shutter.rb +3 -9
 - data/examples/splitter.rb +3 -9
 - data/examples/table.rb +26 -3
 - data/examples/textedit/textedit.rb +3 -3
 - data/ext/fox16_c/FXRbApp.cpp +1 -1
 - data/ext/fox16_c/FXRuby.cpp +18 -9
 - data/ext/fox16_c/extconf.rb +252 -11
 - data/ext/fox16_c/include/FXRbTreeList.h +3 -3
 - data/ext/fox16_c/include/FXRuby.h +7 -6
 - data/ext/fox16_c/markfuncs.cpp +3 -22
 - data/ext/fox16_c/unregisterOwnedObjects.cpp +1 -2
 - data/lib/1.8/fox16_c.so +0 -0
 - data/lib/1.9/fox16_c.so +0 -0
 - data/lib/2.0/fox16_c.so +0 -0
 - data/lib/2.1/fox16_c.so +0 -0
 - data/lib/2.2/fox16_c.so +0 -0
 - data/lib/fox16.rb +16 -6
 - data/lib/fox16/core.rb +14 -0
 - data/lib/fox16/glshapes.rb +1 -0
 - data/lib/fox16/version.rb +1 -1
 - data/lib/x86-mingw32/libFOX-1.6-0.dll +0 -0
 - data/lib/x86-mingw32/libfxscintilla-20.dll +0 -0
 - data/lib/x86-mingw32/libgcc_s_sjlj-1.dll +0 -0
 - data/lib/x86-mingw32/libjpeg-8.dll +0 -0
 - data/lib/x86-mingw32/libpng15-15.dll +0 -0
 - data/lib/x86-mingw32/libstdc++-6.dll +0 -0
 - data/lib/x86-mingw32/libtiff-5.dll +0 -0
 - data/lib/x86-mingw32/libwinpthread-1.dll +0 -0
 - data/lib/x86-mingw32/zlib1.dll +0 -0
 - data/rdoc-sources/FXBMPIcon.rb +1 -1
 - data/rdoc-sources/FXImage.rb +8 -2
 - data/swig-interfaces/FX4Splitter.i +0 -6
 - data/swig-interfaces/FX7Segment.i +0 -8
 - data/swig-interfaces/FXAccelTable.i +0 -7
 - data/swig-interfaces/FXApp.i +15 -23
 - data/swig-interfaces/FXArrowButton.i +0 -10
 - data/swig-interfaces/FXBMPIcon.i +0 -2
 - data/swig-interfaces/FXBMPImage.i +0 -2
 - data/swig-interfaces/FXBitmap.i +0 -6
 - data/swig-interfaces/FXButton.i +0 -4
 - data/swig-interfaces/FXCURCursor.i +0 -2
 - data/swig-interfaces/FXCanvas.i +0 -2
 - data/swig-interfaces/FXCheckButton.i +0 -7
 - data/swig-interfaces/FXChoiceBox.i +0 -8
 - data/swig-interfaces/FXColorBar.i +0 -8
 - data/swig-interfaces/FXColorDialog.i +0 -4
 - data/swig-interfaces/FXColorList.i +0 -9
 - data/swig-interfaces/FXColorRing.i +0 -40
 - data/swig-interfaces/FXColorSelector.i +0 -25
 - data/swig-interfaces/FXColorWell.i +0 -10
 - data/swig-interfaces/FXColorWheel.i +0 -15
 - data/swig-interfaces/FXComboBox.i +0 -7
 - data/swig-interfaces/FXComposeContext.i +0 -5
 - data/swig-interfaces/FXComposite.i +0 -4
 - data/swig-interfaces/FXCursor.i +0 -9
 - data/swig-interfaces/FXDC.i +0 -26
 - data/swig-interfaces/FXDCPrint.i +0 -19
 - data/swig-interfaces/FXDataTarget.i +0 -5
 - data/swig-interfaces/FXDebugTarget.i +0 -4
 - data/swig-interfaces/FXDelegator.i +0 -2
 - data/swig-interfaces/FXDial.i +0 -14
 - data/swig-interfaces/FXDialogBox.i +0 -2
 - data/swig-interfaces/FXDict.i +0 -27
 - data/swig-interfaces/FXDirDialog.i +0 -5
 - data/swig-interfaces/FXDirList.i +0 -31
 - data/swig-interfaces/FXDirSelector.i +0 -19
 - data/swig-interfaces/FXDockBar.i +0 -8
 - data/swig-interfaces/FXDockHandler.i +0 -10
 - data/swig-interfaces/FXDockSite.i +0 -7
 - data/swig-interfaces/FXDockTitle.i +0 -6
 - data/swig-interfaces/FXDragCorner.i +0 -9
 - data/swig-interfaces/FXDrawable.i +0 -7
 - data/swig-interfaces/FXFileDialog.i +0 -5
 - data/swig-interfaces/FXFileDict.i +0 -5
 - data/swig-interfaces/FXFileList.i +0 -23
 - data/swig-interfaces/FXFileSelector.i +0 -33
 - data/swig-interfaces/FXFoldingList.i +6 -19
 - data/swig-interfaces/FXFont.i +0 -20
 - data/swig-interfaces/FXFontDialog.i +3 -7
 - data/swig-interfaces/FXFontSelector.i +3 -29
 - data/swig-interfaces/FXFrame.i +0 -20
 - data/swig-interfaces/FXGIFIcon.i +0 -2
 - data/swig-interfaces/FXGIFImage.i +0 -2
 - data/swig-interfaces/FXGLCanvas.i +0 -4
 - data/swig-interfaces/FXGLContext.i +0 -4
 - data/swig-interfaces/FXGLShape.i +0 -11
 - data/swig-interfaces/FXGLViewer.i +0 -65
 - data/swig-interfaces/FXGradientBar.i +8 -9
 - data/swig-interfaces/FXGroupBox.i +0 -6
 - data/swig-interfaces/FXHeader.i +0 -24
 - data/swig-interfaces/FXHorizontalFrame.i +0 -2
 - data/swig-interfaces/FXICOIcon.i +0 -2
 - data/swig-interfaces/FXICOImage.i +0 -2
 - data/swig-interfaces/FXIcon.i +0 -7
 - data/swig-interfaces/FXIconList.i +0 -51
 - data/swig-interfaces/FXIconSource.i +0 -4
 - data/swig-interfaces/FXId.i +0 -4
 - data/swig-interfaces/FXImage.i +21 -4
 - data/swig-interfaces/FXImageFrame.i +0 -7
 - data/swig-interfaces/FXImageView.i +0 -6
 - data/swig-interfaces/FXInputDialog.i +0 -8
 - data/swig-interfaces/FXJPGIcon.i +0 -4
 - data/swig-interfaces/FXJPGImage.i +0 -4
 - data/swig-interfaces/FXKnob.i +0 -12
 - data/swig-interfaces/FXLabel.i +0 -16
 - data/swig-interfaces/FXList.i +0 -33
 - data/swig-interfaces/FXListBox.i +0 -7
 - data/swig-interfaces/FXMDIButton.i +0 -12
 - data/swig-interfaces/FXMDIChild.i +0 -51
 - data/swig-interfaces/FXMDIClient.i +0 -6
 - data/swig-interfaces/FXMainWindow.i +0 -2
 - data/swig-interfaces/FXMat3d.i +0 -2
 - data/swig-interfaces/FXMat3f.i +0 -2
 - data/swig-interfaces/FXMat4d.i +0 -2
 - data/swig-interfaces/FXMat4f.i +0 -2
 - data/swig-interfaces/FXMatrix.i +0 -4
 - data/swig-interfaces/FXMemoryStream.i +0 -1
 - data/swig-interfaces/FXMenuBar.i +0 -2
 - data/swig-interfaces/FXMenuButton.i +0 -7
 - data/swig-interfaces/FXMenuCaption.i +0 -15
 - data/swig-interfaces/FXMenuCascade.i +0 -5
 - data/swig-interfaces/FXMenuCheck.i +0 -8
 - data/swig-interfaces/FXMenuCommand.i +0 -5
 - data/swig-interfaces/FXMenuPane.i +0 -2
 - data/swig-interfaces/FXMenuRadio.i +0 -8
 - data/swig-interfaces/FXMenuSeparator.i +0 -5
 - data/swig-interfaces/FXMenuTitle.i +0 -4
 - data/swig-interfaces/FXMessageBox.i +13 -10
 - data/swig-interfaces/FXOptionMenu.i +0 -7
 - data/swig-interfaces/FXPCXIcon.i +0 -2
 - data/swig-interfaces/FXPCXImage.i +0 -2
 - data/swig-interfaces/FXPNGIcon.i +0 -2
 - data/swig-interfaces/FXPNGImage.i +0 -2
 - data/swig-interfaces/FXPPMIcon.i +0 -2
 - data/swig-interfaces/FXPPMImage.i +0 -2
 - data/swig-interfaces/FXPacker.i +0 -23
 - data/swig-interfaces/FXPicker.i +0 -2
 - data/swig-interfaces/FXPopup.i +0 -18
 - data/swig-interfaces/FXPrintDialog.i +0 -31
 - data/swig-interfaces/FXProgressBar.i +0 -12
 - data/swig-interfaces/FXProgressDialog.i +0 -8
 - data/swig-interfaces/FXRGBIcon.i +0 -2
 - data/swig-interfaces/FXRGBImage.i +0 -2
 - data/swig-interfaces/FXRadioButton.i +0 -7
 - data/swig-interfaces/FXRecentFiles.i +0 -6
 - data/swig-interfaces/FXRegion.i +0 -2
 - data/swig-interfaces/FXRegistry.i +0 -12
 - data/swig-interfaces/FXReplaceDialog.i +0 -15
 - data/swig-interfaces/FXRootWindow.i +0 -6
 - data/swig-interfaces/FXRuler.i +0 -45
 - data/swig-interfaces/FXScrollArea.i +0 -14
 - data/swig-interfaces/FXScrollBar.i +0 -2
 - data/swig-interfaces/FXScrollPane.i +0 -10
 - data/swig-interfaces/FXScrollWindow.i +0 -2
 - data/swig-interfaces/FXSearchDialog.i +0 -2
 - data/swig-interfaces/FXSeparator.i +0 -9
 - data/swig-interfaces/FXSettings.i +0 -11
 - data/swig-interfaces/FXShell.i +0 -4
 - data/swig-interfaces/FXShutter.i +0 -14
 - data/swig-interfaces/FXSlider.i +0 -19
 - data/swig-interfaces/FXSpinner.i +0 -9
 - data/swig-interfaces/FXSplashWindow.i +0 -8
 - data/swig-interfaces/FXSplitter.i +0 -10
 - data/swig-interfaces/FXSpring.i +0 -8
 - data/swig-interfaces/FXStatusBar.i +0 -5
 - data/swig-interfaces/FXStatusLine.i +0 -8
 - data/swig-interfaces/FXStringDict.i +0 -3
 - data/swig-interfaces/FXSwitcher.i +0 -4
 - data/swig-interfaces/FXTGAIcon.i +0 -2
 - data/swig-interfaces/FXTGAImage.i +0 -2
 - data/swig-interfaces/FXTIFIcon.i +0 -4
 - data/swig-interfaces/FXTIFImage.i +0 -4
 - data/swig-interfaces/FXTabBar.i +0 -5
 - data/swig-interfaces/FXTabBook.i +0 -2
 - data/swig-interfaces/FXTabItem.i +0 -2
 - data/swig-interfaces/FXTable.i +0 -17
 - data/swig-interfaces/FXToggleButton.i +0 -12
 - data/swig-interfaces/FXToolBarGrip.i +0 -4
 - data/swig-interfaces/FXToolBarShell.i +0 -16
 - data/swig-interfaces/FXToolBarTab.i +0 -13
 - data/swig-interfaces/FXToolTip.i +0 -10
 - data/swig-interfaces/FXTopWindow.i +0 -17
 - data/swig-interfaces/FXTranslator.i +0 -2
 - data/swig-interfaces/FXTreeList.i +18 -75
 - data/swig-interfaces/FXTreeListBox.i +18 -38
 - data/swig-interfaces/FXVerticalFrame.i +0 -2
 - data/swig-interfaces/FXVisual.i +0 -38
 - data/swig-interfaces/FXWindow.i +3 -53
 - data/swig-interfaces/FXWizard.i +0 -17
 - data/swig-interfaces/FXXBMIcon.i +0 -2
 - data/swig-interfaces/FXXBMImage.i +0 -2
 - data/swig-interfaces/FXXPMIcon.i +0 -2
 - data/swig-interfaces/FXXPMImage.i +0 -2
 - data/swig-interfaces/fxdefs.i +33 -35
 - data/swig-interfaces/ruby-typemaps.i +19 -2
 - data/test/TC_FXBMPImage.rb +13 -0
 - data/test/TC_FXFileStream.rb +3 -3
 - data/test/TC_FXImage.rb +40 -2
 - data/test/TC_FXSize.rb +12 -0
 - data/test/TC_FXWindow.rb +26 -0
 - data/test/TC_Misc.rb +2 -0
 - metadata +177 -161
 - metadata.gz.sig +0 -0
 - data/Rakefile.cross +0 -421
 
| 
         @@ -32,18 +32,6 @@ enum { 
     | 
|
| 
       32 
32 
     | 
    
         | 
| 
       33 
33 
     | 
    
         
             
            /// Toggle Button
         
     | 
| 
       34 
34 
     | 
    
         
             
            class FXToggleButton : public FXLabel {
         
     | 
| 
       35 
     | 
    
         
            -
            protected:
         
     | 
| 
       36 
     | 
    
         
            -
              FXString  altlabel;
         
     | 
| 
       37 
     | 
    
         
            -
              FXIcon   *alticon;
         
     | 
| 
       38 
     | 
    
         
            -
              FXHotKey  althotkey;
         
     | 
| 
       39 
     | 
    
         
            -
              FXint     althotoff;
         
     | 
| 
       40 
     | 
    
         
            -
              FXString  alttip;
         
     | 
| 
       41 
     | 
    
         
            -
              FXString  althelp;
         
     | 
| 
       42 
     | 
    
         
            -
              FXbool    state;
         
     | 
| 
       43 
     | 
    
         
            -
              FXbool    down;
         
     | 
| 
       44 
     | 
    
         
            -
            protected:
         
     | 
| 
       45 
     | 
    
         
            -
              FXToggleButton();
         
     | 
| 
       46 
     | 
    
         
            -
              void press(FXbool dn);
         
     | 
| 
       47 
35 
     | 
    
         
             
            public:
         
     | 
| 
       48 
36 
     | 
    
         
             
              long onPaint(FXObject*,FXSelector,void* PTR_EVENT);
         
     | 
| 
       49 
37 
     | 
    
         
             
              long onUpdate(FXObject*,FXSelector,void* PTR_NULL);
         
     | 
| 
         @@ -42,10 +42,6 @@ class FXToolBar; 
     | 
|
| 
       42 
42 
     | 
    
         
             
             */
         
     | 
| 
       43 
43 
     | 
    
         | 
| 
       44 
44 
     | 
    
         
             
            class FXToolBarGrip : public FXDockHandler {
         
     | 
| 
       45 
     | 
    
         
            -
            protected:
         
     | 
| 
       46 
     | 
    
         
            -
              FXColor activeColor;                    // Color when active
         
     | 
| 
       47 
     | 
    
         
            -
            protected:
         
     | 
| 
       48 
     | 
    
         
            -
              FXToolBarGrip();
         
     | 
| 
       49 
45 
     | 
    
         
             
            public:
         
     | 
| 
       50 
46 
     | 
    
         
             
              long onPaint(FXObject*,FXSelector,void* PTR_EVENT);
         
     | 
| 
       51 
47 
     | 
    
         
             
              long onEnter(FXObject*,FXSelector,void* PTR_EVENT);
         
     | 
| 
         @@ -26,22 +26,6 @@ 
     | 
|
| 
       26 
26 
     | 
    
         
             
             */
         
     | 
| 
       27 
27 
     | 
    
         | 
| 
       28 
28 
     | 
    
         
             
            class FXToolBarShell : public FXTopWindow {
         
     | 
| 
       29 
     | 
    
         
            -
            protected:
         
     | 
| 
       30 
     | 
    
         
            -
              FXColor   baseColor;
         
     | 
| 
       31 
     | 
    
         
            -
              FXColor   hiliteColor;
         
     | 
| 
       32 
     | 
    
         
            -
              FXColor   shadowColor;
         
     | 
| 
       33 
     | 
    
         
            -
              FXColor   borderColor;
         
     | 
| 
       34 
     | 
    
         
            -
              FXint     border;
         
     | 
| 
       35 
     | 
    
         
            -
            protected:
         
     | 
| 
       36 
     | 
    
         
            -
              FXToolBarShell(){}
         
     | 
| 
       37 
     | 
    
         
            -
              void drawBorderRectangle(FXDCWindow& dc,FXint x,FXint y,FXint w,FXint h);
         
     | 
| 
       38 
     | 
    
         
            -
              void drawRaisedRectangle(FXDCWindow& dc,FXint x,FXint y,FXint w,FXint h);
         
     | 
| 
       39 
     | 
    
         
            -
              void drawSunkenRectangle(FXDCWindow& dc,FXint x,FXint y,FXint w,FXint h);
         
     | 
| 
       40 
     | 
    
         
            -
              void drawRidgeRectangle(FXDCWindow& dc,FXint x,FXint y,FXint w,FXint h);
         
     | 
| 
       41 
     | 
    
         
            -
              void drawGrooveRectangle(FXDCWindow& dc,FXint x,FXint y,FXint w,FXint h);
         
     | 
| 
       42 
     | 
    
         
            -
              void drawDoubleRaisedRectangle(FXDCWindow& dc,FXint x,FXint y,FXint w,FXint h);
         
     | 
| 
       43 
     | 
    
         
            -
              void drawDoubleSunkenRectangle(FXDCWindow& dc,FXint x,FXint y,FXint w,FXint h);
         
     | 
| 
       44 
     | 
    
         
            -
              void drawFrame(FXDCWindow& dc,FXint x,FXint y,FXint w,FXint h);
         
     | 
| 
       45 
29 
     | 
    
         
             
            public:
         
     | 
| 
       46 
30 
     | 
    
         
             
              long onPaint(FXObject*,FXSelector,void* PTR_EVENT);
         
     | 
| 
       47 
31 
     | 
    
         
             
            public:
         
     | 
| 
         @@ -34,19 +34,6 @@ enum { 
     | 
|
| 
       34 
34 
     | 
    
         
             
             */
         
     | 
| 
       35 
35 
     | 
    
         | 
| 
       36 
36 
     | 
    
         
             
            class FXToolBarTab : public FXFrame {
         
     | 
| 
       37 
     | 
    
         
            -
            protected:
         
     | 
| 
       38 
     | 
    
         
            -
              FXColor activeColor;                  // Color when active
         
     | 
| 
       39 
     | 
    
         
            -
              FXString tip;				// Tooltip
         
     | 
| 
       40 
     | 
    
         
            -
              FXbool  collapsed;                    // Is collapsed flat
         
     | 
| 
       41 
     | 
    
         
            -
              FXbool  down;                         // Button down
         
     | 
| 
       42 
     | 
    
         
            -
            protected:
         
     | 
| 
       43 
     | 
    
         
            -
              FXToolBarTab();
         
     | 
| 
       44 
     | 
    
         
            -
              void drawUpArrow(FXDCWindow& dc);
         
     | 
| 
       45 
     | 
    
         
            -
              void drawDownArrow(FXDCWindow& dc);
         
     | 
| 
       46 
     | 
    
         
            -
              void drawRightArrow(FXDCWindow& dc);
         
     | 
| 
       47 
     | 
    
         
            -
              void drawLeftArrow(FXDCWindow& dc);
         
     | 
| 
       48 
     | 
    
         
            -
              void drawHSpeckles(FXDCWindow& dc,FXint x,FXint w);
         
     | 
| 
       49 
     | 
    
         
            -
              void drawVSpeckles(FXDCWindow& dc,FXint y,FXint h);
         
     | 
| 
       50 
37 
     | 
    
         
             
            public:
         
     | 
| 
       51 
38 
     | 
    
         
             
              long onPaint(FXObject*,FXSelector,void* PTR_EVENT);
         
     | 
| 
       52 
39 
     | 
    
         
             
              long onUpdate(FXObject*,FXSelector,void* PTR_NULL);
         
     | 
    
        data/swig-interfaces/FXToolTip.i
    CHANGED
    
    | 
         @@ -32,16 +32,6 @@ class FXFont; 
     | 
|
| 
       32 
32 
     | 
    
         | 
| 
       33 
33 
     | 
    
         
             
            /// Hopefully Helpful Hint message
         
     | 
| 
       34 
34 
     | 
    
         
             
            class FXToolTip : public FXShell {
         
     | 
| 
       35 
     | 
    
         
            -
            protected:
         
     | 
| 
       36 
     | 
    
         
            -
              FXString  label;                      // Text in the tip
         
     | 
| 
       37 
     | 
    
         
            -
              FXFont   *font;                       // Font of the tip
         
     | 
| 
       38 
     | 
    
         
            -
              FXColor   textColor;                  // Text color
         
     | 
| 
       39 
     | 
    
         
            -
              FXbool    popped;                     // Is currently popped up
         
     | 
| 
       40 
     | 
    
         
            -
            protected:
         
     | 
| 
       41 
     | 
    
         
            -
              FXToolTip();
         
     | 
| 
       42 
     | 
    
         
            -
              virtual FXbool doesOverrideRedirect() const;
         
     | 
| 
       43 
     | 
    
         
            -
              void place(FXint x,FXint y);
         
     | 
| 
       44 
     | 
    
         
            -
              void autoplace();
         
     | 
| 
       45 
35 
     | 
    
         
             
            public:
         
     | 
| 
       46 
36 
     | 
    
         
             
              long onPaint(FXObject*,FXSelector,void* PTR_EVENT);
         
     | 
| 
       47 
37 
     | 
    
         
             
              long onUpdate(FXObject*,FXSelector,void* PTR_NULL);
         
     | 
| 
         @@ -78,23 +78,6 @@ class FXToolBar; 
     | 
|
| 
       78 
78 
     | 
    
         
             
            * the owner.
         
     | 
| 
       79 
79 
     | 
    
         
             
            */
         
     | 
| 
       80 
80 
     | 
    
         
             
            class FXTopWindow : public FXShell {
         
     | 
| 
       81 
     | 
    
         
            -
            protected:
         
     | 
| 
       82 
     | 
    
         
            -
              FXString  title;                    // Window title
         
     | 
| 
       83 
     | 
    
         
            -
              FXIcon   *icon;                     // Window icon (big)
         
     | 
| 
       84 
     | 
    
         
            -
              FXIcon   *miniIcon;                 // Window icon (small)
         
     | 
| 
       85 
     | 
    
         
            -
              FXint     padtop;                   // Top margin
         
     | 
| 
       86 
     | 
    
         
            -
              FXint     padbottom;                // Bottom margin
         
     | 
| 
       87 
     | 
    
         
            -
              FXint     padleft;                  // Left margin
         
     | 
| 
       88 
     | 
    
         
            -
              FXint     padright;                 // Right margin
         
     | 
| 
       89 
     | 
    
         
            -
              FXint     hspacing;                 // Horizontal child spacing
         
     | 
| 
       90 
     | 
    
         
            -
              FXint     vspacing;                 // Vertical child spacing
         
     | 
| 
       91 
     | 
    
         
            -
            protected:
         
     | 
| 
       92 
     | 
    
         
            -
              FXTopWindow();
         
     | 
| 
       93 
     | 
    
         
            -
              void settitle();
         
     | 
| 
       94 
     | 
    
         
            -
              void seticons();
         
     | 
| 
       95 
     | 
    
         
            -
              void setdecorations();
         
     | 
| 
       96 
     | 
    
         
            -
              FXTopWindow(FXApp* a,const FXString& name,FXIcon *ic,FXIcon *mi,FXuint opts,FXint x,FXint y,FXint w,FXint h,FXint pl,FXint pr,FXint pt,FXint pb,FXint hs,FXint vs);
         
     | 
| 
       97 
     | 
    
         
            -
              FXTopWindow(FXWindow* owner,const FXString& name,FXIcon *ic,FXIcon *mi,FXuint opts,FXint x,FXint y,FXint w,FXint h,FXint pl,FXint pr,FXint pt,FXint pb,FXint hs,FXint vs);
         
     | 
| 
       98 
81 
     | 
    
         
             
            public:
         
     | 
| 
       99 
82 
     | 
    
         
             
              long onFocusUp(FXObject*,FXSelector,void* PTR_EVENT);
         
     | 
| 
       100 
83 
     | 
    
         
             
              long onFocusDown(FXObject*,FXSelector,void* PTR_EVENT);
         
     | 
| 
         @@ -42,22 +42,6 @@ class FXTreeList; 
     | 
|
| 
       42 
42 
     | 
    
         
             
            %rename("hasItems=") FXTreeItem::setHasItems(FXbool);
         
     | 
| 
       43 
43 
     | 
    
         | 
| 
       44 
44 
     | 
    
         
             
            class FXTreeItem : public FXObject {
         
     | 
| 
       45 
     | 
    
         
            -
            protected:
         
     | 
| 
       46 
     | 
    
         
            -
              FXTreeItem *parent;           // Parent item
         
     | 
| 
       47 
     | 
    
         
            -
              FXTreeItem *prev;             // Previous item
         
     | 
| 
       48 
     | 
    
         
            -
              FXTreeItem *next;             // Next item
         
     | 
| 
       49 
     | 
    
         
            -
              FXTreeItem *first;            // First child item
         
     | 
| 
       50 
     | 
    
         
            -
              FXTreeItem *last;             // Last child item
         
     | 
| 
       51 
     | 
    
         
            -
              FXString    label;            // Text of item
         
     | 
| 
       52 
     | 
    
         
            -
              FXIcon     *openIcon;         // Icon of item
         
     | 
| 
       53 
     | 
    
         
            -
              FXIcon     *closedIcon;       // Icon of item
         
     | 
| 
       54 
     | 
    
         
            -
              void       *data;             // Item user data pointer
         
     | 
| 
       55 
     | 
    
         
            -
              FXuint      state;            // Item state flags
         
     | 
| 
       56 
     | 
    
         
            -
              FXint       x,y;
         
     | 
| 
       57 
     | 
    
         
            -
            protected:
         
     | 
| 
       58 
     | 
    
         
            -
              FXTreeItem();
         
     | 
| 
       59 
     | 
    
         
            -
              virtual void draw(const FXTreeList* list,FXDC& dc,FXint x,FXint y,FXint w,FXint h) const;
         
     | 
| 
       60 
     | 
    
         
            -
              virtual FXint hitItem(const FXTreeList* list,FXint x,FXint y) const;
         
     | 
| 
       61 
45 
     | 
    
         
             
            public:
         
     | 
| 
       62 
46 
     | 
    
         
             
              enum{
         
     | 
| 
       63 
47 
     | 
    
         
             
                SELECTED        = 1,        /// Selected
         
     | 
| 
         @@ -169,33 +153,6 @@ DYNAMIC_CAST(SWIGTYPE_p_FXTreeItem, FXTreeItem_dynamic_cast); 
     | 
|
| 
       169 
153 
     | 
    
         
             
            * 3rd argument of the message.
         
     | 
| 
       170 
154 
     | 
    
         
             
            */
         
     | 
| 
       171 
155 
     | 
    
         
             
            class FXTreeList : public FXScrollArea {
         
     | 
| 
       172 
     | 
    
         
            -
            protected:
         
     | 
| 
       173 
     | 
    
         
            -
              FXTreeItem        *firstitem;         // First root item
         
     | 
| 
       174 
     | 
    
         
            -
              FXTreeItem        *lastitem;          // Last root item
         
     | 
| 
       175 
     | 
    
         
            -
              FXTreeItem        *anchoritem;        // Selection anchor item
         
     | 
| 
       176 
     | 
    
         
            -
              FXTreeItem        *currentitem;       // Current item
         
     | 
| 
       177 
     | 
    
         
            -
              FXTreeItem        *extentitem;        // Selection extent
         
     | 
| 
       178 
     | 
    
         
            -
              FXTreeItem        *cursoritem;        // Item under cursor
         
     | 
| 
       179 
     | 
    
         
            -
              FXTreeItem        *viewableitem;      // Visible item
         
     | 
| 
       180 
     | 
    
         
            -
              FXFont            *font;              // Font
         
     | 
| 
       181 
     | 
    
         
            -
              FXColor            textColor;         // Text color
         
     | 
| 
       182 
     | 
    
         
            -
              FXColor            selbackColor;      // Selected background color
         
     | 
| 
       183 
     | 
    
         
            -
              FXColor            seltextColor;      // Selected text color
         
     | 
| 
       184 
     | 
    
         
            -
              FXColor            lineColor;         // Line color
         
     | 
| 
       185 
     | 
    
         
            -
              FXint              treeWidth;         // Tree width
         
     | 
| 
       186 
     | 
    
         
            -
              FXint              treeHeight;        // Tree height
         
     | 
| 
       187 
     | 
    
         
            -
              FXint              visible;           // Number of visible items
         
     | 
| 
       188 
     | 
    
         
            -
              FXint              indent;            // Parent to child indentation
         
     | 
| 
       189 
     | 
    
         
            -
              FXint              grabx;             // Grab point x
         
     | 
| 
       190 
     | 
    
         
            -
              FXint              graby;             // Grab point y
         
     | 
| 
       191 
     | 
    
         
            -
              FXString           lookup;            // Lookup string
         
     | 
| 
       192 
     | 
    
         
            -
              FXString           help;              // Help string
         
     | 
| 
       193 
     | 
    
         
            -
              FXbool             state;             // State of item
         
     | 
| 
       194 
     | 
    
         
            -
            protected:
         
     | 
| 
       195 
     | 
    
         
            -
              FXTreeList();
         
     | 
| 
       196 
     | 
    
         
            -
              virtual FXTreeItem* createItem(const FXString& text,FXIcon* oi,FXIcon* ci,void* ptr);
         
     | 
| 
       197 
     | 
    
         
            -
              // void sort(FXTreeItem*& f1,FXTreeItem*& t1,FXTreeItem*& f2,FXTreeItem*& t2,int n); FIXME
         
     | 
| 
       198 
     | 
    
         
            -
              void recompute();
         
     | 
| 
       199 
156 
     | 
    
         
             
            public:
         
     | 
| 
       200 
157 
     | 
    
         
             
              long onPaint(FXObject*,FXSelector,void* PTR_EVENT);
         
     | 
| 
       201 
158 
     | 
    
         
             
              long onEnter(FXObject*,FXSelector,void* PTR_EVENT);
         
     | 
| 
         @@ -260,55 +217,41 @@ public: 
     | 
|
| 
       260 
217 
     | 
    
         
             
                /// Insert [possibly subclassed] item under father before other item
         
     | 
| 
       261 
218 
     | 
    
         
             
                FXTreeItem* insertItem(FXTreeItem* other,FXTreeItem* father,FXTreeItem* item,FXbool notify=FALSE){
         
     | 
| 
       262 
219 
     | 
    
         
             
                  if(item->isMemberOf(FXMETACLASS(FXRbTreeItem))){
         
     | 
| 
       263 
     | 
    
         
            -
                    dynamic_cast<FXRbTreeItem*>(item)-> 
     | 
| 
       264 
     | 
    
         
            -
             
     | 
| 
      
 220 
     | 
    
         
            +
                    dynamic_cast<FXRbTreeItem*>(item)->owned=TRUE;
         
     | 
| 
      
 221 
     | 
    
         
            +
                    }
         
     | 
| 
       265 
222 
     | 
    
         
             
                  return self->insertItem(other,father,item,notify);
         
     | 
| 
       266 
223 
     | 
    
         
             
                  }
         
     | 
| 
      
 224 
     | 
    
         
            +
              }
         
     | 
| 
       267 
225 
     | 
    
         | 
| 
       268 
     | 
    
         
            -
             
     | 
| 
       269 
     | 
    
         
            -
             
     | 
| 
       270 
     | 
    
         
            -
                  FXTreeItem* item=self->insertItem(other,father,text,oi,ci,ITEMDATA,notify);
         
     | 
| 
       271 
     | 
    
         
            -
                  if(item->isMemberOf(FXMETACLASS(FXRbTreeItem))){
         
     | 
| 
       272 
     | 
    
         
            -
                    dynamic_cast<FXRbTreeItem*>(item)->owner=self;
         
     | 
| 
       273 
     | 
    
         
            -
            	}
         
     | 
| 
       274 
     | 
    
         
            -
                  return item;
         
     | 
| 
       275 
     | 
    
         
            -
                  }
         
     | 
| 
      
 226 
     | 
    
         
            +
              /// Insert item with given text and optional icons, and user-data pointer under father before other item
         
     | 
| 
      
 227 
     | 
    
         
            +
              FXTreeItem* insertItem(FXTreeItem* other,FXTreeItem* father,const FXString& text,FXIcon* oi=NULL,FXIcon* ci=NULL,void* ITEMDATA=NULL,FXbool notify=FALSE);
         
     | 
| 
       276 
228 
     | 
    
         | 
| 
      
 229 
     | 
    
         
            +
              %extend {
         
     | 
| 
       277 
230 
     | 
    
         
             
                /// Append [possibly subclassed] item as last child of father
         
     | 
| 
       278 
231 
     | 
    
         
             
                FXTreeItem* appendItem(FXTreeItem* father,FXTreeItem* item,FXbool notify=FALSE){
         
     | 
| 
       279 
232 
     | 
    
         
             
                  if(item->isMemberOf(FXMETACLASS(FXRbTreeItem))){
         
     | 
| 
       280 
     | 
    
         
            -
                    dynamic_cast<FXRbTreeItem*>(item)-> 
     | 
| 
       281 
     | 
    
         
            -
             
     | 
| 
      
 233 
     | 
    
         
            +
                    dynamic_cast<FXRbTreeItem*>(item)->owned=TRUE;
         
     | 
| 
      
 234 
     | 
    
         
            +
                    }
         
     | 
| 
       282 
235 
     | 
    
         
             
                  return self->appendItem(father,item,notify);
         
     | 
| 
       283 
236 
     | 
    
         
             
                  }
         
     | 
| 
      
 237 
     | 
    
         
            +
              }
         
     | 
| 
       284 
238 
     | 
    
         | 
| 
       285 
     | 
    
         
            -
             
     | 
| 
       286 
     | 
    
         
            -
             
     | 
| 
       287 
     | 
    
         
            -
                  FXTreeItem* item=self->appendItem(father,text,oi,ci,ITEMDATA,notify);
         
     | 
| 
       288 
     | 
    
         
            -
                  if(item->isMemberOf(FXMETACLASS(FXRbTreeItem))){
         
     | 
| 
       289 
     | 
    
         
            -
                    dynamic_cast<FXRbTreeItem*>(item)->owner=self;
         
     | 
| 
       290 
     | 
    
         
            -
            	}
         
     | 
| 
       291 
     | 
    
         
            -
                  return item;
         
     | 
| 
       292 
     | 
    
         
            -
                  }
         
     | 
| 
      
 239 
     | 
    
         
            +
              /// Append item with given text and optional icons, and user-data pointer as last child of father
         
     | 
| 
      
 240 
     | 
    
         
            +
              FXTreeItem* appendItem(FXTreeItem* father,const FXString& text,FXIcon* oi=NULL,FXIcon* ci=NULL,void* ITEMDATA=NULL,FXbool notify=FALSE);
         
     | 
| 
       293 
241 
     | 
    
         | 
| 
      
 242 
     | 
    
         
            +
              %extend {
         
     | 
| 
       294 
243 
     | 
    
         
             
                /// Prepend [possibly subclassed] item as first child of father
         
     | 
| 
       295 
244 
     | 
    
         
             
                FXTreeItem* prependItem(FXTreeItem* father,FXTreeItem* item,FXbool notify=FALSE){
         
     | 
| 
       296 
245 
     | 
    
         
             
                  if(item->isMemberOf(FXMETACLASS(FXRbTreeItem))){
         
     | 
| 
       297 
     | 
    
         
            -
                    dynamic_cast<FXRbTreeItem*>(item)-> 
     | 
| 
       298 
     | 
    
         
            -
             
     | 
| 
      
 246 
     | 
    
         
            +
                    dynamic_cast<FXRbTreeItem*>(item)->owned=TRUE;
         
     | 
| 
      
 247 
     | 
    
         
            +
                    }
         
     | 
| 
       299 
248 
     | 
    
         
             
                  return self->prependItem(father,item,notify);
         
     | 
| 
       300 
249 
     | 
    
         
             
                  }
         
     | 
| 
       301 
     | 
    
         
            -
             
     | 
| 
       302 
     | 
    
         
            -
                /// Prepend item with given text and optional icons, and user-data pointer as first child of father
         
     | 
| 
       303 
     | 
    
         
            -
                FXTreeItem* prependItem(FXTreeItem* father,const FXString& text,FXIcon* oi=NULL,FXIcon* ci=NULL,void* ITEMDATA=NULL,FXbool notify=FALSE){
         
     | 
| 
       304 
     | 
    
         
            -
                  FXTreeItem* item=self->prependItem(father,text,oi,ci,ITEMDATA,notify);
         
     | 
| 
       305 
     | 
    
         
            -
                  if(item->isMemberOf(FXMETACLASS(FXRbTreeItem))){
         
     | 
| 
       306 
     | 
    
         
            -
                    dynamic_cast<FXRbTreeItem*>(item)->owner=self;
         
     | 
| 
       307 
     | 
    
         
            -
            	}
         
     | 
| 
       308 
     | 
    
         
            -
                  return item;
         
     | 
| 
       309 
     | 
    
         
            -
                  }
         
     | 
| 
       310 
250 
     | 
    
         
             
              }
         
     | 
| 
       311 
251 
     | 
    
         | 
| 
      
 252 
     | 
    
         
            +
              /// Prepend item with given text and optional icons, and user-data pointer as first child of father
         
     | 
| 
      
 253 
     | 
    
         
            +
              FXTreeItem* prependItem(FXTreeItem* father,const FXString& text,FXIcon* oi=NULL,FXIcon* ci=NULL,void* ITEMDATA=NULL,FXbool notify=FALSE);
         
     | 
| 
      
 254 
     | 
    
         
            +
             
     | 
| 
       312 
255 
     | 
    
         
             
              /// Move item under father before other item
         
     | 
| 
       313 
256 
     | 
    
         
             
              FXTreeItem *moveItem(FXTreeItem* other,FXTreeItem* father,FXTreeItem* item);
         
     | 
| 
       314 
257 
     | 
    
         | 
| 
         @@ -360,7 +303,7 @@ public: 
     | 
|
| 
       360 
303 
     | 
    
         
             
                    FXRbUnregisterRubyObj(items[i]);
         
     | 
| 
       361 
304 
     | 
    
         
             
                    }
         
     | 
| 
       362 
305 
     | 
    
         
             
                  }
         
     | 
| 
       363 
     | 
    
         
            -
             
     | 
| 
      
 306 
     | 
    
         
            +
                }
         
     | 
| 
       364 
307 
     | 
    
         | 
| 
       365 
308 
     | 
    
         
             
              /// Return item width
         
     | 
| 
       366 
309 
     | 
    
         
             
              FXint getItemWidth(const FXTreeItem* item) const;
         
     | 
| 
         @@ -40,13 +40,6 @@ class FXPopup; 
     | 
|
| 
       40 
40 
     | 
    
         
             
            * SEL_CHANGED messages to indicate which item the cursor is hovering over.
         
     | 
| 
       41 
41 
     | 
    
         
             
            */
         
     | 
| 
       42 
42 
     | 
    
         
             
            class FXTreeListBox : public FXPacker {
         
     | 
| 
       43 
     | 
    
         
            -
            protected:
         
     | 
| 
       44 
     | 
    
         
            -
              FXButton      *field;
         
     | 
| 
       45 
     | 
    
         
            -
              FXMenuButton  *button;
         
     | 
| 
       46 
     | 
    
         
            -
              FXTreeList    *tree;
         
     | 
| 
       47 
     | 
    
         
            -
              FXPopup       *pane;
         
     | 
| 
       48 
     | 
    
         
            -
            protected:
         
     | 
| 
       49 
     | 
    
         
            -
              FXTreeListBox(){}
         
     | 
| 
       50 
43 
     | 
    
         
             
            public:
         
     | 
| 
       51 
44 
     | 
    
         
             
              long onFocusUp(FXObject*,FXSelector,void* PTR_EVENT);
         
     | 
| 
       52 
45 
     | 
    
         
             
              long onFocusDown(FXObject*,FXSelector,void* PTR_EVENT);
         
     | 
| 
         @@ -93,55 +86,42 @@ public: 
     | 
|
| 
       93 
86 
     | 
    
         
             
                /// Insert [possibly subclassed] item under father before other item
         
     | 
| 
       94 
87 
     | 
    
         
             
                FXTreeItem* insertItem(FXTreeItem* other,FXTreeItem* father,FXTreeItem* item){
         
     | 
| 
       95 
88 
     | 
    
         
             
                  if(item->isMemberOf(FXMETACLASS(FXRbTreeItem))){
         
     | 
| 
       96 
     | 
    
         
            -
                    dynamic_cast<FXRbTreeItem*>(item)-> 
     | 
| 
       97 
     | 
    
         
            -
             
     | 
| 
      
 89 
     | 
    
         
            +
                    dynamic_cast<FXRbTreeItem*>(item)->owned=TRUE;
         
     | 
| 
      
 90 
     | 
    
         
            +
                    }
         
     | 
| 
       98 
91 
     | 
    
         
             
                  return self->insertItem(other,father,item);
         
     | 
| 
       99 
92 
     | 
    
         
             
                  }
         
     | 
| 
      
 93 
     | 
    
         
            +
              }
         
     | 
| 
       100 
94 
     | 
    
         | 
| 
      
 95 
     | 
    
         
            +
              /// Insert item with given text and optional icons, and user-data pointer under father before other item
         
     | 
| 
      
 96 
     | 
    
         
            +
              FXTreeItem* insertItem(FXTreeItem* other,FXTreeItem* father,const FXString& text,FXIcon* oi=NULL,FXIcon* ci=NULL,void* ITEMDATA=NULL);
         
     | 
| 
       101 
97 
     | 
    
         | 
| 
       102 
     | 
    
         
            -
             
     | 
| 
       103 
     | 
    
         
            -
                FXTreeItem* insertItem(FXTreeItem* other,FXTreeItem* father,const FXString& text,FXIcon* oi=NULL,FXIcon* ci=NULL,void* ITEMDATA=NULL){
         
     | 
| 
       104 
     | 
    
         
            -
                  FXTreeItem* item=self->insertItem(other,father,text,oi,ci,ITEMDATA);
         
     | 
| 
       105 
     | 
    
         
            -
                  if(item->isMemberOf(FXMETACLASS(FXRbTreeItem))){
         
     | 
| 
       106 
     | 
    
         
            -
                    dynamic_cast<FXRbTreeItem*>(item)->owner=self;
         
     | 
| 
       107 
     | 
    
         
            -
            	}
         
     | 
| 
       108 
     | 
    
         
            -
                  return item;
         
     | 
| 
       109 
     | 
    
         
            -
                  }
         
     | 
| 
       110 
     | 
    
         
            -
             
     | 
| 
      
 98 
     | 
    
         
            +
              %extend {
         
     | 
| 
       111 
99 
     | 
    
         
             
                /// Append [possibly subclassed] item as last child of father
         
     | 
| 
       112 
100 
     | 
    
         
             
                FXTreeItem* appendItem(FXTreeItem* father,FXTreeItem* item){
         
     | 
| 
       113 
101 
     | 
    
         
             
                  if(item->isMemberOf(FXMETACLASS(FXRbTreeItem))){
         
     | 
| 
       114 
     | 
    
         
            -
                    dynamic_cast<FXRbTreeItem*>(item)-> 
     | 
| 
       115 
     | 
    
         
            -
             
     | 
| 
      
 102 
     | 
    
         
            +
                    dynamic_cast<FXRbTreeItem*>(item)->owned=TRUE;
         
     | 
| 
      
 103 
     | 
    
         
            +
                    }
         
     | 
| 
       116 
104 
     | 
    
         
             
                  return self->appendItem(father,item);
         
     | 
| 
       117 
105 
     | 
    
         
             
                  }
         
     | 
| 
      
 106 
     | 
    
         
            +
              }
         
     | 
| 
       118 
107 
     | 
    
         | 
| 
       119 
     | 
    
         
            -
             
     | 
| 
       120 
     | 
    
         
            -
             
     | 
| 
       121 
     | 
    
         
            -
                  FXTreeItem* item=self->appendItem(father,text,oi,ci,ITEMDATA);
         
     | 
| 
       122 
     | 
    
         
            -
                  if(item->isMemberOf(FXMETACLASS(FXRbTreeItem))){
         
     | 
| 
       123 
     | 
    
         
            -
                    dynamic_cast<FXRbTreeItem*>(item)->owner=self;
         
     | 
| 
       124 
     | 
    
         
            -
            	}
         
     | 
| 
       125 
     | 
    
         
            -
                  return item;
         
     | 
| 
       126 
     | 
    
         
            -
                  }
         
     | 
| 
      
 108 
     | 
    
         
            +
              /// Append item with given text and optional icons, and user-data pointer as last child of father
         
     | 
| 
      
 109 
     | 
    
         
            +
              FXTreeItem* appendItem(FXTreeItem* father,const FXString& text,FXIcon* oi=NULL,FXIcon* ci=NULL,void* ITEMDATA=NULL);
         
     | 
| 
       127 
110 
     | 
    
         | 
| 
      
 111 
     | 
    
         
            +
              %extend {
         
     | 
| 
       128 
112 
     | 
    
         
             
                /// Prepend [possibly subclassed] item as first child of father
         
     | 
| 
       129 
113 
     | 
    
         
             
                FXTreeItem* prependItem(FXTreeItem* father,FXTreeItem* item){
         
     | 
| 
       130 
114 
     | 
    
         
             
                  if(item->isMemberOf(FXMETACLASS(FXRbTreeItem))){
         
     | 
| 
       131 
     | 
    
         
            -
                    dynamic_cast<FXRbTreeItem*>(item)-> 
     | 
| 
       132 
     | 
    
         
            -
             
     | 
| 
      
 115 
     | 
    
         
            +
                    dynamic_cast<FXRbTreeItem*>(item)->owned=TRUE;
         
     | 
| 
      
 116 
     | 
    
         
            +
                    }
         
     | 
| 
       133 
117 
     | 
    
         
             
                  return self->prependItem(father,item);
         
     | 
| 
       134 
118 
     | 
    
         
             
                  }
         
     | 
| 
      
 119 
     | 
    
         
            +
              }
         
     | 
| 
       135 
120 
     | 
    
         | 
| 
       136 
     | 
    
         
            -
             
     | 
| 
       137 
     | 
    
         
            -
             
     | 
| 
       138 
     | 
    
         
            -
                  FXTreeItem* item=self->prependItem(father,text,oi,ci,ITEMDATA);
         
     | 
| 
       139 
     | 
    
         
            -
                  if(item->isMemberOf(FXMETACLASS(FXRbTreeItem))){
         
     | 
| 
       140 
     | 
    
         
            -
                    dynamic_cast<FXRbTreeItem*>(item)->owner=self;
         
     | 
| 
       141 
     | 
    
         
            -
            	}
         
     | 
| 
       142 
     | 
    
         
            -
                  return item;
         
     | 
| 
       143 
     | 
    
         
            -
                  }
         
     | 
| 
      
 121 
     | 
    
         
            +
              /// Prepend item with given text and optional icons, and user-data pointer as first child of father
         
     | 
| 
      
 122 
     | 
    
         
            +
              FXTreeItem* prependItem(FXTreeItem* father,const FXString& text,FXIcon* oi=NULL,FXIcon* ci=NULL,void* ITEMDATA=NULL);
         
     | 
| 
       144 
123 
     | 
    
         | 
| 
      
 124 
     | 
    
         
            +
              %extend {
         
     | 
| 
       145 
125 
     | 
    
         
             
                /// Remove item
         
     | 
| 
       146 
126 
     | 
    
         
             
                void removeItem(FXTreeItem* item){
         
     | 
| 
       147 
127 
     | 
    
         
             
                  // Save pointer(s) to the soon-to-be-destroyed items
         
     | 
    
        data/swig-interfaces/FXVisual.i
    CHANGED
    
    | 
         @@ -52,44 +52,6 @@ enum FXVisualType { 
     | 
|
| 
       52 
52 
     | 
    
         | 
| 
       53 
53 
     | 
    
         
             
            /// Visual describes pixel format of a drawable
         
     | 
| 
       54 
54 
     | 
    
         
             
            class FXVisual : public FXId {
         
     | 
| 
       55 
     | 
    
         
            -
            protected:
         
     | 
| 
       56 
     | 
    
         
            -
              FXuint        flags;                  // Visual flags
         
     | 
| 
       57 
     | 
    
         
            -
              FXuint        hint;                   // Depth Hint
         
     | 
| 
       58 
     | 
    
         
            -
              FXuint        depth;                  // Visual depth, significant bits/pixel
         
     | 
| 
       59 
     | 
    
         
            -
              FXuint        numred;                 // Number of reds
         
     | 
| 
       60 
     | 
    
         
            -
              FXuint        numgreen;               // Number of greens
         
     | 
| 
       61 
     | 
    
         
            -
              FXuint        numblue;                // Number of blues
         
     | 
| 
       62 
     | 
    
         
            -
              FXuint        numcolors;              // Total number of colors
         
     | 
| 
       63 
     | 
    
         
            -
              FXuint        maxcolors;              // Maximum number of colors
         
     | 
| 
       64 
     | 
    
         
            -
              FXVisualType  type;                   // Visual type
         
     | 
| 
       65 
     | 
    
         
            -
              void         *info;                   // Opaque data
         
     | 
| 
       66 
     | 
    
         
            -
              FXID          colormap;               // Color map, if any
         
     | 
| 
       67 
     | 
    
         
            -
              FXbool        freemap;                // We allocated the map
         
     | 
| 
       68 
     | 
    
         
            -
            #ifndef WIN32
         
     | 
| 
       69 
     | 
    
         
            -
            protected:
         
     | 
| 
       70 
     | 
    
         
            -
              void         *visual;                 // Application visual [Visual]
         
     | 
| 
       71 
     | 
    
         
            -
              void*         gc;                     // Drawing GC
         
     | 
| 
       72 
     | 
    
         
            -
              void*         scrollgc;               // Scrolling GC
         
     | 
| 
       73 
     | 
    
         
            -
              FXPixel       rpix[16][256];          // Mapping from red -> pixel
         
     | 
| 
       74 
     | 
    
         
            -
              FXPixel       gpix[16][256];          // Mapping from green -> pixel
         
     | 
| 
       75 
     | 
    
         
            -
              FXPixel       bpix[16][256];          // Mapping from blue -> pixel
         
     | 
| 
       76 
     | 
    
         
            -
              FXPixel       lut[256];               // Color lookup table
         
     | 
| 
       77 
     | 
    
         
            -
            protected:
         
     | 
| 
       78 
     | 
    
         
            -
              void* setupgc(FXbool);
         
     | 
| 
       79 
     | 
    
         
            -
              void setuptruecolor();
         
     | 
| 
       80 
     | 
    
         
            -
              void setupdirectcolor();
         
     | 
| 
       81 
     | 
    
         
            -
              void setuppseudocolor();
         
     | 
| 
       82 
     | 
    
         
            -
              void setupstaticcolor();
         
     | 
| 
       83 
     | 
    
         
            -
              void setupgrayscale();
         
     | 
| 
       84 
     | 
    
         
            -
              void setupstaticgray();
         
     | 
| 
       85 
     | 
    
         
            -
              void setuppixmapmono();
         
     | 
| 
       86 
     | 
    
         
            -
              void setupcolormap();
         
     | 
| 
       87 
     | 
    
         
            -
            #else
         
     | 
| 
       88 
     | 
    
         
            -
            protected:
         
     | 
| 
       89 
     | 
    
         
            -
              int           pixelformat;            // PIXELFORMAT number
         
     | 
| 
       90 
     | 
    
         
            -
            #endif
         
     | 
| 
       91 
     | 
    
         
            -
            protected:
         
     | 
| 
       92 
     | 
    
         
            -
              FXVisual();
         
     | 
| 
       93 
55 
     | 
    
         
             
            public:
         
     | 
| 
       94 
56 
     | 
    
         | 
| 
       95 
57 
     | 
    
         
             
              /// Construct default visual
         
     | 
    
        data/swig-interfaces/FXWindow.i
    CHANGED
    
    | 
         @@ -99,19 +99,6 @@ class FXComposite; 
     | 
|
| 
       99 
99 
     | 
    
         | 
| 
       100 
100 
     | 
    
         
             
            /// Base class for all windows
         
     | 
| 
       101 
101 
     | 
    
         
             
            class FXWindow : public FXDrawable {
         
     | 
| 
       102 
     | 
    
         
            -
            protected:
         
     | 
| 
       103 
     | 
    
         
            -
              FXComposeContext *composeContext;     // Compose context
         
     | 
| 
       104 
     | 
    
         
            -
              FXCursor     *defaultCursor;          // Normal Cursor
         
     | 
| 
       105 
     | 
    
         
            -
              FXCursor     *dragCursor;             // Cursor during drag
         
     | 
| 
       106 
     | 
    
         
            -
              FXAccelTable *accelTable;             // Accelerator table
         
     | 
| 
       107 
     | 
    
         
            -
              FXObject     *target;                 // Target object
         
     | 
| 
       108 
     | 
    
         
            -
              FXSelector    message;                // Message ID
         
     | 
| 
       109 
     | 
    
         
            -
              FXint         xpos;                   // Window X Position
         
     | 
| 
       110 
     | 
    
         
            -
              FXint         ypos;                   // Window Y Position
         
     | 
| 
       111 
     | 
    
         
            -
              FXColor       backColor;              // Window background color
         
     | 
| 
       112 
     | 
    
         
            -
              FXString      tag;                    // Help tag
         
     | 
| 
       113 
     | 
    
         
            -
              FXuint        flags;                  // Window state flags
         
     | 
| 
       114 
     | 
    
         
            -
              FXuint        options;                // Window options
         
     | 
| 
       115 
102 
     | 
    
         
             
            public:
         
     | 
| 
       116 
103 
     | 
    
         | 
| 
       117 
104 
     | 
    
         
             
              // Common DND types
         
     | 
| 
         @@ -125,43 +112,6 @@ public: 
     | 
|
| 
       125 
112 
     | 
    
         
             
              static const FXDragType stringType;   // Clipboard text type (pre-registered)
         
     | 
| 
       126 
113 
     | 
    
         
             
              static const FXDragType imageType;    // Clipboard image type (pre-registered)
         
     | 
| 
       127 
114 
     | 
    
         | 
| 
       128 
     | 
    
         
            -
            protected:
         
     | 
| 
       129 
     | 
    
         
            -
              FXWindow();
         
     | 
| 
       130 
     | 
    
         
            -
              FXWindow(FXApp* a,FXVisual *vis);
         
     | 
| 
       131 
     | 
    
         
            -
              FXWindow(FXApp* a,FXWindow* own,FXuint opts,FXint x,FXint y,FXint w,FXint h);
         
     | 
| 
       132 
     | 
    
         
            -
              static FXWindow* findDefault(FXWindow* window);
         
     | 
| 
       133 
     | 
    
         
            -
              static FXWindow* findInitial(FXWindow* window);
         
     | 
| 
       134 
     | 
    
         
            -
              virtual FXbool doesOverrideRedirect() const;
         
     | 
| 
       135 
     | 
    
         
            -
             
     | 
| 
       136 
     | 
    
         
            -
            protected:
         
     | 
| 
       137 
     | 
    
         
            -
             
     | 
| 
       138 
     | 
    
         
            -
              // Window state flags
         
     | 
| 
       139 
     | 
    
         
            -
              enum {
         
     | 
| 
       140 
     | 
    
         
            -
                FLAG_SHOWN        = 0x00000001,     // Is shown
         
     | 
| 
       141 
     | 
    
         
            -
                FLAG_ENABLED      = 0x00000002,     // Able to receive input
         
     | 
| 
       142 
     | 
    
         
            -
                FLAG_UPDATE       = 0x00000004,     // Is subject to GUI update
         
     | 
| 
       143 
     | 
    
         
            -
                FLAG_DROPTARGET   = 0x00000008,     // Drop target
         
     | 
| 
       144 
     | 
    
         
            -
                FLAG_FOCUSED      = 0x00000010,     // Has focus
         
     | 
| 
       145 
     | 
    
         
            -
                FLAG_DIRTY        = 0x00000020,     // Needs layout
         
     | 
| 
       146 
     | 
    
         
            -
                FLAG_RECALC       = 0x00000040,     // Needs recalculation
         
     | 
| 
       147 
     | 
    
         
            -
                FLAG_TIP          = 0x00000080,     // Show tip
         
     | 
| 
       148 
     | 
    
         
            -
                FLAG_HELP         = 0x00000100,     // Show help
         
     | 
| 
       149 
     | 
    
         
            -
                FLAG_DEFAULT      = 0x00000200,     // Default widget
         
     | 
| 
       150 
     | 
    
         
            -
                FLAG_INITIAL      = 0x00000400,     // Initial widget
         
     | 
| 
       151 
     | 
    
         
            -
                FLAG_SHELL        = 0x00000800,     // Shell window
         
     | 
| 
       152 
     | 
    
         
            -
                FLAG_ACTIVE       = 0x00001000,     // Window is active
         
     | 
| 
       153 
     | 
    
         
            -
                FLAG_PRESSED      = 0x00002000,     // Button has been pressed
         
     | 
| 
       154 
     | 
    
         
            -
                FLAG_KEY          = 0x00004000,     // Keyboard key pressed
         
     | 
| 
       155 
     | 
    
         
            -
                FLAG_CARET        = 0x00008000,     // Caret is on
         
     | 
| 
       156 
     | 
    
         
            -
                FLAG_CHANGED      = 0x00010000,     // Window data changed
         
     | 
| 
       157 
     | 
    
         
            -
                FLAG_LASSO        = 0x00020000,     // Lasso mode
         
     | 
| 
       158 
     | 
    
         
            -
                FLAG_TRYDRAG      = 0x00040000,     // Tentative drag mode
         
     | 
| 
       159 
     | 
    
         
            -
                FLAG_DODRAG       = 0x00080000,     // Doing drag mode
         
     | 
| 
       160 
     | 
    
         
            -
                FLAG_SCROLLINSIDE = 0x00100000,     // Scroll only when inside
         
     | 
| 
       161 
     | 
    
         
            -
                FLAG_SCROLLING    = 0x00200000,     // Right mouse scrolling
         
     | 
| 
       162 
     | 
    
         
            -
                FLAG_OWNED        = 0x00400000
         
     | 
| 
       163 
     | 
    
         
            -
                };
         
     | 
| 
       164 
     | 
    
         
            -
             
     | 
| 
       165 
115 
     | 
    
         
             
            public:
         
     | 
| 
       166 
116 
     | 
    
         | 
| 
       167 
117 
     | 
    
         
             
              // Message handlers
         
     | 
| 
         @@ -599,7 +549,7 @@ public: 
     | 
|
| 
       599 
549 
     | 
    
         
             
                  if(numtypes>0){
         
     | 
| 
       600 
550 
     | 
    
         
             
                    types=new FXDragType[numtypes];
         
     | 
| 
       601 
551 
     | 
    
         
             
                    for(FXuint i=0;i<numtypes;i++){
         
     | 
| 
       602 
     | 
    
         
            -
                      types[i]=(FXDragType)  
     | 
| 
      
 552 
     | 
    
         
            +
                      types[i]=(FXDragType) NUM2UINT(rb_ary_entry(typesArray,i));
         
     | 
| 
       603 
553 
     | 
    
         
             
                      }
         
     | 
| 
       604 
554 
     | 
    
         
             
                  }
         
     | 
| 
       605 
555 
     | 
    
         
             
                  bool result=self->acquireSelection(types,numtypes);
         
     | 
| 
         @@ -623,7 +573,7 @@ public: 
     | 
|
| 
       623 
573 
     | 
    
         
             
                  if(numtypes>0){
         
     | 
| 
       624 
574 
     | 
    
         
             
                    types=new FXDragType[numtypes];
         
     | 
| 
       625 
575 
     | 
    
         
             
                    for(FXuint i=0;i<numtypes;i++){
         
     | 
| 
       626 
     | 
    
         
            -
                      types[i]=(FXDragType)  
     | 
| 
      
 576 
     | 
    
         
            +
                      types[i]=(FXDragType) NUM2UINT(rb_ary_entry(typesArray,i));
         
     | 
| 
       627 
577 
     | 
    
         
             
                      }
         
     | 
| 
       628 
578 
     | 
    
         
             
                  }
         
     | 
| 
       629 
579 
     | 
    
         
             
                  bool result=self->acquireClipboard(types,numtypes);
         
     | 
| 
         @@ -650,7 +600,7 @@ public: 
     | 
|
| 
       650 
600 
     | 
    
         
             
                  if(numtypes>0){
         
     | 
| 
       651 
601 
     | 
    
         
             
                    types=new FXDragType[numtypes];
         
     | 
| 
       652 
602 
     | 
    
         
             
                    for(FXuint i=0;i<numtypes;i++){
         
     | 
| 
       653 
     | 
    
         
            -
                      types[i]=(FXDragType)  
     | 
| 
      
 603 
     | 
    
         
            +
                      types[i]=(FXDragType) NUM2UINT(rb_ary_entry(typesArray,i));
         
     | 
| 
       654 
604 
     | 
    
         
             
                      }
         
     | 
| 
       655 
605 
     | 
    
         
             
                  }
         
     | 
| 
       656 
606 
     | 
    
         
             
                  bool result=self->beginDrag(types,numtypes);
         
     |