fxruby 1.6.28 → 1.6.29
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/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/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 +164 -158
- metadata.gz.sig +0 -0
- data/Rakefile.cross +0 -421
data/swig-interfaces/FXLabel.i
CHANGED
|
@@ -51,22 +51,6 @@ class FXFont;
|
|
|
51
51
|
* and/or help string.
|
|
52
52
|
*/
|
|
53
53
|
class FXLabel : public FXFrame {
|
|
54
|
-
protected:
|
|
55
|
-
FXString label;
|
|
56
|
-
FXIcon* icon;
|
|
57
|
-
FXFont* font;
|
|
58
|
-
FXHotKey hotkey;
|
|
59
|
-
FXint hotoff;
|
|
60
|
-
FXColor textColor;
|
|
61
|
-
FXString tip;
|
|
62
|
-
FXString help;
|
|
63
|
-
protected:
|
|
64
|
-
FXLabel();
|
|
65
|
-
FXint labelHeight(const FXString& text) const;
|
|
66
|
-
FXint labelWidth(const FXString& text) const;
|
|
67
|
-
void drawLabel(FXDCWindow& dc,const FXString& text,FXint hot,FXint tx,FXint ty,FXint tw,FXint th);
|
|
68
|
-
void just_x(FXint& tx,FXint& ix,FXint tw,FXint iw);
|
|
69
|
-
void just_y(FXint& ty,FXint& iy,FXint th,FXint ih);
|
|
70
54
|
public:
|
|
71
55
|
long onPaint(FXObject*,FXSelector,void* PTR_EVENT);
|
|
72
56
|
long onHotKeyPress(FXObject*,FXSelector,void* PTR_EVENT);
|
data/swig-interfaces/FXList.i
CHANGED
|
@@ -39,16 +39,6 @@ class FXList;
|
|
|
39
39
|
|
|
40
40
|
/// List item
|
|
41
41
|
class FXListItem : public FXObject {
|
|
42
|
-
protected:
|
|
43
|
-
FXString label;
|
|
44
|
-
FXIcon *icon;
|
|
45
|
-
void *data;
|
|
46
|
-
FXuint state;
|
|
47
|
-
FXint x,y;
|
|
48
|
-
protected:
|
|
49
|
-
FXListItem();
|
|
50
|
-
virtual void draw(const FXList* list,FXDC& dc,FXint x,FXint y,FXint w,FXint h);
|
|
51
|
-
virtual FXint hitItem(const FXList* list,FXint x,FXint y) const;
|
|
52
42
|
public:
|
|
53
43
|
enum {
|
|
54
44
|
SELECTED = 1,
|
|
@@ -127,29 +117,6 @@ DYNAMIC_CAST(SWIGTYPE_p_FXListItem, FXListItem_dynamic_cast);
|
|
|
127
117
|
* 3rd argument of the message.
|
|
128
118
|
*/
|
|
129
119
|
class FXList : public FXScrollArea {
|
|
130
|
-
protected:
|
|
131
|
-
FXListItemList items; // Item list
|
|
132
|
-
FXint anchor; // Anchor item
|
|
133
|
-
FXint current; // Current item
|
|
134
|
-
FXint extent; // Extent item
|
|
135
|
-
FXint cursor; // Cursor item
|
|
136
|
-
FXint viewable; // Viewable item
|
|
137
|
-
FXFont *font; // Font
|
|
138
|
-
FXColor textColor; // Text color
|
|
139
|
-
FXColor selbackColor; // Selected back color
|
|
140
|
-
FXColor seltextColor; // Selected text color
|
|
141
|
-
FXint listWidth; // List width
|
|
142
|
-
FXint listHeight; // List height
|
|
143
|
-
FXint visible; // Number of rows high
|
|
144
|
-
FXString help; // Help text
|
|
145
|
-
FXint grabx; // Grab point x
|
|
146
|
-
FXint graby; // Grab point y
|
|
147
|
-
FXString lookup; // Lookup string
|
|
148
|
-
FXbool state; // State of item
|
|
149
|
-
protected:
|
|
150
|
-
FXList();
|
|
151
|
-
void recompute();
|
|
152
|
-
virtual FXListItem *createItem(const FXString& text,FXIcon* icon,void* ptr);
|
|
153
120
|
public:
|
|
154
121
|
long onPaint(FXObject*,FXSelector,void* PTR_EVENT);
|
|
155
122
|
long onEnter(FXObject*,FXSelector,void* PTR_EVENT);
|
data/swig-interfaces/FXListBox.i
CHANGED
|
@@ -42,13 +42,6 @@ class FXPopup;
|
|
|
42
42
|
|
|
43
43
|
/// List Box
|
|
44
44
|
class FXListBox : public FXPacker {
|
|
45
|
-
protected:
|
|
46
|
-
FXButton *field;
|
|
47
|
-
FXMenuButton *button;
|
|
48
|
-
FXList *list;
|
|
49
|
-
FXPopup *pane;
|
|
50
|
-
protected:
|
|
51
|
-
FXListBox(){}
|
|
52
45
|
public:
|
|
53
46
|
long onFocusUp(FXObject*,FXSelector,void* PTR_EVENT);
|
|
54
47
|
long onFocusDown(FXObject*,FXSelector,void* PTR_EVENT);
|
|
@@ -25,8 +25,6 @@ class FXIcon;
|
|
|
25
25
|
|
|
26
26
|
/// MDI Delete button
|
|
27
27
|
class FXMDIDeleteButton : public FXButton {
|
|
28
|
-
protected:
|
|
29
|
-
FXMDIDeleteButton(){}
|
|
30
28
|
public:
|
|
31
29
|
long onPaint(FXObject*,FXSelector,void* PTR_EVENT);
|
|
32
30
|
public:
|
|
@@ -50,8 +48,6 @@ DECLARE_FXWINDOW_VIRTUALS(FXMDIDeleteButton)
|
|
|
50
48
|
|
|
51
49
|
/// MDI Restore button
|
|
52
50
|
class FXMDIRestoreButton : public FXButton {
|
|
53
|
-
protected:
|
|
54
|
-
FXMDIRestoreButton(){}
|
|
55
51
|
public:
|
|
56
52
|
long onPaint(FXObject*,FXSelector,void* PTR_EVENT);
|
|
57
53
|
public:
|
|
@@ -75,8 +71,6 @@ DECLARE_FXWINDOW_VIRTUALS(FXMDIRestoreButton)
|
|
|
75
71
|
|
|
76
72
|
/// MDI Maximize button
|
|
77
73
|
class FXMDIMaximizeButton : public FXButton {
|
|
78
|
-
protected:
|
|
79
|
-
FXMDIMaximizeButton(){}
|
|
80
74
|
public:
|
|
81
75
|
long onPaint(FXObject*,FXSelector,void* PTR_EVENT);
|
|
82
76
|
public:
|
|
@@ -100,8 +94,6 @@ DECLARE_FXWINDOW_VIRTUALS(FXMDIMaximizeButton)
|
|
|
100
94
|
|
|
101
95
|
/// MDI Minimize button
|
|
102
96
|
class FXMDIMinimizeButton : public FXButton {
|
|
103
|
-
protected:
|
|
104
|
-
FXMDIMinimizeButton(){}
|
|
105
97
|
public:
|
|
106
98
|
long onPaint(FXObject*,FXSelector,void* PTR_EVENT);
|
|
107
99
|
public:
|
|
@@ -125,8 +117,6 @@ DECLARE_FXWINDOW_VIRTUALS(FXMDIMinimizeButton)
|
|
|
125
117
|
|
|
126
118
|
/// MDI Window button
|
|
127
119
|
class FXMDIWindowButton : public FXMenuButton {
|
|
128
|
-
protected:
|
|
129
|
-
FXMDIWindowButton(){}
|
|
130
120
|
public:
|
|
131
121
|
long onPaint(FXObject*,FXSelector,void* PTR_EVENT);
|
|
132
122
|
public:
|
|
@@ -150,8 +140,6 @@ DECLARE_FXWINDOW_VIRTUALS(FXMDIWindowButton)
|
|
|
150
140
|
|
|
151
141
|
/// MDI Window Menu
|
|
152
142
|
class FXMDIMenu : public FXMenuPane {
|
|
153
|
-
protected:
|
|
154
|
-
FXMDIMenu(){}
|
|
155
143
|
public:
|
|
156
144
|
%extend {
|
|
157
145
|
/// Construct MDI menu
|
|
@@ -60,57 +60,6 @@ enum {
|
|
|
60
60
|
* ID_SETSTRINGVALUE), and window icon (via ID_SETICONVALUE).
|
|
61
61
|
*/
|
|
62
62
|
class FXMDIChild : public FXComposite {
|
|
63
|
-
protected:
|
|
64
|
-
FXString title; // Window title
|
|
65
|
-
FXMenuButton *windowbtn; // Window button
|
|
66
|
-
FXButton *minimizebtn; // Minimize button
|
|
67
|
-
FXButton *restorebtn; // Restore button
|
|
68
|
-
FXButton *maximizebtn; // Maximize buton
|
|
69
|
-
FXButton *deletebtn; // Close button
|
|
70
|
-
FXFont *font; // Title font
|
|
71
|
-
FXColor baseColor; // Colors
|
|
72
|
-
FXColor hiliteColor;
|
|
73
|
-
FXColor shadowColor;
|
|
74
|
-
FXColor borderColor;
|
|
75
|
-
FXColor titleColor;
|
|
76
|
-
FXColor titleBackColor;
|
|
77
|
-
FXint iconPosX; // Saved icon position
|
|
78
|
-
FXint iconPosY;
|
|
79
|
-
FXint iconWidth;
|
|
80
|
-
FXint iconHeight;
|
|
81
|
-
FXint normalPosX; // Saved normal position
|
|
82
|
-
FXint normalPosY;
|
|
83
|
-
FXint normalWidth;
|
|
84
|
-
FXint normalHeight;
|
|
85
|
-
FXint spotx; // Grab-spot of mouse on window
|
|
86
|
-
FXint spoty;
|
|
87
|
-
FXint xoff; // Mouse offset to add
|
|
88
|
-
FXint newx; // New location of window
|
|
89
|
-
FXint newy;
|
|
90
|
-
FXint neww;
|
|
91
|
-
FXint newh;
|
|
92
|
-
FXuchar mode; // Dragging mode
|
|
93
|
-
protected:
|
|
94
|
-
FXMDIChild();
|
|
95
|
-
void drawRubberBox(FXint x,FXint y,FXint w,FXint h);
|
|
96
|
-
void animateRectangles(FXint ox,FXint oy,FXint ow,FXint oh,FXint nx,FXint ny,FXint nw,FXint nh);
|
|
97
|
-
FXuchar where(FXint x,FXint y);
|
|
98
|
-
void changeCursor(FXint x,FXint y);
|
|
99
|
-
void revertCursor();
|
|
100
|
-
protected:
|
|
101
|
-
enum {
|
|
102
|
-
DRAG_NONE = 0,
|
|
103
|
-
DRAG_TOP = 1,
|
|
104
|
-
DRAG_BOTTOM = 2,
|
|
105
|
-
DRAG_LEFT = 4,
|
|
106
|
-
DRAG_RIGHT = 8,
|
|
107
|
-
DRAG_TOPLEFT = (DRAG_TOP|DRAG_LEFT),
|
|
108
|
-
DRAG_TOPRIGHT = (DRAG_TOP|DRAG_RIGHT),
|
|
109
|
-
DRAG_BOTTOMLEFT = (DRAG_BOTTOM|DRAG_LEFT),
|
|
110
|
-
DRAG_BOTTOMRIGHT = (DRAG_BOTTOM|DRAG_RIGHT),
|
|
111
|
-
DRAG_INVERTED = 16,
|
|
112
|
-
DRAG_TITLE = 32
|
|
113
|
-
};
|
|
114
63
|
public:
|
|
115
64
|
long onPaint(FXObject*,FXSelector,void* PTR_EVENT);
|
|
116
65
|
long onFocusSelf(FXObject*,FXSelector,void* PTR_EVENT);
|
|
@@ -41,12 +41,6 @@ class FXMDIChild;
|
|
|
41
41
|
* automatically grayed out if there are less than X MDI child windows.
|
|
42
42
|
*/
|
|
43
43
|
class FXMDIClient : public FXComposite {
|
|
44
|
-
protected:
|
|
45
|
-
FXMDIChild *active; // Active child
|
|
46
|
-
FXint cascadex; // Cascade offset X
|
|
47
|
-
FXint cascadey; // Cascade offset Y
|
|
48
|
-
protected:
|
|
49
|
-
FXMDIClient();
|
|
50
44
|
public:
|
|
51
45
|
long onCmdActivateNext(FXObject*,FXSelector,void* PTR_IGNORE);
|
|
52
46
|
long onCmdActivatePrev(FXObject*,FXSelector,void* PTR_IGNORE);
|
data/swig-interfaces/FXMat3d.i
CHANGED
data/swig-interfaces/FXMat3f.i
CHANGED
data/swig-interfaces/FXMat4d.i
CHANGED
data/swig-interfaces/FXMat4f.i
CHANGED
data/swig-interfaces/FXMatrix.i
CHANGED
|
@@ -45,10 +45,6 @@ enum {
|
|
|
45
45
|
* as a space-holder.
|
|
46
46
|
*/
|
|
47
47
|
class FXMatrix : public FXPacker {
|
|
48
|
-
protected:
|
|
49
|
-
FXint num;
|
|
50
|
-
protected:
|
|
51
|
-
FXMatrix(){}
|
|
52
48
|
public:
|
|
53
49
|
long onFocusUp(FXObject*,FXSelector,void* PTR_EVENT);
|
|
54
50
|
long onFocusDown(FXObject*,FXSelector,void* PTR_EVENT);
|
data/swig-interfaces/FXMenuBar.i
CHANGED
|
@@ -58,13 +58,6 @@ enum {
|
|
|
58
58
|
* MENUBUTTON_NOARROWS.
|
|
59
59
|
*/
|
|
60
60
|
class FXMenuButton : public FXLabel {
|
|
61
|
-
protected:
|
|
62
|
-
FXPopup *pane; // Pane to pop up
|
|
63
|
-
FXint offsetx; // Shift attachment point x
|
|
64
|
-
FXint offsety; // Shift attachment point y
|
|
65
|
-
FXbool state; // Pane was popped
|
|
66
|
-
protected:
|
|
67
|
-
FXMenuButton();
|
|
68
61
|
public:
|
|
69
62
|
long onPaint(FXObject*,FXSelector,void* PTR_EVENT);
|
|
70
63
|
long onUpdate(FXObject*,FXSelector,void* PTR_IGNORE);
|
|
@@ -38,21 +38,6 @@ class FXFont;
|
|
|
38
38
|
* above a number of menu commands in a menu.
|
|
39
39
|
*/
|
|
40
40
|
class FXMenuCaption : public FXWindow {
|
|
41
|
-
protected:
|
|
42
|
-
FXString label;
|
|
43
|
-
FXString help;
|
|
44
|
-
FXString tip;
|
|
45
|
-
FXIcon *icon;
|
|
46
|
-
FXFont *font;
|
|
47
|
-
FXint hotoff;
|
|
48
|
-
FXHotKey hotkey;
|
|
49
|
-
FXColor textColor;
|
|
50
|
-
FXColor selbackColor;
|
|
51
|
-
FXColor seltextColor;
|
|
52
|
-
FXColor hiliteColor;
|
|
53
|
-
FXColor shadowColor;
|
|
54
|
-
protected:
|
|
55
|
-
FXMenuCaption();
|
|
56
41
|
public:
|
|
57
42
|
long onPaint(FXObject*,FXSelector,void* PTR_EVENT);
|
|
58
43
|
long onUpdate(FXObject*,FXSelector,void* PTR_IGNORE);
|
|
@@ -28,11 +28,6 @@ class FXPopup;
|
|
|
28
28
|
* pull down menu.
|
|
29
29
|
*/
|
|
30
30
|
class FXMenuCascade : public FXMenuCaption {
|
|
31
|
-
protected:
|
|
32
|
-
FXPopup *pane;
|
|
33
|
-
protected:
|
|
34
|
-
FXMenuCascade(){}
|
|
35
|
-
void drawTriangle(FXDCWindow& dc,FXint l,FXint t,FXint r,FXint b);
|
|
36
31
|
public:
|
|
37
32
|
long onPaint(FXObject*,FXSelector,void* PTR_EVENT);
|
|
38
33
|
long onEnter(FXObject*,FXSelector,void* PTR_EVENT);
|
|
@@ -29,14 +29,6 @@
|
|
|
29
29
|
* the void* argument of the message contains the new state.
|
|
30
30
|
*/
|
|
31
31
|
class FXMenuCheck : public FXMenuCommand {
|
|
32
|
-
protected:
|
|
33
|
-
FXuchar check; // State of menu
|
|
34
|
-
FXColor boxColor; // Box color
|
|
35
|
-
protected:
|
|
36
|
-
FXMenuCheck();
|
|
37
|
-
private:
|
|
38
|
-
FXMenuCheck(const FXMenuCheck&);
|
|
39
|
-
FXMenuCheck &operator=(const FXMenuCheck&);
|
|
40
32
|
public:
|
|
41
33
|
long onPaint(FXObject*,FXSelector,void* PTR_EVENT);
|
|
42
34
|
long onButtonPress(FXObject*,FXSelector,void* PTR_EVENT);
|
|
@@ -27,11 +27,6 @@
|
|
|
27
27
|
* When activated, a menu command sends a SEL_COMMAND to its target.
|
|
28
28
|
*/
|
|
29
29
|
class FXMenuCommand : public FXMenuCaption {
|
|
30
|
-
protected:
|
|
31
|
-
FXString accel; // Accelerator string
|
|
32
|
-
FXHotKey acckey; // Accelerator key
|
|
33
|
-
protected:
|
|
34
|
-
FXMenuCommand(){}
|
|
35
30
|
public:
|
|
36
31
|
long onPaint(FXObject*,FXSelector,void* PTR_EVENT);
|
|
37
32
|
long onEnter(FXObject*,FXSelector,void* PTR_EVENT);
|
|
@@ -32,14 +32,6 @@
|
|
|
32
32
|
* properly maintain the state between them.
|
|
33
33
|
*/
|
|
34
34
|
class FXMenuRadio : public FXMenuCommand {
|
|
35
|
-
protected:
|
|
36
|
-
FXuchar check; // State of menu
|
|
37
|
-
FXColor radioColor; // Color of the radio
|
|
38
|
-
protected:
|
|
39
|
-
FXMenuRadio();
|
|
40
|
-
private:
|
|
41
|
-
FXMenuRadio(const FXMenuRadio&);
|
|
42
|
-
FXMenuRadio &operator=(const FXMenuRadio&);
|
|
43
35
|
public:
|
|
44
36
|
long onPaint(FXObject*,FXSelector,void* PTR_EVENT);
|
|
45
37
|
long onButtonPress(FXObject*,FXSelector,void* PTR_EVENT);
|
|
@@ -26,11 +26,6 @@
|
|
|
26
26
|
* used to delineate items in a popup menu.
|
|
27
27
|
*/
|
|
28
28
|
class FXMenuSeparator : public FXWindow {
|
|
29
|
-
protected:
|
|
30
|
-
FXColor hiliteColor;
|
|
31
|
-
FXColor shadowColor;
|
|
32
|
-
protected:
|
|
33
|
-
FXMenuSeparator();
|
|
34
29
|
public:
|
|
35
30
|
long onPaint(FXObject*,FXSelector,void* PTR_EVENT);
|
|
36
31
|
public:
|
|
@@ -28,10 +28,6 @@ class FXPopup;
|
|
|
28
28
|
* for popping up a pulldown menu.
|
|
29
29
|
*/
|
|
30
30
|
class FXMenuTitle : public FXMenuCaption {
|
|
31
|
-
protected:
|
|
32
|
-
FXPopup *pane;
|
|
33
|
-
protected:
|
|
34
|
-
FXMenuTitle(){}
|
|
35
31
|
public:
|
|
36
32
|
long onPaint(FXObject*,FXSelector,void* PTR_EVENT);
|
|
37
33
|
long onEnter(FXObject*,FXSelector,void* PTR_EVENT);
|
|
@@ -60,8 +60,6 @@ enum {
|
|
|
60
60
|
* before the program may continue.
|
|
61
61
|
*/
|
|
62
62
|
class FXMessageBox : public FXDialogBox {
|
|
63
|
-
protected:
|
|
64
|
-
FXMessageBox(){}
|
|
65
63
|
public:
|
|
66
64
|
long onCmdClicked(FXObject*,FXSelector,void* PTR_IGNORE);
|
|
67
65
|
long onCmdCancel(FXObject*,FXSelector,void* PTR_IGNORE);
|
|
@@ -90,29 +88,34 @@ public:
|
|
|
90
88
|
}
|
|
91
89
|
}
|
|
92
90
|
|
|
91
|
+
%typemap(in) (const char* message_format, const char* message_string) {
|
|
92
|
+
$1 = (char*)"%s";
|
|
93
|
+
$2 = RSTRING_PTR($input);
|
|
94
|
+
}
|
|
95
|
+
|
|
93
96
|
/// Show a modal error message
|
|
94
|
-
static FXuint error(FXWindow* owner,FXuint opts,const char* caption,const char*
|
|
97
|
+
static FXuint error(FXWindow* owner,FXuint opts,const char* caption,const char* message_format, const char* message_string);
|
|
95
98
|
|
|
96
99
|
// Show modal error message, in free floating window.
|
|
97
|
-
static FXuint error(FXApp* app,FXuint opts,const char* caption,const char*
|
|
100
|
+
static FXuint error(FXApp* app,FXuint opts,const char* caption,const char* message_format, const char* message_string);
|
|
98
101
|
|
|
99
102
|
/// Show a modal warning message
|
|
100
|
-
static FXuint warning(FXWindow* owner,FXuint opts,const char* caption,const char*
|
|
103
|
+
static FXuint warning(FXWindow* owner,FXuint opts,const char* caption,const char* message_format, const char* message_string);
|
|
101
104
|
|
|
102
105
|
/// Show a modal warning message, in a free-floating window
|
|
103
|
-
static FXuint warning(FXApp* app,FXuint opts,const char* caption,const char*
|
|
106
|
+
static FXuint warning(FXApp* app,FXuint opts,const char* caption,const char* message_format, const char* message_string);
|
|
104
107
|
|
|
105
108
|
/// Show a modal question dialog
|
|
106
|
-
static FXuint question(FXWindow* owner,FXuint opts,const char* caption,const char*
|
|
109
|
+
static FXuint question(FXWindow* owner,FXuint opts,const char* caption,const char* message_format, const char* message_string);
|
|
107
110
|
|
|
108
111
|
/// Show a modal question dialog, in a free-floating window
|
|
109
|
-
static FXuint question(FXApp* app,FXuint opts,const char* caption,const char*
|
|
112
|
+
static FXuint question(FXApp* app,FXuint opts,const char* caption,const char* message_format, const char* message_string);
|
|
110
113
|
|
|
111
114
|
/// Show a modal information dialog
|
|
112
|
-
static FXuint information(FXWindow* owner,FXuint opts,const char* caption,const char*
|
|
115
|
+
static FXuint information(FXWindow* owner,FXuint opts,const char* caption,const char* message_format, const char* message_string);
|
|
113
116
|
|
|
114
117
|
/// Show a modal information dialog, in a free-floating window
|
|
115
|
-
static FXuint information(FXApp* app,FXuint opts,const char* caption,const char*
|
|
118
|
+
static FXuint information(FXApp* app,FXuint opts,const char* caption,const char* message_format, const char* message_string);
|
|
116
119
|
|
|
117
120
|
// Destructor
|
|
118
121
|
virtual ~FXMessageBox();
|