fxruby 1.6.28-x64-mingw32 → 1.6.29-x64-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.
Files changed (229) hide show
  1. checksums.yaml +7 -7
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +3 -2
  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/2.0/fox16_c.so +0 -0
  40. data/lib/2.1/fox16_c.so +0 -0
  41. data/lib/2.2/fox16_c.so +0 -0
  42. data/lib/fox16.rb +16 -6
  43. data/lib/fox16/core.rb +14 -0
  44. data/lib/fox16/glshapes.rb +1 -0
  45. data/lib/fox16/version.rb +1 -1
  46. data/lib/x64-mingw32/libFOX-1.6-0.dll +0 -0
  47. data/lib/x64-mingw32/libfxscintilla-20.dll +0 -0
  48. data/lib/x64-mingw32/libgcc_s_sjlj-1.dll +0 -0
  49. data/lib/x64-mingw32/libjpeg-8.dll +0 -0
  50. data/lib/x64-mingw32/libpng15-15.dll +0 -0
  51. data/lib/x64-mingw32/libstdc++-6.dll +0 -0
  52. data/lib/x64-mingw32/libtiff-5.dll +0 -0
  53. data/lib/x64-mingw32/libwinpthread-1.dll +0 -0
  54. data/lib/x64-mingw32/zlib1.dll +0 -0
  55. data/rdoc-sources/FXBMPIcon.rb +1 -1
  56. data/rdoc-sources/FXImage.rb +8 -2
  57. data/swig-interfaces/FX4Splitter.i +0 -6
  58. data/swig-interfaces/FX7Segment.i +0 -8
  59. data/swig-interfaces/FXAccelTable.i +0 -7
  60. data/swig-interfaces/FXApp.i +15 -23
  61. data/swig-interfaces/FXArrowButton.i +0 -10
  62. data/swig-interfaces/FXBMPIcon.i +0 -2
  63. data/swig-interfaces/FXBMPImage.i +0 -2
  64. data/swig-interfaces/FXBitmap.i +0 -6
  65. data/swig-interfaces/FXButton.i +0 -4
  66. data/swig-interfaces/FXCURCursor.i +0 -2
  67. data/swig-interfaces/FXCanvas.i +0 -2
  68. data/swig-interfaces/FXCheckButton.i +0 -7
  69. data/swig-interfaces/FXChoiceBox.i +0 -8
  70. data/swig-interfaces/FXColorBar.i +0 -8
  71. data/swig-interfaces/FXColorDialog.i +0 -4
  72. data/swig-interfaces/FXColorList.i +0 -9
  73. data/swig-interfaces/FXColorRing.i +0 -40
  74. data/swig-interfaces/FXColorSelector.i +0 -25
  75. data/swig-interfaces/FXColorWell.i +0 -10
  76. data/swig-interfaces/FXColorWheel.i +0 -15
  77. data/swig-interfaces/FXComboBox.i +0 -7
  78. data/swig-interfaces/FXComposeContext.i +0 -5
  79. data/swig-interfaces/FXComposite.i +0 -4
  80. data/swig-interfaces/FXCursor.i +0 -9
  81. data/swig-interfaces/FXDC.i +0 -26
  82. data/swig-interfaces/FXDCPrint.i +0 -19
  83. data/swig-interfaces/FXDataTarget.i +0 -5
  84. data/swig-interfaces/FXDebugTarget.i +0 -4
  85. data/swig-interfaces/FXDelegator.i +0 -2
  86. data/swig-interfaces/FXDial.i +0 -14
  87. data/swig-interfaces/FXDialogBox.i +0 -2
  88. data/swig-interfaces/FXDict.i +0 -27
  89. data/swig-interfaces/FXDirDialog.i +0 -5
  90. data/swig-interfaces/FXDirList.i +0 -31
  91. data/swig-interfaces/FXDirSelector.i +0 -19
  92. data/swig-interfaces/FXDockBar.i +0 -8
  93. data/swig-interfaces/FXDockHandler.i +0 -10
  94. data/swig-interfaces/FXDockSite.i +0 -7
  95. data/swig-interfaces/FXDockTitle.i +0 -6
  96. data/swig-interfaces/FXDragCorner.i +0 -9
  97. data/swig-interfaces/FXDrawable.i +0 -7
  98. data/swig-interfaces/FXFileDialog.i +0 -5
  99. data/swig-interfaces/FXFileDict.i +0 -5
  100. data/swig-interfaces/FXFileList.i +0 -23
  101. data/swig-interfaces/FXFileSelector.i +0 -33
  102. data/swig-interfaces/FXFoldingList.i +6 -19
  103. data/swig-interfaces/FXFont.i +0 -20
  104. data/swig-interfaces/FXFontDialog.i +3 -7
  105. data/swig-interfaces/FXFontSelector.i +3 -29
  106. data/swig-interfaces/FXFrame.i +0 -20
  107. data/swig-interfaces/FXGIFIcon.i +0 -2
  108. data/swig-interfaces/FXGIFImage.i +0 -2
  109. data/swig-interfaces/FXGLCanvas.i +0 -4
  110. data/swig-interfaces/FXGLContext.i +0 -4
  111. data/swig-interfaces/FXGLShape.i +0 -11
  112. data/swig-interfaces/FXGLViewer.i +0 -65
  113. data/swig-interfaces/FXGradientBar.i +8 -9
  114. data/swig-interfaces/FXGroupBox.i +0 -6
  115. data/swig-interfaces/FXHeader.i +0 -24
  116. data/swig-interfaces/FXHorizontalFrame.i +0 -2
  117. data/swig-interfaces/FXICOIcon.i +0 -2
  118. data/swig-interfaces/FXICOImage.i +0 -2
  119. data/swig-interfaces/FXIcon.i +0 -7
  120. data/swig-interfaces/FXIconList.i +0 -51
  121. data/swig-interfaces/FXIconSource.i +0 -4
  122. data/swig-interfaces/FXId.i +0 -4
  123. data/swig-interfaces/FXImage.i +21 -4
  124. data/swig-interfaces/FXImageFrame.i +0 -7
  125. data/swig-interfaces/FXImageView.i +0 -6
  126. data/swig-interfaces/FXInputDialog.i +0 -8
  127. data/swig-interfaces/FXJPGIcon.i +0 -4
  128. data/swig-interfaces/FXJPGImage.i +0 -4
  129. data/swig-interfaces/FXKnob.i +0 -12
  130. data/swig-interfaces/FXLabel.i +0 -16
  131. data/swig-interfaces/FXList.i +0 -33
  132. data/swig-interfaces/FXListBox.i +0 -7
  133. data/swig-interfaces/FXMDIButton.i +0 -12
  134. data/swig-interfaces/FXMDIChild.i +0 -51
  135. data/swig-interfaces/FXMDIClient.i +0 -6
  136. data/swig-interfaces/FXMainWindow.i +0 -2
  137. data/swig-interfaces/FXMat3d.i +0 -2
  138. data/swig-interfaces/FXMat3f.i +0 -2
  139. data/swig-interfaces/FXMat4d.i +0 -2
  140. data/swig-interfaces/FXMat4f.i +0 -2
  141. data/swig-interfaces/FXMatrix.i +0 -4
  142. data/swig-interfaces/FXMemoryStream.i +0 -1
  143. data/swig-interfaces/FXMenuBar.i +0 -2
  144. data/swig-interfaces/FXMenuButton.i +0 -7
  145. data/swig-interfaces/FXMenuCaption.i +0 -15
  146. data/swig-interfaces/FXMenuCascade.i +0 -5
  147. data/swig-interfaces/FXMenuCheck.i +0 -8
  148. data/swig-interfaces/FXMenuCommand.i +0 -5
  149. data/swig-interfaces/FXMenuPane.i +0 -2
  150. data/swig-interfaces/FXMenuRadio.i +0 -8
  151. data/swig-interfaces/FXMenuSeparator.i +0 -5
  152. data/swig-interfaces/FXMenuTitle.i +0 -4
  153. data/swig-interfaces/FXMessageBox.i +13 -10
  154. data/swig-interfaces/FXOptionMenu.i +0 -7
  155. data/swig-interfaces/FXPCXIcon.i +0 -2
  156. data/swig-interfaces/FXPCXImage.i +0 -2
  157. data/swig-interfaces/FXPNGIcon.i +0 -2
  158. data/swig-interfaces/FXPNGImage.i +0 -2
  159. data/swig-interfaces/FXPPMIcon.i +0 -2
  160. data/swig-interfaces/FXPPMImage.i +0 -2
  161. data/swig-interfaces/FXPacker.i +0 -23
  162. data/swig-interfaces/FXPicker.i +0 -2
  163. data/swig-interfaces/FXPopup.i +0 -18
  164. data/swig-interfaces/FXPrintDialog.i +0 -31
  165. data/swig-interfaces/FXProgressBar.i +0 -12
  166. data/swig-interfaces/FXProgressDialog.i +0 -8
  167. data/swig-interfaces/FXRGBIcon.i +0 -2
  168. data/swig-interfaces/FXRGBImage.i +0 -2
  169. data/swig-interfaces/FXRadioButton.i +0 -7
  170. data/swig-interfaces/FXRecentFiles.i +0 -6
  171. data/swig-interfaces/FXRegion.i +0 -2
  172. data/swig-interfaces/FXRegistry.i +0 -12
  173. data/swig-interfaces/FXReplaceDialog.i +0 -15
  174. data/swig-interfaces/FXRootWindow.i +0 -6
  175. data/swig-interfaces/FXRuler.i +0 -45
  176. data/swig-interfaces/FXScrollArea.i +0 -14
  177. data/swig-interfaces/FXScrollBar.i +0 -2
  178. data/swig-interfaces/FXScrollPane.i +0 -10
  179. data/swig-interfaces/FXScrollWindow.i +0 -2
  180. data/swig-interfaces/FXSearchDialog.i +0 -2
  181. data/swig-interfaces/FXSeparator.i +0 -9
  182. data/swig-interfaces/FXSettings.i +0 -11
  183. data/swig-interfaces/FXShell.i +0 -4
  184. data/swig-interfaces/FXShutter.i +0 -14
  185. data/swig-interfaces/FXSlider.i +0 -19
  186. data/swig-interfaces/FXSpinner.i +0 -9
  187. data/swig-interfaces/FXSplashWindow.i +0 -8
  188. data/swig-interfaces/FXSplitter.i +0 -10
  189. data/swig-interfaces/FXSpring.i +0 -8
  190. data/swig-interfaces/FXStatusBar.i +0 -5
  191. data/swig-interfaces/FXStatusLine.i +0 -8
  192. data/swig-interfaces/FXStringDict.i +0 -3
  193. data/swig-interfaces/FXSwitcher.i +0 -4
  194. data/swig-interfaces/FXTGAIcon.i +0 -2
  195. data/swig-interfaces/FXTGAImage.i +0 -2
  196. data/swig-interfaces/FXTIFIcon.i +0 -4
  197. data/swig-interfaces/FXTIFImage.i +0 -4
  198. data/swig-interfaces/FXTabBar.i +0 -5
  199. data/swig-interfaces/FXTabBook.i +0 -2
  200. data/swig-interfaces/FXTabItem.i +0 -2
  201. data/swig-interfaces/FXTable.i +0 -17
  202. data/swig-interfaces/FXToggleButton.i +0 -12
  203. data/swig-interfaces/FXToolBarGrip.i +0 -4
  204. data/swig-interfaces/FXToolBarShell.i +0 -16
  205. data/swig-interfaces/FXToolBarTab.i +0 -13
  206. data/swig-interfaces/FXToolTip.i +0 -10
  207. data/swig-interfaces/FXTopWindow.i +0 -17
  208. data/swig-interfaces/FXTranslator.i +0 -2
  209. data/swig-interfaces/FXTreeList.i +18 -75
  210. data/swig-interfaces/FXTreeListBox.i +18 -38
  211. data/swig-interfaces/FXVerticalFrame.i +0 -2
  212. data/swig-interfaces/FXVisual.i +0 -38
  213. data/swig-interfaces/FXWindow.i +3 -53
  214. data/swig-interfaces/FXWizard.i +0 -17
  215. data/swig-interfaces/FXXBMIcon.i +0 -2
  216. data/swig-interfaces/FXXBMImage.i +0 -2
  217. data/swig-interfaces/FXXPMIcon.i +0 -2
  218. data/swig-interfaces/FXXPMImage.i +0 -2
  219. data/swig-interfaces/fxdefs.i +33 -35
  220. data/swig-interfaces/ruby-typemaps.i +19 -2
  221. data/test/TC_FXBMPImage.rb +13 -0
  222. data/test/TC_FXFileStream.rb +3 -3
  223. data/test/TC_FXImage.rb +40 -2
  224. data/test/TC_FXSize.rb +12 -0
  225. data/test/TC_FXWindow.rb +26 -0
  226. data/test/TC_Misc.rb +2 -0
  227. metadata +175 -159
  228. metadata.gz.sig +0 -0
  229. data/Rakefile.cross +0 -421
@@ -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);
@@ -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);
@@ -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);