<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>The Gnome Chemistry Utils: gcugtk::FileChooser Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">The Gnome Chemistry Utils  <span id="projectnumber">0.14.2</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.1.2 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="namespacegcugtk.html">gcugtk</a></li><li class="navelem"><a class="el" href="classgcugtk_1_1FileChooser.html">FileChooser</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="classgcugtk_1_1FileChooser-members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">gcugtk::FileChooser Class Reference</div> </div> </div><!--header--> <div class="contents"> <p><code>#include <<a class="el" href="filechooser_8h_source.html">gcugtk/filechooser.h</a>></code></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr class="memitem:ae479e62849be0f3a5ddd92b03c31da7a"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcugtk_1_1FileChooser.html#ae479e62849be0f3a5ddd92b03c31da7a">FileChooser</a> (<a class="el" href="classgcugtk_1_1Application.html">Application</a> *App, bool Save, std::list< std::string > mime_types, <a class="el" href="classgcu_1_1Document.html">gcu::Document</a> *pDoc=NULL, char const *title=NULL, GtkWidget *extra_widget=NULL)</td></tr> </table> <a name="details" id="details"></a><h2>Detailed Description</h2> <div class="textblock"><p>This class is used each time a file name must be choosen. It embeds a GtkFileChooserDialog window. </p> <p>Definition at line <a class="el" href="filechooser_8h_source.html#l00045">45</a> of file <a class="el" href="filechooser_8h_source.html">filechooser.h</a>.</p> </div><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="ae479e62849be0f3a5ddd92b03c31da7a"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">gcugtk::FileChooser::FileChooser </td> <td>(</td> <td class="paramtype"><a class="el" href="classgcugtk_1_1Application.html">Application</a> * </td> <td class="paramname"><em>App</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"><em>Save</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">std::list< std::string > </td> <td class="paramname"><em>mime_types</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classgcu_1_1Document.html">gcu::Document</a> * </td> <td class="paramname"><em>pDoc</em> = <code>NULL</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">char const * </td> <td class="paramname"><em>title</em> = <code>NULL</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">GtkWidget * </td> <td class="paramname"><em>extra_widget</em> = <code>NULL</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">App</td><td>the <a class="el" href="classgcugtk_1_1Application.html">Application</a> instance owning the dialog. </td></tr> <tr><td class="paramname">Save</td><td>tells if the requested file is to be saved or loaded. </td></tr> <tr><td class="paramname">mime_types</td><td>a std::list of supported mime types. </td></tr> <tr><td class="paramname">pDoc</td><td>the document to save, the parameter is optional when loading. Default value is NULL. </td></tr> <tr><td class="paramname">title</td><td>an optional title for the dialog box. Default value is NULL. </td></tr> <tr><td class="paramname">extra_widget</td><td>an optional widget to add to the GtkFileChooserDialog window. Default value is NULL.</td></tr> </table> </dd> </dl> <p>The constructor shows the GtkFileChooserDialog window, retrieve it's response and calls <a class="el" href="classgcu_1_1Application.html#ad4936e8c6ba6b972702aea28067104dd">Application::FileProcess</a> if needed. The dialog is modal (nothing else can be done while it is opened). </p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="filechooser_8h_source.html">filechooser.h</a></li> </ul> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Thu Mar 14 2013 17:34:32 for The Gnome Chemistry Utils by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.1.2 </small></address> </body> </html>