Sophie

Sophie

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

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>QtFileDialog.h</h1><a href="QtFileDialog_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 _QtFileDialog_H_</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define _QtFileDialog_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="preprocessor">#if QT_VERSION &lt; 0x040000</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span><span class="preprocessor">#include &lt;qfiledialog.h&gt;</span>
<a name="l00020"></a>00020 <span class="preprocessor">#else</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#include &lt;q3filedialog.h&gt;</span>
<a name="l00022"></a>00022 <span class="preprocessor">#endif</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span>
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00025"></a>00025 
<a name="l00026"></a>00026 <span class="keyword">namespace </span>hippodraw {
<a name="l00027"></a>00027 
<a name="l00028"></a>00028   <span class="keyword">class </span>DataSource;
<a name="l00029"></a>00029 
<a name="l00049"></a><a class="code" href="classhippodraw_1_1QtFileDialog.html">00049</a> <span class="keyword">class </span><a class="code" href="classhippodraw_1_1QtFileDialog.html" title="A class to handle various file types.">QtFileDialog</a>
<a name="l00050"></a>00050 {
<a name="l00051"></a>00051 
<a name="l00052"></a>00052 <span class="keyword">private</span>:
<a name="l00053"></a>00053 
<a name="l00057"></a><a class="code" href="classhippodraw_1_1QtFileDialog.html#abf7791a850bf1726fc932884ae61d360">00057</a>   <span class="keyword">static</span> <span class="keyword">const</span> std::string <a class="code" href="classhippodraw_1_1QtFileDialog.html#abf7791a850bf1726fc932884ae61d360" title="The file name suffix used for the application&amp;#39;s document files.">s_doc_suffix</a>;
<a name="l00058"></a>00058 
<a name="l00062"></a><a class="code" href="classhippodraw_1_1QtFileDialog.html#a3c6075351b79d379098e07d6b7c921da">00062</a>   <span class="keyword">static</span> <span class="keyword">const</span> std::string <a class="code" href="classhippodraw_1_1QtFileDialog.html#a3c6075351b79d379098e07d6b7c921da" title="The file name suffix used for the application&amp;#39;s text data source files.">s_data_suffix</a>;
<a name="l00063"></a>00063 
<a name="l00066"></a><a class="code" href="classhippodraw_1_1QtFileDialog.html#a179dfa0088f394a15e8fe47ecb7ed72d">00066</a>   <span class="keyword">static</span> std::string <a class="code" href="classhippodraw_1_1QtFileDialog.html#a179dfa0088f394a15e8fe47ecb7ed72d" title="The open file filter.">s_open_filter</a>;
<a name="l00067"></a>00067 
<a name="l00072"></a>00072   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1QtFileDialog.html#abdc87fc23c83491f492da5ad30cc9f68" title="Checks for duplicate column labels in the DataSource source.">checkDuplicateLabels</a> ( <span class="keyword">const</span> <a class="code" href="classhippodraw_1_1DataSource.html" title="Base class for DataSource.">DataSource</a> * source, <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qwidget.html">QWidget</a> * );
<a name="l00073"></a>00073 
<a name="l00074"></a>00074 <span class="keyword">public</span>:
<a name="l00075"></a>00075 
<a name="l00078"></a>00078   <a class="code" href="classhippodraw_1_1QtFileDialog.html#a5ad6c7ef515e07ad919924f009072861" title="The constructor.">QtFileDialog</a> ();
<a name="l00079"></a>00079 
<a name="l00082"></a>00082   <span class="keyword">static</span> <span class="keyword">const</span> std::string &amp; <a class="code" href="classhippodraw_1_1QtFileDialog.html#add59d3b2816afeec75a340d7d776e902" title="Creates the open file filter.">createOpenFilter</a> ();
<a name="l00083"></a>00083 
<a name="l00086"></a>00086   <span class="keyword">static</span> <span class="keyword">const</span> std::string &amp; <a class="code" href="classhippodraw_1_1QtFileDialog.html#a8c8c4bb320512d57f01e6f48f5b89423" title="Creates the open file filter.">createBrowseFilter</a> ();
<a name="l00087"></a>00087 
<a name="l00090"></a>00090   <span class="keyword">static</span> <span class="keyword">const</span> std::string &amp; <a class="code" href="classhippodraw_1_1QtFileDialog.html#a36d737e04a2be6a5f65494a12c2c8adb" title="Creates a filter for saving a document.">createDocumentFilter</a> ();
<a name="l00091"></a>00091 
<a name="l00094"></a>00094   <span class="keyword">static</span> <span class="keyword">const</span> std::string &amp; <a class="code" href="classhippodraw_1_1QtFileDialog.html#aa5ec4988c51c3ac566231b450fd8291a" title="Creates a filter for exporting DataSource to file.">createExportFilter</a> ();
<a name="l00095"></a>00095 
<a name="l00098"></a>00098   <span class="keyword">static</span> <span class="keyword">const</span> std::string &amp; <a class="code" href="classhippodraw_1_1QtFileDialog.html#ac798253375e9e1ef4ef73734dd35c65e" title="Returns the suffix for a document.">getDocSuffix</a> ();
<a name="l00099"></a>00099 
<a name="l00102"></a>00102   <span class="keyword">static</span> <span class="keyword">const</span> std::string &amp; <a class="code" href="classhippodraw_1_1QtFileDialog.html#a3361840c45e54073ceba0df219404632" title="Returns the suffix for a text data source files.">getTextSuffix</a> ();
<a name="l00103"></a>00103 
<a name="l00106"></a>00106   <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classhippodraw_1_1QtFileDialog.html#a759e51a8e06c1f0133544f2a04907a23" title="Returns true if suffix is one corresponding to document file.">isDocSuffix</a> ( <span class="keyword">const</span> std::string &amp; suffix );
<a name="l00107"></a>00107 
<a name="l00111"></a>00111   <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classhippodraw_1_1QtFileDialog.html#a234760bedcb99a3bc6642d193bd8f763" title="Returns true if suffix is one corresponding to FITS DataSource file.">isFitsSuffix</a> ( <span class="keyword">const</span> std::string &amp; suffix );
<a name="l00112"></a>00112 
<a name="l00116"></a>00116   <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classhippodraw_1_1QtFileDialog.html#a5f07ace06c409b8e470fc17a6c0e02c6" title="Returns true if suffix is one corresponding to ROOT DataSource files.">isRootSuffix</a> ( <span class="keyword">const</span> std::string &amp; suffix );
<a name="l00117"></a>00117 
<a name="l00120"></a>00120   <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classhippodraw_1_1QtFileDialog.html#aceaf259a4bc29c155c1d18bbaf3120b3" title="Returns true if suffix is one corresponding to text NTuple file.">isTextSuffix</a> ( <span class="keyword">const</span> std::string &amp; suffix );
<a name="l00121"></a>00121 
<a name="l00124"></a>00124   <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1QtFileDialog.html#a9e1b41dab59aeb9fed2a93266e8aab53" title="Opens a text NTuple file.">openTextTuple</a> ( <span class="keyword">const</span> std::string &amp; filename );
<a name="l00125"></a>00125 
<a name="l00128"></a>00128   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1QtFileDialog.html#a0f77e14eb1b8db637d55dff8623c9521" title="Opens a ROOT DataSource file.">openRootTuple</a> ( <span class="keyword">const</span> std::string &amp; filename, <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qwidget.html">QWidget</a> * parent );
<a name="l00129"></a>00129 
<a name="l00132"></a>00132   <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classhippodraw_1_1QtFileDialog.html#ad25b2ee08d028ae14aa594b95e072764" title="Returns true if the file filename is a FITS file.">isFitsFile</a> ( <span class="keyword">const</span> std::string &amp; filename );
<a name="l00133"></a>00133 
<a name="l00136"></a>00136   <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classhippodraw_1_1QtFileDialog.html#a044d445cb171bac4d9bab24639ba17c9" title="Returns true if the file filename is a compressed FITS file.">isZippedFitsSuffix</a> ( <span class="keyword">const</span> std::string &amp; suffix);
<a name="l00137"></a>00137 
<a name="l00140"></a>00140   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1QtFileDialog.html#a44538f225a6f109bd5fbb98c5eee2bb0" title="Opens a FITS DataSource file.">openFitsTuple</a> ( <span class="keyword">const</span> std::string &amp; filename, <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qwidget.html">QWidget</a> * parent );
<a name="l00141"></a>00141 
<a name="l00142"></a>00142 
<a name="l00143"></a>00143 <span class="preprocessor">#ifdef HAVE_CFITSIO</span>
<a name="l00144"></a>00144 <span class="preprocessor"></span>
<a name="l00149"></a>00149   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1QtFileDialog.html#a5f6a908b2dd0a16a1f00cc14a0e47c6d" title="Save a FITS file.">saveFitsTuple</a> ( <span class="keyword">const</span> std::string &amp; filename, <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qwidget.html">QWidget</a> * parent );
<a name="l00150"></a>00150 <span class="preprocessor">#endif</span>
<a name="l00151"></a>00151 <span class="preprocessor"></span>
<a name="l00154"></a>00154   <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1QtFileDialog.html#a66dfdef30cc0eba12fe10439a062f14d" title="Save a text file.">saveTextTuple</a> ( <span class="keyword">const</span> std::string &amp; filename, <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qwidget.html">QWidget</a> * parent );
<a name="l00155"></a>00155 
<a name="l00160"></a>00160   <span class="keyword">static</span> std::string <a class="code" href="classhippodraw_1_1QtFileDialog.html#a378a8303d381b11f573f977c363121a6" title="Returns a filename for exporting a DataSource.">getExportTupleFilename</a> ( <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qwidget.html">QWidget</a> * widget);
<a name="l00161"></a>00161 
<a name="l00162"></a>00162 };
<a name="l00163"></a>00163 
<a name="l00164"></a>00164 } <span class="comment">// namespace hippodraw</span>
<a name="l00165"></a>00165 
<a name="l00166"></a>00166 <span class="preprocessor">#endif // _QtFileDialog_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>