Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > f37f2c0b149d5391818dc5157943cda0 > files > 131

gnome-chemistry-utils-devel-0.10.8-3mdv2010.0.i586.rpm

<!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: gcp::ThemeManager 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&nbsp;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&nbsp;List</span></a></li>
      <li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespacegcp.html">gcp</a>::<a class="el" href="classgcp_1_1ThemeManager.html">ThemeManager</a>
  </div>
</div>
<div class="contents">
<h1>gcp::ThemeManager Class Reference</h1><!-- doxytag: class="gcp::ThemeManager" -->
<p>themes engine class.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="theme_8h_source.html">gcp/theme.h</a>&gt;</code></p>

<p><a href="classgcp_1_1ThemeManager-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">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1ThemeManager.html#ad911233a911f24f3fa5fb976b35ab7df">ThemeManager</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1ThemeManager.html#a3231763a339b9b2d27bd837cc09725b5">~ThemeManager</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgcp_1_1Theme.html">Theme</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1ThemeManager.html#a2d8371e99e9f61396239e7ed0e54a3e9">GetTheme</a> (char const *name)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgcp_1_1Theme.html">Theme</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1ThemeManager.html#a216ee0d52d265f247aaa0bfcf25fb2b6">GetTheme</a> (std::string &amp;name)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">std::list&lt; std::string &gt; const &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1ThemeManager.html#a88c87d5efd59453c63774fd26e430303">GetThemesNames</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1ThemeManager.html#adcd5a4f966d9ab3447b9392d32418241">OnConfigChanged</a> (GConfClient *client, guint cnxn_id, GConfEntry *entry)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgcp_1_1Theme.html">Theme</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1ThemeManager.html#a75ec868cbe739f61d47129a91f0a613a">CreateNewTheme</a> (<a class="el" href="classgcp_1_1Theme.html">Theme</a> *theme=NULL)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1ThemeManager.html#a045fbf72bfeb306e86ff359f9fae13c1">AddFileTheme</a> (<a class="el" href="classgcp_1_1Theme.html">Theme</a> *theme, char const *label)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1ThemeManager.html#aa86e2828b8aadce5e8e323c091c47eb7">RemoveFileTheme</a> (<a class="el" href="classgcp_1_1Theme.html">Theme</a> *theme)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1ThemeManager.html#a78ea34af6da3cd7357accd3456a35389">ChangeThemeName</a> (<a class="el" href="classgcp_1_1Theme.html">Theme</a> *theme, char const *name)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgcp_1_1Theme.html">Theme</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1ThemeManager.html#a7aaeab8f35a0e272ce6b414a8facaae5">GetDefaultTheme</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1ThemeManager.html#abd17e8b9828dc609d3d6e8aaf1f5c934">SetDefaultTheme</a> (char const *name)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1ThemeManager.html#aae4f5bef58384272ed230fd40b268f6c">Shutdown</a> ()</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>themes engine class. </p>
<p>Represent the themes set. Only one global object of this class exists in GChemPaint. </p>

<p>Definition at line <a class="el" href="theme_8h_source.html#l00284">284</a> of file <a class="el" href="theme_8h_source.html">theme.h</a>.</p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ad911233a911f24f3fa5fb976b35ab7df"></a><!-- doxytag: member="gcp::ThemeManager::ThemeManager" ref="ad911233a911f24f3fa5fb976b35ab7df" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gcp::ThemeManager::ThemeManager </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Constructs a theme manager. </p>

</div>
</div>
<a class="anchor" id="a3231763a339b9b2d27bd837cc09725b5"></a><!-- doxytag: member="gcp::ThemeManager::~ThemeManager" ref="a3231763a339b9b2d27bd837cc09725b5" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gcp::ThemeManager::~ThemeManager </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The destructor. </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a045fbf72bfeb306e86ff359f9fae13c1"></a><!-- doxytag: member="gcp::ThemeManager::AddFileTheme" ref="a045fbf72bfeb306e86ff359f9fae13c1" args="(Theme *theme, char const *label)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcp::ThemeManager::AddFileTheme </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classgcp_1_1Theme.html">Theme</a> *&nbsp;</td>
          <td class="paramname"> <em>theme</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char const *&nbsp;</td>
          <td class="paramname"> <em>label</em></td><td>&nbsp;</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>theme</em>&nbsp;</td><td>a theme imported from a document file. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>label</em>&nbsp;</td><td>the document label.</td></tr>
  </table>
  </dd>
</dl>
<p>Called when opening a file if the theme saved with the file has the same name than an already registered theme, but different settings. The theme will not be saved to the local database, and will be registered using <em>label</em> and the theme name. </p>

</div>
</div>
<a class="anchor" id="a78ea34af6da3cd7357accd3456a35389"></a><!-- doxytag: member="gcp::ThemeManager::ChangeThemeName" ref="a78ea34af6da3cd7357accd3456a35389" args="(Theme *theme, char const *name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcp::ThemeManager::ChangeThemeName </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classgcp_1_1Theme.html">Theme</a> *&nbsp;</td>
          <td class="paramname"> <em>theme</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char const *&nbsp;</td>
          <td class="paramname"> <em>name</em></td><td>&nbsp;</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>theme</em>&nbsp;</td><td>a theme. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>the new name for the theme.</td></tr>
  </table>
  </dd>
</dl>
<p>Changes the name of the theme. </p>

</div>
</div>
<a class="anchor" id="a75ec868cbe739f61d47129a91f0a613a"></a><!-- doxytag: member="gcp::ThemeManager::CreateNewTheme" ref="a75ec868cbe739f61d47129a91f0a613a" args="(Theme *theme=NULL)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgcp_1_1Theme.html">Theme</a>* gcp::ThemeManager::CreateNewTheme </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classgcp_1_1Theme.html">Theme</a> *&nbsp;</td>
          <td class="paramname"> <em>theme</em> = <code>NULL</code></td>
          <td>&nbsp;)&nbsp;</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>theme</em>&nbsp;</td><td>a theme to duplicate.</td></tr>
  </table>
  </dd>
