Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > eebc325dc36bd6e3b09b9b45133e42f8 > files > 606

HippoDraw-devel-docs-1.21.1-10.fc13.i686.rpm

<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>HippoDraw Class Library</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="hippoApp.ico">
</head><body>
<!-- Generated by Doxygen 1.6.2 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="dir_28fb57ed95c79fe5ed14c4f71fb4c2a2.html">qt</a>
  </div>
</div>
<div class="contents">
<h1>CanvasSettings.h</h1><a href="CanvasSettings_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* -*- mode: c++ -*- */</span>
<a name="l00002"></a>00002 
<a name="l00014"></a>00014 <span class="preprocessor">#ifndef CanvasSettings_H</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define CanvasSettings_H</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &lt;qglobal.h&gt;</span> <span class="comment">// for version</span>
<a name="l00018"></a>00018 <span class="comment">// #if QT_VERSION &lt; 0x040000</span>
<a name="l00019"></a>00019 <span class="preprocessor">#include &quot;<a class="code" href="CanvasSettingsBase_8h.html" title="The file created from CanvasSettingsBase.ui with the Qt uic tool.">qtui/CanvasSettingsBase.h</a>&quot;</span>
<a name="l00020"></a>00020 
<a name="l00021"></a>00021 <span class="comment">// #else</span>
<a name="l00022"></a>00022 <span class="comment">// #include &quot;CanvasSettingsUI.h&quot;</span>
<a name="l00023"></a>00023 <span class="comment">// #endif</span>
<a name="l00024"></a>00024 
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;qprinter.h&gt;</span>
<a name="l00026"></a>00026 
<a name="l00027"></a>00027 <span class="keyword">namespace </span>hippodraw {
<a name="l00028"></a>00028 
<a name="l00039"></a>00039 <span class="comment">// #if QT_VERSION &lt; 0x040000</span>
<a name="l00040"></a><a class="code" href="classhippodraw_1_1CanvasSettings.html">00040</a> <span class="keyword">class </span><a class="code" href="classhippodraw_1_1CanvasSettings.html" title="This class manages the CanvasView settings dialog.">CanvasSettings</a> : <span class="keyword">public</span> <a class="code" href="classCanvasSettingsBase.html" title="The base class for the CanvasSettings class.">CanvasSettingsBase</a>
<a name="l00041"></a>00041 {
<a name="l00042"></a>00042 <span class="comment">// #else</span>
<a name="l00043"></a>00043 <span class="comment">// class CanvasSettings : public QDialog, private Ui::CanvasSettingsUI</span>
<a name="l00044"></a>00044 <span class="comment">// {</span>
<a name="l00045"></a>00045 <span class="comment">//   Q_OBJECT</span>
<a name="l00046"></a>00046 <span class="comment">// #endif</span>
<a name="l00047"></a>00047 
<a name="l00048"></a>00048 <span class="keyword">public</span>:
<a name="l00049"></a>00049 
<a name="l00052"></a><a class="code" href="classhippodraw_1_1CanvasSettings.html#a1d1cfd8ffb84e947f82999c682b666a7">00052</a>   <span class="keyword">enum</span> <a class="code" href="classhippodraw_1_1CanvasSettings.html#a1d1cfd8ffb84e947f82999c682b666a7" title="Return codes from running the CanvasSettings dialog.">Type</a> { <a class="code" href="classhippodraw_1_1CanvasSettings.html#a1d1cfd8ffb84e947f82999c682b666a7a40c0b498be25bc4038898e80cff1e9df" title="Accept new setting for new plots.">Accepted</a>, 
<a name="l00053"></a><a class="code" href="classhippodraw_1_1CanvasSettings.html#a1d1cfd8ffb84e947f82999c682b666a7a0b8669a891bca473fbe571e416c92c9c">00053</a>               <a class="code" href="classhippodraw_1_1CanvasSettings.html#a1d1cfd8ffb84e947f82999c682b666a7a0b8669a891bca473fbe571e416c92c9c" title="Reject changes.">Rejected</a>, 
<a name="l00054"></a><a class="code" href="classhippodraw_1_1CanvasSettings.html#a1d1cfd8ffb84e947f82999c682b666a7a73e4bcbd5f37fe95e272bf6f76cf566c">00054</a>               <a class="code" href="classhippodraw_1_1CanvasSettings.html#a1d1cfd8ffb84e947f82999c682b666a7a73e4bcbd5f37fe95e272bf6f76cf566c" title="Accept new setting and retile.">AcceptedAndRetile</a>, 
<a name="l00055"></a><a class="code" href="classhippodraw_1_1CanvasSettings.html#a1d1cfd8ffb84e947f82999c682b666a7a234563dd5ef3520cd4832f5f99732f12">00055</a>               <a class="code" href="classhippodraw_1_1CanvasSettings.html#a1d1cfd8ffb84e947f82999c682b666a7a234563dd5ef3520cd4832f5f99732f12" title="Retile only.">Retile</a> 
<a name="l00056"></a>00056   };
<a name="l00057"></a>00057 
<a name="l00058"></a>00058 <span class="keyword">private</span>:
<a name="l00059"></a>00059 
<a name="l00062"></a>00062   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1CanvasSettings.html#af53181cb953cc33e624536ea1d6279b6" title="Changes the plot matrix orientation.">orientationChanged</a> ();
<a name="l00063"></a>00063 
<a name="l00064"></a>00064 
<a name="l00065"></a>00065 <span class="preprocessor">#if QT_VERSION &lt; 0x040000</span>
<a name="l00066"></a>00066 <span class="preprocessor"></span><span class="keyword">protected</span>:
<a name="l00067"></a>00067 <span class="preprocessor">#else</span>
<a name="l00068"></a>00068 <span class="preprocessor"></span><span class="keyword">protected</span> slots:
<a name="l00069"></a>00069 <span class="preprocessor">#endif</span>
<a name="l00070"></a>00070 <span class="preprocessor"></span>
<a name="l00073"></a>00073   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1CanvasSettings.html#a02d5fa6b14e221f3012a794b905be166" title="Responds to Cancel button.">cancel</a>();
<a name="l00074"></a>00074 
<a name="l00077"></a>00077   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1CanvasSettings.html#ac7f3ff0a95595fbbcbfcc2cfa490179b" title="Responds to Save &amp;amp; Retile button.">saveRetile</a> ();
<a name="l00078"></a>00078 
<a name="l00081"></a>00081   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1CanvasSettings.html#ad2cbbbccb30fc2b790e61e9e05c27635" title="Responds portrait is clicked.">portraitRadioButton_toggled</a> ( <span class="keywordtype">bool</span> );
<a name="l00082"></a>00082 
<a name="l00085"></a>00085   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1CanvasSettings.html#af5cb8988023c174f108fbeabef236067" title="Responds to re-tile button clicked.">retile_clicked</a>();
<a name="l00086"></a>00086   
<a name="l00087"></a>00087 <span class="keyword">public</span>:
<a name="l00088"></a>00088 
<a name="l00091"></a>00091     <a class="code" href="classhippodraw_1_1CanvasSettings.html#ab184ede31743c0fb51873242045d2c27" title="The constructor.">CanvasSettings</a> ( <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qwidget.html">QWidget</a>* parent = 0, 
<a name="l00092"></a>00092                      <span class="keyword">const</span> <span class="keywordtype">char</span>* name = 0, 
<a name="l00093"></a>00093                      <span class="keywordtype">bool</span> modal = <span class="keyword">false</span>, 
<a name="l00094"></a>00094                      Qt::WFlags fl = 0 );
<a name="l00095"></a>00095 
<a name="l00098"></a>00098   <span class="keywordtype">int</span> <a class="code" href="classhippodraw_1_1CanvasSettings.html#ad57f0d291a2f85def4d85b7928a90476" title="Returns the number of new plots horizontally.">getWidthNumber</a> () <span class="keyword">const</span>;
<a name="l00099"></a>00099 
<a name="l00102"></a>00102   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1CanvasSettings.html#a06ee8e45d99e2251695546a3aa46c822" title="Sets the number of new plots horizontally.">setWidthNumber</a> ( <span class="keywordtype">int</span> number );
<a name="l00103"></a>00103 
<a name="l00106"></a>00106   <span class="keywordtype">int</span> <a class="code" href="classhippodraw_1_1CanvasSettings.html#a8d0fbc0259a4fe1d38e676d8b9963814" title="Returns the number of new plots vertically.">getHeightNumber</a> () <span class="keyword">const</span>;
<a name="l00107"></a>00107 
<a name="l00110"></a>00110   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1CanvasSettings.html#a5b53af679809adc328c505693797962e" title="Sets the number of new plots vertically.">setHeightNumber</a> ( <span class="keywordtype">int</span> number );
<a name="l00111"></a>00111 
<a name="l00114"></a>00114   QPrinter::Orientation <a class="code" href="classhippodraw_1_1CanvasSettings.html#acef3689c7c5fb8782cb3ee08b15186df" title="Gets the orientation of the canvas which can be Portrait or Landscape.">orientation</a>();
<a name="l00115"></a>00115   
<a name="l00118"></a>00118   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1CanvasSettings.html#a189ccb656a3202097112a1cc4c05091c" title="Sets the orientation of the canvas which can be Portrait or Landscape.">setOrientation</a>( QPrinter::Orientation <a class="code" href="classhippodraw_1_1CanvasSettings.html#acef3689c7c5fb8782cb3ee08b15186df" title="Gets the orientation of the canvas which can be Portrait or Landscape.">orientation</a> );
<a name="l00119"></a>00119 
<a name="l00122"></a>00122   <span class="keywordtype">bool</span> <a class="code" href="classhippodraw_1_1CanvasSettings.html#a2ec8f40ab94c44f3a2a5f3e1e96b4773" title="Sets the if the printer margin/bounds should be visible on the canvas or not.">printerBounds</a>();
<a name="l00123"></a>00123 
<a name="l00126"></a>00126   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1CanvasSettings.html#ac8477cb75e01c2ed2548aaa36c499f80" title="Gets the flag if the printer margin/bounds should be visible on the canvas or not...">setPrinterBounds</a>( <span class="keywordtype">bool</span> flag );
<a name="l00127"></a>00127 
<a name="l00130"></a>00130   <span class="keywordtype">bool</span> <a class="code" href="classhippodraw_1_1CanvasSettings.html#a6eb12729a2c8c1612b4f851f874bd30b" title="Returns true if added plots should be selected.">getAddSelected</a> () <span class="keyword">const</span>;
<a name="l00131"></a>00131 
<a name="l00134"></a>00134   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1CanvasSettings.html#a836db4189458fd549801a490d91406ca" title="Sets the check box of the state of add plots being selected.">setAddSelected</a> ( <span class="keywordtype">bool</span> yes );
<a name="l00135"></a>00135 
<a name="l00139"></a>00139   <span class="keywordtype">bool</span> <a class="code" href="classhippodraw_1_1CanvasSettings.html#a4eb5795a909d55c87911c30c75bf3f63" title="Returns true if printer margin should be ignored when inserting new plots.">ignorePrinterMargin</a> () <span class="keyword">const</span>;
<a name="l00140"></a>00140 
<a name="l00143"></a>00143   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1CanvasSettings.html#a42fa9df9eabe7e6bb82971f1e2b86704" title="Sets the status of the ignore printer margins check box.">setIgnorePrinterMargin</a> ( <span class="keywordtype">bool</span> yes );
<a name="l00144"></a>00144 
<a name="l00145"></a>00145 };
<a name="l00146"></a>00146 
<a name="l00147"></a>00147 } <span class="comment">// namespace hippodraw</span>
<a name="l00148"></a>00148 
<a name="l00149"></a>00149 <span class="preprocessor">#endif // CanvasSettings_H</span>
</pre></div></div>
<hr size="1"><address style="align: right;"><small>
Generated for HippoDraw Class Library by <a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0>
</a> </small></address>
</body>
</html>