<!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"/> <title>The Gnome Chemistry Utils: gcu::Application Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.6.1 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <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> <li><a href="dirs.html"><span>Directories</span></a></li> </ul> </div> <div class="tabs"> <ul> <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 class="navpath"><a class="el" href="namespacegcu.html">gcu</a>::<a class="el" href="classgcu_1_1Application.html">Application</a> </div> </div> <div class="contents"> <h1>gcu::Application Class Reference</h1><!-- doxytag: class="gcu::Application" --><!-- doxytag: inherits="gcu::DialogOwner" --> <p><code>#include <<a class="el" href="gcu_2application_8h_source.html">gcu/application.h</a>></code></p> <div class="dynheader"> Inheritance diagram for gcu::Application:</div> <div class="dynsection"> <div class="center"> <img src="classgcu_1_1Application.gif" usemap="#gcu::Application_map" alt=""/> <map id="gcu::Application_map" name="gcu::Application_map"> <area href="classgcu_1_1DialogOwner.html" alt="gcu::DialogOwner" shape="rect" coords="0,0,113,24"/> <area href="classgcp_1_1Application.html" alt="gcp::Application" shape="rect" coords="0,112,113,136"/> </map> </div> </div> <p><a href="classgcu_1_1Application-members.html">List of all members.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Application.html#a8eabb369993705d01fa413978896830d">Application</a> (std::string name, std::string datadir=DATADIR, char const *help_name=NULL, char const *icon_name=NULL)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Application.html#ae4390c5821167149797507741abf21cf">~Application</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Application.html#a9e75345f3bbcac050ecbffe2a0e54adb">OnHelp</a> (std::string s="")</td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Application.html#af63f52a24c853027a7bb6854d1b2f917">HasHelp</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">std::string & </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Application.html#ade30d507ccfc170a9bdd1156d2267950">GetName</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual GtkWindow * </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Application.html#a94cfeb904903c664b617287293d43644">GetWindow</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Application.html#a25541e4e6012b980bc6992e7b2b30f93">FileProcess</a> (const gchar *filename, const gchar *mime_type, bool bSave, GtkWindow *window, <a class="el" href="classgcu_1_1Document.html">Document</a> *pDoc=NULL)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">char const * </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Application.html#a328711708b5418ae39ef72f98712732e">GetCurDir</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Application.html#a8ea5f1ed424c387a847b8baca1e5c91d">SetCurDir</a> (char const *dir)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Application.html#aa5b69c11be970d87d9483b60418cb212">SetCurDir</a> (std::string const &dir)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Application.html#aa5085b2defca309f41010de7fbb47a7d">ShowURI</a> (std::string &uri)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Application.html#a5cf7318e7696b3ed4212ae6310f6889b">OnBug</a> (char const *uri=PACKAGE_BUGREPORT)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Application.html#a89e9ac6f5299a6e96ed90b49ac8f1e2c">OnWeb</a> (char const *uri="http://gchemutils.nongnu.org/")</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Application.html#a9d14b41e941d6ef53795e9987ee9f3da">OnMail</a> (char const *MailAddress="mailto:gchemutils-main@nongnu.org")</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Application.html#a335e617259e877cc60b12ddceda9e4c5">OnLiveAssistance</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">GtkWidget * </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Application.html#aa8b3e5688795196230072c89d715000f">GetImageResolutionWidget</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">GtkWidget * </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Application.html#ad2e64b2dc1883893d1ed7bc3e5cac4a8">GetImageSizeWidget</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">std::map< std::string, <br class="typebreak"/> GdkPixbufFormat * > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Application.html#a4466ff140726d27a2772744f8e473605">GetSupportedPixbufFormats</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">char const * </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Application.html#a64669c8089f80219832a737b591d5e37">GetPixbufTypeName</a> (std::string &filename, char const *mime_type)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Application.html#a092bbdcb2382ca97e2f5d8a7cd082a1f">Load</a> (std::string const &uri, const gchar *mime_type, <a class="el" href="classgcu_1_1Document.html">Document</a> *Doc)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Application.html#a5a0bbeddfbc3cfda0343c85f7a1283c6">Save</a> (std::string const &uri, const gchar *mime_type, <a class="el" href="classgcu_1_1Document.html">Document</a> *Doc)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classgcu_1_1Document.html">Document</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Application.html#a1fb2e62ce60effbb096f87de8656753b">CreateNewDocument</a> ()</td></tr> <tr><td colspan="2"><h2>Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Application.html#acdab90d019b9919895cef1906a8ebd04">NoMoreDocsEvent</a> ()</td></tr> <tr><td colspan="2"><h2>Protected Attributes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">std::map< std::string, <br class="typebreak"/> GdkPixbufFormat * > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcu_1_1Application.html#a01d7fc252bf235a517dc6d7ae5afdce7">m_SupportedPixbufFormats</a></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>This class is a base class for applications. It provides some basic services. </p> <p>Definition at line <a class="el" href="gcu_2application_8h_source.html#l00055">55</a> of file <a class="el" href="gcu_2application_8h_source.html">gcu/application.h</a>.</p> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a8eabb369993705d01fa413978896830d"></a><!-- doxytag: member="gcu::Application::Application" ref="a8eabb369993705d01fa413978896830d" args="(std::string name, std::string datadir=DATADIR, char const *help_name=NULL, char const *icon_name=NULL)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">gcu::Application::Application </td> <td>(</td> <td class="paramtype">std::string </td> <td class="paramname"> <em>name</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">std::string </td> <td class="paramname"> <em>datadir</em> = <code>DATADIR</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">char const * </td> <td class="paramname"> <em>help_name</em> = <code>NULL</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">char const * </td> <td class="paramname"> <em>icon_name</em> = <code>NULL</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>the name of the application. </td></tr> <tr><td valign="top"></td><td valign="top"><em>datadir</em> </td><td>where data for the application are stored. </td></tr> <tr><td valign="top"></td><td valign="top"><em>help_name</em> </td><td>the name to use for the help file (with .xml extension). If NULL, the name parameter is used. </td></tr> <tr><td valign="top"></td><td valign="top"><em>icon_name</em> </td><td>the name to use for the default icon of all windows. If NULL, the help_name or name parameters will be used.</td></tr> </table> </dd> </dl> <p>The datadir variable is used to build the full path to the help file: "file://"+datadir+"/gnome/help/"+name+"/"+LANG+"/"+name".xml". </p> </div> </div> <a class="anchor" id="ae4390c5821167149797507741abf21cf"></a><!-- doxytag: member="gcu::Application::~Application" ref="ae4390c5821167149797507741abf21cf" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual gcu::Application::~Application </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>The destructor. </p> <p>Reimplemented in <a class="el" href="classgcp_1_1Application.html#a10a25b2eb4539638e7bc341017c3f9c7">gcp::Application</a>.</p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a1fb2e62ce60effbb096f87de8656753b"></a><!-- doxytag: member="gcu::Application::CreateNewDocument" ref="a1fb2e62ce60effbb096f87de8656753b" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="classgcu_1_1Document.html">Document</a>* gcu::Application::CreateNewDocument </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td><code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Virtual method used to create documents. Default behavior does nothing and returns NULL. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>the newly created document or NULL. </dd></dl> <p>Reimplemented in <a class="el" href="classgcp_1_1Application.html#ae192101a211fe851ffe9cee631dd59de">gcp::Application</a>.</p> <p>Definition at line <a class="el" href="gcu_2application_8h_source.html#l00220">220</a> of file <a class="el" href="gcu_2application_8h_source.html">gcu/application.h</a>.</p> </div> </div> <a class="anchor" id="a25541e4e6012b980bc6992e7b2b30f93"></a><!-- doxytag: member="gcu::Application::FileProcess" ref="a25541e4e6012b980bc6992e7b2b30f93" args="(const gchar *filename, const gchar *mime_type, bool bSave, GtkWindow *window, Document *pDoc=NULL)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual bool gcu::Application::FileProcess </td> <td>(</td> <td class="paramtype">const gchar * </td> <td class="paramname"> <em>filename</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const gchar * </td> <td class="paramname"> <em>mime_type</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"> <em>bSave</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">GtkWindow * </td> <td class="paramname"> <em>window</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classgcu_1_1Document.html">Document</a> * </td> <td class="paramname"> <em>pDoc</em> = <code>NULL</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>filename</em> </td><td>the uri of the file. </td></tr> <tr><td valign="top"></td><td valign="top"><em>mime_type</em> </td><td>the mime type of the file if known. </td></tr> <tr><td valign="top"></td><td valign="top"><em>bSave</em> </td><td>true if saving, and false if loading. </td></tr> <tr><td valign="top"></td><td valign="top"><em>window</em> </td><td>the current top level window. </td></tr> <tr><td valign="top"></td><td valign="top"><em>pDoc</em> </td><td>an optional document.</td></tr> </table> </dd> </dl> <p>Called by the <a class="el" href="classgcu_1_1FileChooser.html">FileChooser</a> when a file name has been selected. This method does nothing in the parent class and must be implemented in children classes if they use the <a class="el" href="classgcu_1_1FileChooser.html">FileChooser</a>.</p> <dl class="return"><dt><b>Returns:</b></dt><dd>true if no error occured. </dd></dl> <p>Reimplemented in <a class="el" href="classgcp_1_1Application.html#aa43dddebbf9f59f9614c1024334d20db">gcp::Application</a>.</p> <p>Definition at line <a class="el" href="gcu_2application_8h_source.html#l00113">113</a> of file <a class="el" href="gcu_2application_8h_source.html">gcu/application.h</a>.</p> </div> </div> <a class="anchor" id="a328711708b5418ae39ef72f98712732e"></a><!-- doxytag: member="gcu::Application::GetCurDir" ref="a328711708b5418ae39ef72f98712732e" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">char const* gcu::Application::GetCurDir </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <dl class="return"><dt><b>Returns:</b></dt><dd>the path to the current directory. </dd></dl> <p>Definition at line <a class="el" href="gcu_2application_8h_source.html#l00119">119</a> of file <a class="el" href="gcu_2application_8h_source.html">gcu/application.h</a>.</p> </div> </div> <a class="anchor" id="aa8b3e5688795196230072c89d715000f"></a><!-- doxytag: member="gcu::Application::GetImageResolutionWidget" ref="aa8b3e5688795196230072c89d715000f" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">GtkWidget* gcu::Application::GetImageResolutionWidget </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <dl class="return"><dt><b>Returns:</b></dt><dd>a GtkWidget for managing pixmap resolution when saving as image. This widget is intended to be added to a GtkFileChooserDialog. </dd></dl> </div> </div> <a class="anchor" id="ad2e64b2dc1883893d1ed7bc3e5cac4a8"></a><!-- doxytag: member="gcu::Application::GetImageSizeWidget" ref="ad2e64b2dc1883893d1ed7bc3e5cac4a8" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">GtkWidget* gcu::Application::GetImageSizeWidget </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <dl class="return"><dt><b>Returns:</b></dt><dd>a GtkWidget for managing pixmap width and height when saving as image. This widget is intended to be added to a GtkFileChooserDialog. </dd></dl> </div> </div> <a class="anchor" id="ade30d507ccfc170a9bdd1156d2267950"></a><!-- doxytag: member="gcu::Application::GetName" ref="ade30d507ccfc170a9bdd1156d2267950" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">std::string& gcu::Application::GetName </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <dl class="return"><dt><b>Returns:</b></dt><dd>the name of the application. Mostly useful to set the icon name of a new window. </dd></dl> <p>Definition at line <a class="el" href="gcu_2application_8h_source.html#l00093">93</a> of file <a class="el" href="gcu_2application_8h_source.html">gcu/application.h</a>.</p> </div> </div> <a class="anchor" id="a64669c8089f80219832a737b591d5e37"></a><!-- doxytag: member="gcu::Application::GetPixbufTypeName" ref="a64669c8089f80219832a737b591d5e37" args="(std::string &filename, char const *mime_type)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">char const* gcu::Application::GetPixbufTypeName </td> <td>(</td> <td class="paramtype">std::string & </td> <td class="paramname"> <em>filename</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">char const * </td> <td class="paramname"> <em>mime_type</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>filename</em> </td><td>the file name. </td></tr> <tr><td valign="top"></td><td valign="top"><em>mime_type</em> </td><td>the file mime type.</td></tr> </table> </dd> </dl> <p>A default extension is appended to filename if none is detected.</p> <dl class="return"><dt><b>Returns:</b></dt><dd>the GdkPixbuf name associated to mime_type or NULL if the file type is not supported by GdkPixbuf. </dd></dl> </div> </div> <a class="anchor" id="a4466ff140726d27a2772744f8e473605"></a><!-- doxytag: member="gcu::Application::GetSupportedPixbufFormats" ref="a4466ff140726d27a2772744f8e473605" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">std::map<std::string, GdkPixbufFormat*>& gcu::Application::GetSupportedPixbufFormats </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <dl class="return"><dt><b>Returns:</b></dt><dd>a std::map of the supported pixbuf formats. Keys are the mime type names. </dd></dl> <p>Definition at line <a class="el" href="gcu_2application_8h_source.html#l00181">181</a> of file <a class="el" href="gcu_2application_8h_source.html">gcu/application.h</a>.</p> <p>References <a class="el" href="gcu_2application_8h_source.html#l00258">m_SupportedPixbufFormats</a>.</p> </div> </div> <a class="anchor" id="a94cfeb904903c664b617287293d43644"></a><!-- doxytag: member="gcu::Application::GetWindow" ref="a94cfeb904903c664b617287293d43644" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual GtkWindow* gcu::Application::GetWindow </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td><code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <dl class="return"><dt><b>Returns:</b></dt><dd>a GtkWindow if any. Should be overloaded by children classes. </dd></dl> <p>Reimplemented in <a class="el" href="classgcp_1_1Application.html#ac33138d8f442dadfb2c4dc066d898f5f">gcp::Application</a>.</p> <p>Definition at line <a class="el" href="gcu_2application_8h_source.html#l00098">98</a> of file <a class="el" href="gcu_2application_8h_source.html">gcu/application.h</a>.</p> </div> </div> <a class="anchor" id="af63f52a24c853027a7bb6854d1b2f917"></a><!-- doxytag: member="gcu::Application::HasHelp" ref="af63f52a24c853027a7bb6854d1b2f917" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool gcu::Application::HasHelp </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <dl class="return"><dt><b>Returns:</b></dt><dd>true if both a help browser and a help file are available, false otherwise. </dd></dl> </div> </div> <a class="anchor" id="a092bbdcb2382ca97e2f5d8a7cd082a1f"></a><!-- doxytag: member="gcu::Application::Load" ref="a092bbdcb2382ca97e2f5d8a7cd082a1f" args="(std::string const &uri, const gchar *mime_type, Document *Doc)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool gcu::Application::Load </td> <td>(</td> <td class="paramtype">std::string const & </td> <td class="paramname"> <em>uri</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const gchar * </td> <td class="paramname"> <em>mime_type</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classgcu_1_1Document.html">Document</a> * </td> <td class="paramname"> <em>Doc</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>uri</em> </td><td>the uri of the document to load. </td></tr> <tr><td valign="top"></td><td valign="top"><em>mime_type</em> </td><td>the mime type of the document. </td></tr> <tr><td valign="top"></td><td valign="top"><em>Doc</em> </td><td>the document instance which will contain the loaded data.</td></tr> </table> </dd> </dl> <p>This method loads a document using the appropriate <a class="el" href="classgcu_1_1Loader.html" title="class used to implement serialization engines.">gcu::Loader</a> class instance. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>true if no error occurred. </dd></dl> </div> </div> <a class="anchor" id="acdab90d019b9919895cef1906a8ebd04"></a><!-- doxytag: member="gcu::Application::NoMoreDocsEvent" ref="acdab90d019b9919895cef1906a8ebd04" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void gcu::Application::NoMoreDocsEvent </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td><code> [inline, protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>This method is called by the framework when all the documents have been removed from the set of opened documents. The default behavior is to call gtk_main_quit and exit the program. Derived class might overide this method to change this. </p> <p>Definition at line <a class="el" href="gcu_2application_8h_source.html#l00238">238</a> of file <a class="el" href="gcu_2application_8h_source.html">gcu/application.h</a>.</p> </div> </div> <a class="anchor" id="a5cf7318e7696b3ed4212ae6310f6889b"></a><!-- doxytag: member="gcu::Application::OnBug" ref="a5cf7318e7696b3ed4212ae6310f6889b" args="(char const *uri=PACKAGE_BUGREPORT)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void gcu::Application::OnBug </td> <td>(</td> <td class="paramtype">char const * </td> <td class="paramname"> <em>uri</em> = <code>PACKAGE_BUGREPORT</code></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>uri</em> </td><td>the uri to the package bugs database. Default value is PACKAGE_BUGREPORT.</td></tr> </table> </dd> </dl> <p>Opens the bugs web page in the default browser if any. </p> <p>Definition at line <a class="el" href="gcu_2application_8h_source.html#l00143">143</a> of file <a class="el" href="gcu_2application_8h_source.html">gcu/application.h</a>.</p> <p>References <a class="el" href="classgcu_1_1Application.html#aa5085b2defca309f41010de7fbb47a7d">ShowURI()</a>.</p> </div> </div> <a class="anchor" id="a9e75345f3bbcac050ecbffe2a0e54adb"></a><!-- doxytag: member="gcu::Application::OnHelp" ref="a9e75345f3bbcac050ecbffe2a0e54adb" args="(std::string s="")" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void gcu::Application::OnHelp </td> <td>(</td> <td class="paramtype">std::string </td> <td class="paramname"> <em>s</em> = <code>""</code></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>s</em> </td><td>an optional tag in the help file. Displays the help file using the file browser retrieved from GConf using the "/desktop/gnome/applications/help_viewer/exec" key. If a tag is given, it will be added to the help uri. For an application named "myapp" and a tag "mytag", the uri will be: helpfilename#myapp-mytag. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a335e617259e877cc60b12ddceda9e4c5"></a><!-- doxytag: member="gcu::Application::OnLiveAssistance" ref="a335e617259e877cc60b12ddceda9e4c5" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void gcu::Application::OnLiveAssistance </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Attempts to open the #gchemutils channel at irc.gimp.net. </p> </div> </div> <a class="anchor" id="a9d14b41e941d6ef53795e9987ee9f3da"></a><!-- doxytag: member="gcu::Application::OnMail" ref="a9d14b41e941d6ef53795e9987ee9f3da" args="(char const *MailAddress="mailto:gchemutils-main@nongnu.org")" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void gcu::Application::OnMail </td> <td>(</td> <td class="paramtype">char const * </td> <td class="paramname"> <em>MailAddress</em> = <code>"mailto:gchemutils-main@nongnu.org"</code></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>MailAddress</em> </td><td>the mail adress to which a message will be sent. Defaults to the Gnome Chemistry Utils main list.</td></tr> </table> </dd> </dl> <p>Creates a new empty message using the default mail if any. </p> </div> </div> <a class="anchor" id="a89e9ac6f5299a6e96ed90b49ac8f1e2c"></a><!-- doxytag: member="gcu::Application::OnWeb" ref="a89e9ac6f5299a6e96ed90b49ac8f1e2c" args="(char const *uri="http://gchemutils.nongnu.org/")" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void gcu::Application::OnWeb </td> <td>(</td> <td class="paramtype">char const * </td> <td class="paramname"> <em>uri</em> = <code>"http://gchemutils.nongnu.org/"</code></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>uri</em> </td><td>the uri to the main web page of the program. Default value is "http://gchemutils.nongnu.org/". </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="gcu_2application_8h_source.html#l00150">150</a> of file <a class="el" href="gcu_2application_8h_source.html">gcu/application.h</a>.</p> <p>References <a class="el" href="classgcu_1_1Application.html#aa5085b2defca309f41010de7fbb47a7d">ShowURI()</a>.</p> </div> </div> <a class="anchor" id="a5a0bbeddfbc3cfda0343c85f7a1283c6"></a><!-- doxytag: member="gcu::Application::Save" ref="a5a0bbeddfbc3cfda0343c85f7a1283c6" args="(std::string const &uri, const gchar *mime_type, Document *Doc)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool gcu::Application::Save </td> <td>(</td> <td class="paramtype">std::string const & </td> <td class="paramname"> <em>uri</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const gchar * </td> <td class="paramname"> <em>mime_type</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classgcu_1_1Document.html">Document</a> * </td> <td class="paramname"> <em>Doc</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>uri</em> </td><td>the uri to which the document should be saved. </td></tr> <tr><td valign="top"></td><td valign="top"><em>mime_type</em> </td><td>the mime type of the document. </td></tr> <tr><td valign="top"></td><td valign="top"><em>Doc</em> </td><td>the document instance which contains the data to be saved.</td></tr> </table> </dd> </dl> <p>This method saves the document using the appropriate <a class="el" href="classgcu_1_1Loader.html" title="class used to implement serialization engines.">gcu::Loader</a> class instance. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>true if no error occurred. </dd></dl> </div> </div> <a class="anchor" id="aa5b69c11be970d87d9483b60418cb212"></a><!-- doxytag: member="gcu::Application::SetCurDir" ref="aa5b69c11be970d87d9483b60418cb212" args="(std::string const &dir)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void gcu::Application::SetCurDir </td> <td>(</td> <td class="paramtype">std::string const & </td> <td class="paramname"> <em>dir</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>dir</em> </td><td>the path to the new current directory. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a8ea5f1ed424c387a847b8baca1e5c91d"></a><!-- doxytag: member="gcu::Application::SetCurDir" ref="a8ea5f1ed424c387a847b8baca1e5c91d" args="(char const *dir)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void gcu::Application::SetCurDir </td> <td>(</td> <td class="paramtype">char const * </td> <td class="paramname"> <em>dir</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>dir</em> </td><td>the path to the new current directory. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="aa5085b2defca309f41010de7fbb47a7d"></a><!-- doxytag: member="gcu::Application::ShowURI" ref="aa5085b2defca309f41010de7fbb47a7d" args="(std::string &uri)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void gcu::Application::ShowURI </td> <td>(</td> <td class="paramtype">std::string & </td> <td class="paramname"> <em>uri</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>uri</em> </td><td>the uri to display.</td></tr> </table> </dd> </dl> <p>Displays uri in the default web browser if any. </p> <p>Referenced by <a class="el" href="gcu_2application_8h_source.html#l00143">OnBug()</a>, and <a class="el" href="gcu_2application_8h_source.html#l00150">OnWeb()</a>.</p> </div> </div> <hr/><h2>Member Data Documentation</h2> <a class="anchor" id="a01d7fc252bf235a517dc6d7ae5afdce7"></a><!-- doxytag: member="gcu::Application::m_SupportedPixbufFormats" ref="a01d7fc252bf235a517dc6d7ae5afdce7" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">std::map<std::string, GdkPixbufFormat*> <a class="el" href="classgcu_1_1Application.html#a01d7fc252bf235a517dc6d7ae5afdce7">gcu::Application::m_SupportedPixbufFormats</a><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p>std::map of the supported pixbuf formats. Keys are the mime type names. </p> <p>Definition at line <a class="el" href="gcu_2application_8h_source.html#l00258">258</a> of file <a class="el" href="gcu_2application_8h_source.html">gcu/application.h</a>.</p> <p>Referenced by <a class="el" href="gcu_2application_8h_source.html#l00181">GetSupportedPixbufFormats()</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="gcu_2application_8h_source.html">gcu/application.h</a></li> </ul> </div> <hr size="1"/><address style="text-align: right;"><small>Generated on Sun Sep 6 18:33:55 2009 for The Gnome Chemistry Utils by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address> </body> </html>