nobody at rubyforge.org
2006-Oct-17 21:49 UTC
[Wxruby-development] [685] trunk/wxruby2/swig: Add Printing constants and typedefs, add two missing methods (Roy
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type"
content="text/html; charset=utf-8" /><style
type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:'':'';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family:
verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;
font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding:
6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid;
padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family:
verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch
.binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[685] trunk/wxruby2/swig: Add Printing constants and typedefs, add
two missing methods (Roy</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd>685</dd>
<dt>Author</dt> <dd>brokentoy</dd>
<dt>Date</dt> <dd>2006-10-17 17:49:06 -0400 (Tue, 17 Oct
2006)</dd>
</dl>
<h3>Log Message</h3>
<pre>Add Printing constants and typedefs, add two missing methods (Roy
Sutton/Sean Long)</pre>
<h3>Modified Paths</h3>
<ul>
<li><a
href="#trunkwxruby2swigRubyConstantsi">trunk/wxruby2/swig/RubyConstants.i</a></li>
<li><a
href="#trunkwxruby2swigclassesincludewxPrinterh">trunk/wxruby2/swig/classes/include/wxPrinter.h</a></li>
<li><a
href="#trunkwxruby2swigtypedefsi">trunk/wxruby2/swig/typedefs.i</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwxruby2swigRubyConstantsi"></a>
<div class="modfile"><h4>Modified:
trunk/wxruby2/swig/RubyConstants.i (684 => 685)</h4>
<pre class="diff"><span>
<span class="info">---
trunk/wxruby2/swig/RubyConstants.i        2006-10-17
19:29:01 UTC (rev 684)
+++
trunk/wxruby2/swig/RubyConstants.i        2006-10-17
21:49:06 UTC (rev 685)
</span><span class="lines">@@ -17,6 +17,7 @@
</span><span class="cx"> #include <wx/laywin.h>
</span><span class="cx"> #include <wx/imagbmp.h>
</span><span class="cx"> #include <wx/sashwin.h>
</span><ins>+#include <wx/prntbase.h>
</ins><span class="cx">
</span><span class="cx">
</span><span class="cx"> // All of these exist on only one
platform, so in those
</span><span class="lines">@@ -1318,6 +1319,13 @@
</span><span class="cx"> wxPRINT_MODE_STREAM = 4
// Send postscript data into a stream
</span><span class="cx"> };
</span><span class="cx">
</span><ins>+enum wxPrinterError
+{
+ wxPRINTER_NO_ERROR = 0,
+ wxPRINTER_CANCELLED,
+ wxPRINTER_ERROR
+};
+
</ins><span class="cx"> //
----------------------------------------------------------------------------
</span><span class="cx"> // UpdateWindowUI flags
</span><span class="cx"> //
----------------------------------------------------------------------------
</span></span></pre></div>
<a id="trunkwxruby2swigclassesincludewxPrinterh"></a>
<div class="modfile"><h4>Modified:
trunk/wxruby2/swig/classes/include/wxPrinter.h (684 => 685)</h4>
<pre class="diff"><span>
<span class="info">---
trunk/wxruby2/swig/classes/include/wxPrinter.h        2006-10-17
19:29:01 UTC (rev 684)
+++
trunk/wxruby2/swig/classes/include/wxPrinter.h        2006-10-17
21:49:06 UTC (rev 685)
</span><span class="lines">@@ -18,6 +18,11 @@
</span><span class="cx"> virtual wxDC*
PrintDialog(wxWindow *parent);
</span><span class="cx">
</span><span class="cx"> virtual
wxPrintDialogData& GetPrintDialogData() const;
</span><ins>+
+ bool GetAbort() const { return sm_abortIt; }
+
+ static wxPrinterError GetLastError() { return sm_lastError; }
+
</ins><span class="cx"> };
</span><span class="cx">
</span><span class="cx">
</span></span></pre></div>
<a id="trunkwxruby2swigtypedefsi"></a>
<div class="modfile"><h4>Modified:
trunk/wxruby2/swig/typedefs.i (684 => 685)</h4>
<pre class="diff"><span>
<span class="info">---
trunk/wxruby2/swig/typedefs.i        2006-10-17
19:29:01 UTC (rev 684)
+++
trunk/wxruby2/swig/typedefs.i        2006-10-17
21:49:06 UTC (rev 685)
</span><span class="lines">@@ -4,8 +4,6 @@
</span><span class="cx"> typedef int wxWindowID;
</span><span class="cx"> typedef int wxCoord;
</span><span class="cx"> typedef int wxEventType;
</span><del>-//typedef int wxEdge;
-//typedef int wxRelationship;
</del><span class="cx"> enum wxBitmapType;
</span><span class="cx"> typedef short int WXTYPE;
</span><span class="cx"> enum wxCalendarHitTestResult;
</span><span class="lines">@@ -16,3 +14,9 @@
</span><span class="cx"> typedef wxString wxArtID;
</span><span class="cx"> enum wxBackgroundStyle;
</span><span class="cx"> enum wxTreeItemIcon;
</span><ins>+enum wxDuplexMode;
+enum wxPrintMode;
+enum wxPrinterError;
+enum wxTextCtrlHitTestResult;
+enum wxTextAttrAlignment;
+enum wxSashDragStatus;
</ins></span></pre>
</div>
</div>
</body>
</html>
Seemingly Similar Threads
- [751] trunk/wxruby2/swig/typedefs.i: Added wxUint32 typedef
- [733] trunk/wxruby2: Updated with changes made to samples.
- [735] trunk/wxruby2: Got the ''get_item_sample'' sample working had to add some missing ListCtrl constants.
- [825] trunk/wxruby2/swig/RubyConstants.i: Added DEFAULT_VALIDATOR constant
- [1106] trunk/wxruby2/swig/RubyConstants.i: Add the MOD_XXX constants as used in wxKeyEvent
