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.
Files changed (217) hide show
  1. checksums.yaml +7 -7
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/.gitignore +1 -1
  5. data/History.txt +13 -1
  6. data/Manifest.txt +1 -1
  7. data/Rakefile +49 -39
  8. data/examples/RAA.rb +8 -2
  9. data/examples/WhatAQuietStiff.rb +2 -2
  10. data/examples/babelfish.rb +9 -2
  11. data/examples/browser.rb +1 -1
  12. data/examples/button.rb +3 -9
  13. data/examples/canvasdemo.rb +3 -3
  14. data/examples/charts.rb +9 -2
  15. data/examples/dctest.rb +4 -10
  16. data/examples/gembrowser.rb +4 -4
  17. data/examples/gltest.rb +3 -3
  18. data/examples/glviewer.rb +3 -9
  19. data/examples/groupbox.rb +3 -9
  20. data/examples/header.rb +1 -1
  21. data/examples/hello2.rb +1 -1
  22. data/examples/iRAA.rb +7 -1
  23. data/examples/iconlist.rb +3 -9
  24. data/examples/imageviewer.rb +3 -9
  25. data/examples/mditest.rb +1 -1
  26. data/examples/raabrowser.rb +8 -2
  27. data/examples/rmagick.rb +7 -1
  28. data/examples/shutter.rb +3 -9
  29. data/examples/splitter.rb +3 -9
  30. data/examples/table.rb +26 -3
  31. data/examples/textedit/textedit.rb +3 -3
  32. data/ext/fox16_c/FXRbApp.cpp +1 -1
  33. data/ext/fox16_c/FXRuby.cpp +18 -9
  34. data/ext/fox16_c/extconf.rb +252 -11
  35. data/ext/fox16_c/include/FXRbTreeList.h +3 -3
  36. data/ext/fox16_c/include/FXRuby.h +7 -6
  37. data/ext/fox16_c/markfuncs.cpp +3 -22
  38. data/ext/fox16_c/unregisterOwnedObjects.cpp +1 -2
  39. data/lib/fox16.rb +16 -6
  40. data/lib/fox16/core.rb +14 -0
  41. data/lib/fox16/glshapes.rb +1 -0
  42. data/lib/fox16/version.rb +1 -1
  43. data/rdoc-sources/FXBMPIcon.rb +1 -1
  44. data/rdoc-sources/FXImage.rb +8 -2
  45. data/swig-interfaces/FX4Splitter.i +0 -6
  46. data/swig-interfaces/FX7Segment.i +0 -8
  47. data/swig-interfaces/FXAccelTable.i +0 -7
  48. data/swig-interfaces/FXApp.i +15 -23
  49. data/swig-interfaces/FXArrowButton.i +0 -10
  50. data/swig-interfaces/FXBMPIcon.i +0 -2
  51. data/swig-interfaces/FXBMPImage.i +0 -2
  52. data/swig-interfaces/FXBitmap.i +0 -6
  53. data/swig-interfaces/FXButton.i +0 -4
  54. data/swig-interfaces/FXCURCursor.i +0 -2
  55. data/swig-interfaces/FXCanvas.i +0 -2
  56. data/swig-interfaces/FXCheckButton.i +0 -7
  57. data/swig-interfaces/FXChoiceBox.i +0 -8
  58. data/swig-interfaces/FXColorBar.i +0 -8
  59. data/swig-interfaces/FXColorDialog.i +0 -4
  60. data/swig-interfaces/FXColorList.i +0 -9
  61. data/swig-interfaces/FXColorRing.i +0 -40
  62. data/swig-interfaces/FXColorSelector.i +0 -25
  63. data/swig-interfaces/FXColorWell.i +0 -10
  64. data/swig-interfaces/FXColorWheel.i +0 -15
  65. data/swig-interfaces/FXComboBox.i +0 -7
  66. data/swig-interfaces/FXComposeContext.i +0 -5
  67. data/swig-interfaces/FXComposite.i +0 -4
  68. data/swig-interfaces/FXCursor.i +0 -9
  69. data/swig-interfaces/FXDC.i +0 -26
  70. data/swig-interfaces/FXDCPrint.i +0 -19
  71. data/swig-interfaces/FXDataTarget.i +0 -5
  72. data/swig-interfaces/FXDebugTarget.i +0 -4
  73. data/swig-interfaces/FXDelegator.i +0 -2
  74. data/swig-interfaces/FXDial.i +0 -14
  75. data/swig-interfaces/FXDialogBox.i +0 -2
  76. data/swig-interfaces/FXDict.i +0 -27
  77. data/swig-interfaces/FXDirDialog.i +0 -5
  78. data/swig-interfaces/FXDirList.i +0 -31
  79. data/swig-interfaces/FXDirSelector.i +0 -19
  80. data/swig-interfaces/FXDockBar.i +0 -8
  81. data/swig-interfaces/FXDockHandler.i +0 -10
  82. data/swig-interfaces/FXDockSite.i +0 -7
  83. data/swig-interfaces/FXDockTitle.i +0 -6
  84. data/swig-interfaces/FXDragCorner.i +0 -9
  85. data/swig-interfaces/FXDrawable.i +0 -7
  86. data/swig-interfaces/FXFileDialog.i +0 -5
  87. data/swig-interfaces/FXFileDict.i +0 -5
  88. data/swig-interfaces/FXFileList.i +0 -23
  89. data/swig-interfaces/FXFileSelector.i +0 -33
  90. data/swig-interfaces/FXFoldingList.i +6 -19
  91. data/swig-interfaces/FXFont.i +0 -20
  92. data/swig-interfaces/FXFontDialog.i +3 -7
  93. data/swig-interfaces/FXFontSelector.i +3 -29
  94. data/swig-interfaces/FXFrame.i +0 -20
  95. data/swig-interfaces/FXGIFIcon.i +0 -2
  96. data/swig-interfaces/FXGIFImage.i +0 -2
  97. data/swig-interfaces/FXGLCanvas.i +0 -4
  98. data/swig-interfaces/FXGLContext.i +0 -4
  99. data/swig-interfaces/FXGLShape.i +0 -11
  100. data/swig-interfaces/FXGLViewer.i +0 -65
  101. data/swig-interfaces/FXGradientBar.i +8 -9
  102. data/swig-interfaces/FXGroupBox.i +0 -6
  103. data/swig-interfaces/FXHeader.i +0 -24
  104. data/swig-interfaces/FXHorizontalFrame.i +0 -2
  105. data/swig-interfaces/FXICOIcon.i +0 -2
  106. data/swig-interfaces/FXICOImage.i +0 -2
  107. data/swig-interfaces/FXIcon.i +0 -7
  108. data/swig-interfaces/FXIconList.i +0 -51
  109. data/swig-interfaces/FXIconSource.i +0 -4
  110. data/swig-interfaces/FXId.i +0 -4
  111. data/swig-interfaces/FXImage.i +21 -4
  112. data/swig-interfaces/FXImageFrame.i +0 -7
  113. data/swig-interfaces/FXImageView.i +0 -6
  114. data/swig-interfaces/FXInputDialog.i +0 -8
  115. data/swig-interfaces/FXJPGIcon.i +0 -4
  116. data/swig-interfaces/FXJPGImage.i +0 -4
  117. data/swig-interfaces/FXKnob.i +0 -12
  118. data/swig-interfaces/FXLabel.i +0 -16
  119. data/swig-interfaces/FXList.i +0 -33
  120. data/swig-interfaces/FXListBox.i +0 -7
  121. data/swig-interfaces/FXMDIButton.i +0 -12
  122. data/swig-interfaces/FXMDIChild.i +0 -51
  123. data/swig-interfaces/FXMDIClient.i +0 -6
  124. data/swig-interfaces/FXMainWindow.i +0 -2
  125. data/swig-interfaces/FXMat3d.i +0 -2
  126. data/swig-interfaces/FXMat3f.i +0 -2
  127. data/swig-interfaces/FXMat4d.i +0 -2
  128. data/swig-interfaces/FXMat4f.i +0 -2
  129. data/swig-interfaces/FXMatrix.i +0 -4
  130. data/swig-interfaces/FXMemoryStream.i +0 -1
  131. data/swig-interfaces/FXMenuBar.i +0 -2
  132. data/swig-interfaces/FXMenuButton.i +0 -7
  133. data/swig-interfaces/FXMenuCaption.i +0 -15
  134. data/swig-interfaces/FXMenuCascade.i +0 -5
  135. data/swig-interfaces/FXMenuCheck.i +0 -8
  136. data/swig-interfaces/FXMenuCommand.i +0 -5
  137. data/swig-interfaces/FXMenuPane.i +0 -2
  138. data/swig-interfaces/FXMenuRadio.i +0 -8
  139. data/swig-interfaces/FXMenuSeparator.i +0 -5
  140. data/swig-interfaces/FXMenuTitle.i +0 -4
  141. data/swig-interfaces/FXMessageBox.i +13 -10
  142. data/swig-interfaces/FXOptionMenu.i +0 -7
  143. data/swig-interfaces/FXPCXIcon.i +0 -2
  144. data/swig-interfaces/FXPCXImage.i +0 -2
  145. data/swig-interfaces/FXPNGIcon.i +0 -2
  146. data/swig-interfaces/FXPNGImage.i +0 -2
  147. data/swig-interfaces/FXPPMIcon.i +0 -2
  148. data/swig-interfaces/FXPPMImage.i +0 -2
  149. data/swig-interfaces/FXPacker.i +0 -23
  150. data/swig-interfaces/FXPicker.i +0 -2
  151. data/swig-interfaces/FXPopup.i +0 -18
  152. data/swig-interfaces/FXPrintDialog.i +0 -31
  153. data/swig-interfaces/FXProgressBar.i +0 -12
  154. data/swig-interfaces/FXProgressDialog.i +0 -8
  155. data/swig-interfaces/FXRGBIcon.i +0 -2
  156. data/swig-interfaces/FXRGBImage.i +0 -2
  157. data/swig-interfaces/FXRadioButton.i +0 -7
  158. data/swig-interfaces/FXRecentFiles.i +0 -6
  159. data/swig-interfaces/FXRegion.i +0 -2
  160. data/swig-interfaces/FXRegistry.i +0 -12
  161. data/swig-interfaces/FXReplaceDialog.i +0 -15
  162. data/swig-interfaces/FXRootWindow.i +0 -6
  163. data/swig-interfaces/FXRuler.i +0 -45
  164. data/swig-interfaces/FXScrollArea.i +0 -14
  165. data/swig-interfaces/FXScrollBar.i +0 -2
  166. data/swig-interfaces/FXScrollPane.i +0 -10
  167. data/swig-interfaces/FXScrollWindow.i +0 -2
  168. data/swig-interfaces/FXSearchDialog.i +0 -2
  169. data/swig-interfaces/FXSeparator.i +0 -9
  170. data/swig-interfaces/FXSettings.i +0 -11
  171. data/swig-interfaces/FXShell.i +0 -4
  172. data/swig-interfaces/FXShutter.i +0 -14
  173. data/swig-interfaces/FXSlider.i +0 -19
  174. data/swig-interfaces/FXSpinner.i +0 -9
  175. data/swig-interfaces/FXSplashWindow.i +0 -8
  176. data/swig-interfaces/FXSplitter.i +0 -10
  177. data/swig-interfaces/FXSpring.i +0 -8
  178. data/swig-interfaces/FXStatusBar.i +0 -5
  179. data/swig-interfaces/FXStatusLine.i +0 -8
  180. data/swig-interfaces/FXStringDict.i +0 -3
  181. data/swig-interfaces/FXSwitcher.i +0 -4
  182. data/swig-interfaces/FXTGAIcon.i +0 -2
  183. data/swig-interfaces/FXTGAImage.i +0 -2
  184. data/swig-interfaces/FXTIFIcon.i +0 -4
  185. data/swig-interfaces/FXTIFImage.i +0 -4
  186. data/swig-interfaces/FXTabBar.i +0 -5
  187. data/swig-interfaces/FXTabBook.i +0 -2
  188. data/swig-interfaces/FXTabItem.i +0 -2
  189. data/swig-interfaces/FXTable.i +0 -17
  190. data/swig-interfaces/FXToggleButton.i +0 -12
  191. data/swig-interfaces/FXToolBarGrip.i +0 -4
  192. data/swig-interfaces/FXToolBarShell.i +0 -16
  193. data/swig-interfaces/FXToolBarTab.i +0 -13
  194. data/swig-interfaces/FXToolTip.i +0 -10
  195. data/swig-interfaces/FXTopWindow.i +0 -17
  196. data/swig-interfaces/FXTranslator.i +0 -2
  197. data/swig-interfaces/FXTreeList.i +18 -75
  198. data/swig-interfaces/FXTreeListBox.i +18 -38
  199. data/swig-interfaces/FXVerticalFrame.i +0 -2
  200. data/swig-interfaces/FXVisual.i +0 -38
  201. data/swig-interfaces/FXWindow.i +3 -53
  202. data/swig-interfaces/FXWizard.i +0 -17
  203. data/swig-interfaces/FXXBMIcon.i +0 -2
  204. data/swig-interfaces/FXXBMImage.i +0 -2
  205. data/swig-interfaces/FXXPMIcon.i +0 -2
  206. data/swig-interfaces/FXXPMImage.i +0 -2
  207. data/swig-interfaces/fxdefs.i +33 -35
  208. data/swig-interfaces/ruby-typemaps.i +19 -2
  209. data/test/TC_FXBMPImage.rb +13 -0
  210. data/test/TC_FXFileStream.rb +3 -3
  211. data/test/TC_FXImage.rb +40 -2
  212. data/test/TC_FXSize.rb +12 -0
  213. data/test/TC_FXWindow.rb +26 -0
  214. data/test/TC_Misc.rb +2 -0
  215. metadata +164 -158
  216. metadata.gz.sig +0 -0
  217. data/Rakefile.cross +0 -421
