fxruby 1.6.28 → 1.6.29

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -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);
@@ -28,8 +28,6 @@
28
28
  * The translator class translates a message to another language.
29
29
  */
30
30
  class FXTranslator : public FXObject {
31
- protected:
32
- FXTranslator();
33
31
  public:
34
32
 
35
33
  %extend {
@@ -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)->owner=self;
264
- }
220
+ dynamic_cast<FXRbTreeItem*>(item)->owned=TRUE;
221
+ }
265
222
  return self->insertItem(other,father,item,notify);
266
223
  }
224
+ }
267
225
 
268
- /// Insert item with given text and optional icons, and user-data pointer under father before other item
269
- FXTreeItem* insertItem(FXTreeItem* other,FXTreeItem* father,const FXString& text,FXIcon* oi=NULL,FXIcon* ci=NULL,void* ITEMDATA=NULL,FXbool notify=FALSE){
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)->owner=self;
281
- }
233
+ dynamic_cast<FXRbTreeItem*>(item)->owned=TRUE;
234
+ }
282
235
  return self->appendItem(father,item,notify);
283
236
  }
237
+ }
284
238
 
285
- /// Append item with given text and optional icons, and user-data pointer as last child of father
286
- FXTreeItem* appendItem(FXTreeItem* father,const FXString& text,FXIcon* oi=NULL,FXIcon* ci=NULL,void* ITEMDATA=NULL,FXbool notify=FALSE){
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)->owner=self;
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)->owner=self;
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
- /// Insert item with given text and optional icons, and user-data pointer under father before other item
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)->owner=self;
115
- }
102
+ dynamic_cast<FXRbTreeItem*>(item)->owned=TRUE;
103
+ }
116
104
  return self->appendItem(father,item);
117
105
  }
106
+ }
118
107
 
119
- /// Append item with given text and optional icons, and user-data pointer as last child of father
120
- FXTreeItem* appendItem(FXTreeItem* father,const FXString& text,FXIcon* oi=NULL,FXIcon* ci=NULL,void* ITEMDATA=NULL){
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)->owner=self;
132
- }
115
+ dynamic_cast<FXRbTreeItem*>(item)->owned=TRUE;
116
+ }
133
117
  return self->prependItem(father,item);
134
118
  }
119
+ }
135
120
 
136
- /// Prepend item with given text and optional icons, and user-data pointer as first child of father
137
- FXTreeItem* prependItem(FXTreeItem* father,const FXString& text,FXIcon* oi=NULL,FXIcon* ci=NULL,void* ITEMDATA=NULL){
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
@@ -27,8 +27,6 @@
27
27
  * depending on the child window's layout hints.
28
28
  */
29
29
  class FXVerticalFrame : public FXPacker {
30
- protected:
31
- FXVerticalFrame(){}
32
30
  public:
33
31
 
34
32
  /// Construct a vertical frame layout manager
@@ -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
@@ -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) NUM2USHRT(rb_ary_entry(typesArray,i));
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) NUM2USHRT(rb_ary_entry(typesArray,i));
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) NUM2USHRT(rb_ary_entry(typesArray,i));
603
+ types[i]=(FXDragType) NUM2UINT(rb_ary_entry(typesArray,i));
654
604
  }
655
605
  }
656
606
  bool result=self->beginDrag(types,numtypes);
@@ -28,23 +28,6 @@
28
28
  * and ask various questions at each step in the installation.
29
29
  */
30
30
  class FXWizard : public FXDialogBox {
31
- protected:
32
- FXHorizontalFrame *buttons; // Button frame
33
- FXImageFrame *sidebar; // Sidebar comprising image
34
- FXButton *advance; // Advance to next stage
35
- FXButton *retreat; // Retreat to last stage
36
- FXButton *finish; // Finish panel
37
- FXButton *cancel; // Cancel button
38
- FXSwitcher *panels; // Sub panels
39
- FXIcon *finishicon;
40
- FXIcon *nexticon;
41
- FXIcon *backicon;
42
- protected:
43
- FXWizard(){}
44
- void construct();
45
- private:
46
- FXWizard(const FXWizard&);
47
- FXWizard &operator=(const FXWizard&);
48
31
  public:
49
32
  long onUpdFinish(FXObject*,FXSelector,void* PTR_IGNORE);
50
33
  long onCmdNext(FXObject*,FXSelector,void* PTR_IGNORE);
@@ -23,8 +23,6 @@
23
23
 
24
24
  /// X Bitmap icon
25
25
  class FXXBMIcon : public FXIcon {
26
- protected:
27
- FXXBMIcon(){}
28
26
  public:
29
27
  %extend {
30
28
  static VALUE fileExt() {
@@ -23,8 +23,6 @@
23
23
 
24
24
  /// X Bitmap image
25
25
  class FXXBMImage : public FXImage {
26
- protected:
27
- FXXBMImage(){}
28
26
  public:
29
27
  %extend {
30
28
  static VALUE fileExt() {