</dl>
<p>Creates a new theme based on <em>theme</em> or on the default theme if <em>theme</em> is NULL. </p>

</div>
</div>
<a class="anchor" id="a7aaeab8f35a0e272ce6b414a8facaae5"></a><!-- doxytag: member="gcp::ThemeManager::GetDefaultTheme" ref="a7aaeab8f35a0e272ce6b414a8facaae5" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgcp_1_1Theme.html">Theme</a>* gcp::ThemeManager::GetDefaultTheme </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>the default theme. </dd></dl>

<p>Definition at line <a class="el" href="theme_8h_source.html#l00365">365</a> of file <a class="el" href="theme_8h_source.html">theme.h</a>.</p>

</div>
</div>
<a class="anchor" id="a216ee0d52d265f247aaa0bfcf25fb2b6"></a><!-- doxytag: member="gcp::ThemeManager::GetTheme" ref="a216ee0d52d265f247aaa0bfcf25fb2b6" args="(std::string &amp;name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgcp_1_1Theme.html">Theme</a>* gcp::ThemeManager::GetTheme </td>
          <td>(</td>
          <td class="paramtype">std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>name</em></td>
          <td>&nbsp;)&nbsp;</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>&nbsp;</td><td>the name of the requested theme.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the theme corresponding to <em>name</em> if any, or NULL. </dd></dl>

</div>
</div>
<a class="anchor" id="a2d8371e99e9f61396239e7ed0e54a3e9"></a><!-- doxytag: member="gcp::ThemeManager::GetTheme" ref="a2d8371e99e9f61396239e7ed0e54a3e9" args="(char const *name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classgcp_1_1Theme.html">Theme</a>* gcp::ThemeManager::GetTheme </td>
          <td>(</td>
          <td class="paramtype">char const *&nbsp;</td>
          <td class="paramname"> <em>name</em></td>
          <td>&nbsp;)&nbsp;</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>&nbsp;</td><td>the name of the requested theme.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the theme corresponding to <em>name</em> if any, or NULL. </dd></dl>

</div>
</div>
<a class="anchor" id="a88c87d5efd59453c63774fd26e430303"></a><!-- doxytag: member="gcp::ThemeManager::GetThemesNames" ref="a88c87d5efd59453c63774fd26e430303" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::list&lt;std::string&gt; const&amp; gcp::ThemeManager::GetThemesNames </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>the list of all theme names currently in use. </dd></dl>

</div>
</div>
<a class="anchor" id="adcd5a4f966d9ab3447b9392d32418241"></a><!-- doxytag: member="gcp::ThemeManager::OnConfigChanged" ref="adcd5a4f966d9ab3447b9392d32418241" args="(GConfClient *client, guint cnxn_id, GConfEntry *entry)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcp::ThemeManager::OnConfigChanged </td>
          <td>(</td>
          <td class="paramtype">GConfClient *&nbsp;</td>
          <td class="paramname"> <em>client</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">guint&nbsp;</td>
          <td class="paramname"> <em>cnxn_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">GConfEntry *&nbsp;</td>
          <td class="paramname"> <em>entry</em></td><td>&nbsp;</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>client</em>&nbsp;</td><td>the GConfClient which a key value changed. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>cnxn_id</em>&nbsp;</td><td>the notification id. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>entry</em>&nbsp;</td><td>the entry which changed.</td></tr>
  </table>
  </dd>
</dl>
<p>Called by the framework when the value associated with <em>entry</em> changed in the settings. </p>

</div>
</div>
<a class="anchor" id="aa86e2828b8aadce5e8e323c091c47eb7"></a><!-- doxytag: member="gcp::ThemeManager::RemoveFileTheme" ref="aa86e2828b8aadce5e8e323c091c47eb7" args="(Theme *theme)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcp::ThemeManager::RemoveFileTheme </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classgcp_1_1Theme.html">Theme</a> *&nbsp;</td>
          <td class="paramname"> <em>theme</em></td>
          <td>&nbsp;)&nbsp;</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>theme</em>&nbsp;</td><td>the themeto remove from the list.</td></tr>
  </table>
  </dd>
</dl>
<p>Called for theme registered using AddFileName() typically when the associated document file is closed. </p>

</div>
</div>
<a class="anchor" id="abd17e8b9828dc609d3d6e8aaf1f5c934"></a><!-- doxytag: member="gcp::ThemeManager::SetDefaultTheme" ref="abd17e8b9828dc609d3d6e8aaf1f5c934" args="(char const *name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcp::ThemeManager::SetDefaultTheme </td>
          <td>(</td>
          <td class="paramtype">char const *&nbsp;</td>
          <td class="paramname"> <em>name</em></td>
          <td>&nbsp;)&nbsp;</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>&nbsp;</td><td>the name of the default theme.</td></tr>
  </table>
  </dd>
</dl>
<p>Sets the default theme. This theme is used when creating new documents with no explicit theme. </p>

</div>
</div>
<a class="anchor" id="aae4f5bef58384272ed230fd40b268f6c"></a><!-- doxytag: member="gcp::ThemeManager::Shutdown" ref="aae4f5bef58384272ed230fd40b268f6c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcp::ThemeManager::Shutdown </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Closes configuration change notification. Should be called once before the destructionof the theme manager. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="theme_8h_source.html">theme.h</a></li>
</ul>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sun Sep 6 18:33:54 2009 for The Gnome Chemistry Utils by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>