@@ -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);
@@ -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);
@@ -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);
@@ -30,8 +30,6 @@
30
30
  * raised, the MainWindow will delete itself.
31
31
  */
32
32
  class FXMainWindow : public FXTopWindow {
33
- protected:
34
- FXMainWindow(){}
35
33
  public:
36
34
  %extend {
37
35
  /// Construct a main window
@@ -22,8 +22,6 @@
22
22
 
23
23
  /// Double-precision 3x3 matrix
24
24
  class FXMat3d {
25
- protected:
26
- FXVec3d m[3];
27
25
  public:
28
26
 
29
27
  /// Default constructor
@@ -22,8 +22,6 @@
22
22
 
23
23
  /// Single-precision 3x3 matrix
24
24
  class FXMat3f {
25
- protected:
26
- FXVec3f m[3];
27
25
  public:
28
26
 
29
27
  /// Default constructor
@@ -22,8 +22,6 @@
22
22
 
23
23
  /// Double-precision 4x4 matrix
24
24
  class FXMat4d {
25
- protected:
26
- FXVec4d m[4];
27
25
  public:
28
26
  /// Constructors
29
27
  FXMat4d();
@@ -23,8 +23,6 @@
23
23
 
24
24
  // Single-precision 4x4 matrix
25
25
  class FXMat4f {
26
- protected:
27
- FXVec4f m[4];
28
26
  public:
29
27
  /// Constructors
30
28
  FXMat4f();
@@ -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);
@@ -22,7 +22,6 @@
22
22
 
23
23
  /// Memory Store Definition
24
24
  class FXMemoryStream : public FXStream {
25
- protected:
26
25
  public:
27
26
 
28
27
  /// Create memory store
@@ -22,8 +22,6 @@
22
22
 
23
23
  /// Menu bar
24
24
  class FXMenuBar : public FXToolBar {
25
- protected:
26
- FXMenuBar(){}
27
25
  public:
28
26
  long onFocusLeft(FXObject*,FXSelector,void* PTR_EVENT);
29
27
  long onFocusRight(FXObject*,FXSelector,void* PTR_EVENT);
@@ -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);
@@ -23,8 +23,6 @@
23
23
 
24
24
  /// Popup menu pane
25
25
  class FXMenuPane : public FXPopup {
26
- protected:
27
- FXMenuPane(){}
28
26
  public:
29
27
  %extend {
30
28
  /// Construct menu pane
@@ -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* message);
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* message);
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* message);
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* message);
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* message);
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* message);
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* message);
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* message);
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();