Displaying 5 results from an estimated 5 matches for "wxprintpreview".
2007 May 04
0
[1010] trunk/wxruby2: PrintPreview ok method name changed to is_ok, update sample
...ethod name changed to is_ok, update sample</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwxruby2samplesprintingprintingrb">trunk/wxruby2/samples/printing/printing.rb</a></li>
<li><a href="#trunkwxruby2swigclassesincludewxPrintPreviewh">trunk/wxruby2/swig/classes/include/wxPrintPreview.h</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwxruby2samplesprintingprintingrb"></a>
<div class="modfile"><h4>Modified: t...
2007 Jul 19
0
[1122] trunk/wxruby2/swig/classes/PrintPreview.i: Mark the PrintOuts associated with a Preview to prevent premature
...(rev 1122)
</span><span class="lines">@@ -10,6 +10,19 @@
</span><span class="cx"> #include <wx/print.h>
</span><span class="cx"> %}
</span><span class="cx">
</span><ins>+%{
+ static void mark_wxPrintPreview(void *ptr)
+ {
+        wxPrintPreview* print_preview = (wxPrintPreview*)ptr;
+        wxPrintout* printout = print_preview->GetPrintout();
+  &nbs...
2004 Nov 19
3
Adding to wxRuby (Now I fired up)
Nick, Curt, Kevin,
Now that I have dabbled ever so slightly in adding to wxRuby on a source
level (and it wasn''t perfect, Nick had to fix some of my code!), I feel
all fired up.
Any areas specific that need to be added that I could test my luck with
again, or can I just go pick and choose?
This gets funner every day... (yes, i constitute "funner" as a word),
Zach
2004 Nov 24
5
wxRuby Print class Progress
Right now I have the following progress made with printing:
- WxPrinterDC - 100%
- WxPrinter, 90%
- WxPrintData - 10%
- WxPrintDialog - 80%
- WxPrintDialogData - 10%
- WxHtmlPrintout - 10%
- WxPrintout - 0% (this is abstract class I need to work on so wxRuby
users can subclass)
- WxPrintPreview - 0%
By the end of this weekend I hope to have all of the above classes
completed. I do have partial Windows printing capabilities working at
this point.
I thought''d I''d give the community a heads up.
Nick/Curt/Kevin, how should I submit my code when I am done, email it to
o...
2007 Jul 19
0
[1121] trunk/wxruby2/swig/classes/PreviewFrame.i: Avoid double-free error on PrintPreview once attached to a PreviewFrame
...;cx"> %}
</span><span class="cx">
</span><ins>+
+// Once a PrintPreview is associated with a PreviewFrame, it is deleted
+// automatically by wxWidgets - so must avoid calling its destructor
+// from Ruby when it is GC''d.
+%apply SWIGTYPE *DISOWN {wxPrintPreview* preview};
+
</ins><span class="cx"> %rename(init) Initialize;
</span><span class="cx">
</span><span class="cx"> %import "include/wxObject.h"
</span></span></pre>
</div>
</div>
</body>...