Sophie

Sophie

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

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: theme.h Source File</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><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_3f1a4fbcec42af7c381c8030b930461d.html">libs</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_1f5da3c0cda3468e6af2b669a803fceb.html">gcp</a>
  </div>
</div>
<div class="contents">
<h1>theme.h</h1><a href="theme_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- C++ -*-</span>
<a name="l00002"></a>00002 
<a name="l00003"></a>00003 <span class="comment">/* </span>
<a name="l00004"></a>00004 <span class="comment"> * GChemPaint library</span>
<a name="l00005"></a>00005 <span class="comment"> * theme.h</span>
<a name="l00006"></a>00006 <span class="comment"> *</span>
<a name="l00007"></a>00007 <span class="comment"> * Copyright (C) 2002-2007 Jean Bréfort &lt;jean.brefort@normalesup.org&gt;</span>
<a name="l00008"></a>00008 <span class="comment"> *</span>
<a name="l00009"></a>00009 <span class="comment"> * This program is free software; you can redistribute it and/or </span>
<a name="l00010"></a>00010 <span class="comment"> * modify it under the terms of the GNU General Public License as </span>
<a name="l00011"></a>00011 <span class="comment"> * published by the Free Software Foundation; either version 2 of the</span>
<a name="l00012"></a>00012 <span class="comment"> * License, or (at your option) any later version.</span>
<a name="l00013"></a>00013 <span class="comment"> *</span>
<a name="l00014"></a>00014 <span class="comment"> * This program is distributed in the hope that it will be useful,</span>
<a name="l00015"></a>00015 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00016"></a>00016 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00017"></a>00017 <span class="comment"> * GNU General Public License for more details.</span>
<a name="l00018"></a>00018 <span class="comment"> *</span>
<a name="l00019"></a>00019 <span class="comment"> * You should have received a copy of the GNU General Public License</span>
<a name="l00020"></a>00020 <span class="comment"> * along with this program; if not, write to the Free Software</span>
<a name="l00021"></a>00021 <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301</span>
<a name="l00022"></a>00022 <span class="comment"> * USA</span>
<a name="l00023"></a>00023 <span class="comment"> */</span>
<a name="l00024"></a>00024 
<a name="l00025"></a>00025 <span class="preprocessor">#ifndef GCHEMPAINT_THEME_H</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor">#define GCHEMPAINT_THEME_H</span>
<a name="l00027"></a>00027 <span class="preprocessor"></span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;<a class="code" href="macros_8h.html">gcu/macros.h</a>&gt;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;<a class="code" href="object_8h.html">gcu/object.h</a>&gt;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;glib/gtypes.h&gt;</span>
<a name="l00031"></a>00031 <span class="preprocessor">#include &lt;pango/pango.h&gt;</span>
<a name="l00032"></a>00032 <span class="preprocessor">#ifdef HAVE_GO_CONF_SYNC</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span><span class="preprocessor">#   ifdef GOFFICE_HAS_GLOBAL_HEADER</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span><span class="preprocessor">#      include &lt;goffice/goffice.h&gt;</span>
<a name="l00035"></a>00035 <span class="preprocessor">#   else</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span><span class="preprocessor">#          include &lt;goffice/app/go-conf.h&gt;</span>
<a name="l00037"></a>00037 <span class="preprocessor">#   endif</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00039"></a>00039 <span class="preprocessor"></span><span class="preprocessor">#   include &lt;gconf/gconf-client.h&gt;</span>
<a name="l00040"></a>00040 <span class="preprocessor">#endif</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span><span class="preprocessor">#include &lt;libxml/tree.h&gt;</span>
<a name="l00042"></a>00042 <span class="preprocessor">#include &lt;list&gt;</span>
<a name="l00043"></a>00043 <span class="preprocessor">#include &lt;map&gt;</span>
<a name="l00044"></a>00044 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00045"></a>00045 <span class="preprocessor">#include &lt;set&gt;</span>
<a name="l00046"></a>00046 
<a name="l00049"></a>00049 <span class="keyword">namespace </span>gcp {
<a name="l00050"></a>00050 
<a name="l00054"></a><a class="code" href="namespacegcp.html#af0a6438daffce6f985a09fdb0ceee5d7">00054</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> {
<a name="l00058"></a><a class="code" href="namespacegcp.html#af0a6438daffce6f985a09fdb0ceee5d7a63ed49496dc512977a7b641e1b255f02">00058</a>         <a class="code" href="namespacegcp.html#af0a6438daffce6f985a09fdb0ceee5d7a63ed49496dc512977a7b641e1b255f02">DEFAULT_THEME_TYPE</a>,
<a name="l00062"></a><a class="code" href="namespacegcp.html#af0a6438daffce6f985a09fdb0ceee5d7ad2207669e460db21a0e3d4477073718e">00062</a>         <a class="code" href="namespacegcp.html#af0a6438daffce6f985a09fdb0ceee5d7ad2207669e460db21a0e3d4477073718e">LOCAL_THEME_TYPE</a>,
<a name="l00066"></a><a class="code" href="namespacegcp.html#af0a6438daffce6f985a09fdb0ceee5d7a2c53f1dd2123d6eb4c3f5f3ea1944323">00066</a>         <a class="code" href="namespacegcp.html#af0a6438daffce6f985a09fdb0ceee5d7a2c53f1dd2123d6eb4c3f5f3ea1944323">GLOBAL_THEME_TYPE</a>,
<a name="l00070"></a><a class="code" href="namespacegcp.html#af0a6438daffce6f985a09fdb0ceee5d7aba27ec269bb3096a85b1ffccd779792d">00070</a>         <a class="code" href="namespacegcp.html#af0a6438daffce6f985a09fdb0ceee5d7aba27ec269bb3096a85b1ffccd779792d">FILE_THEME_TYPE</a>
<a name="l00071"></a>00071 } <a class="code" href="namespacegcp.html#af0a6438daffce6f985a09fdb0ceee5d7">ThemeType</a>;
<a name="l00072"></a>00072 
<a name="l00078"></a><a class="code" href="classgcp_1_1Theme.html">00078</a> <span class="keyword">class </span><a class="code" href="classgcp_1_1Theme.html" title="themes class.">Theme</a>
<a name="l00079"></a>00079 {
<a name="l00080"></a>00080 <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classgcp_1_1ThemeManager.html" title="themes engine class.">ThemeManager</a>;
<a name="l00081"></a>00081 <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classgcp_1_1PrefsDlg.html" title="GChemPaint preferences dialog class.">PrefsDlg</a>;
<a name="l00082"></a>00082 
<a name="l00083"></a>00083 <span class="keyword">public</span>:
<a name="l00089"></a>00089         <a class="code" href="classgcp_1_1Theme.html#a49d6aa7a7a8a9a40d97949d2275addbc">Theme</a> (<span class="keywordtype">char</span> <span class="keyword">const</span> *name);
<a name="l00093"></a>00093         <a class="code" href="classgcp_1_1Theme.html#ab9035e592737f7f4026546445c56db04">~Theme</a> ();
<a name="l00094"></a>00094 
<a name="l00098"></a><a class="code" href="classgcp_1_1Theme.html#a0922146857deb06f6e1c3def1e87588c">00098</a>         std::string &amp;<a class="code" href="classgcp_1_1Theme.html#a0922146857deb06f6e1c3def1e87588c">GetName</a> () {<span class="keywordflow">return</span> m_Name;}
<a name="l00105"></a>00105         <span class="keywordtype">bool</span> <a class="code" href="classgcp_1_1Theme.html#a1303aa20340ac75a654457d8b5185d89">Save</a> (xmlDocPtr xml);
<a name="l00111"></a>00111         <span class="keywordtype">bool</span> <a class="code" href="classgcp_1_1Theme.html#a5a75fefde308f56692a740a1453c2f8f">Load</a> (xmlNodePtr node);
<a name="l00117"></a>00117         <span class="keywordtype">bool</span> <a class="code" href="classgcp_1_1Theme.html#a69ef148e167b8a746af6d25008ed2171">operator== </a>(<span class="keyword">const</span> <a class="code" href="classgcp_1_1Theme.html" title="themes class.">Theme</a> &amp;theme);
<a name="l00123"></a><a class="code" href="classgcp_1_1Theme.html#a033cfd1ffe5cb2b1bc44e4f84bc1dbdf">00123</a>         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Theme.html#a033cfd1ffe5cb2b1bc44e4f84bc1dbdf">AddClient</a> (<a class="code" href="classgcu_1_1Object.html">gcu::Object</a> *client) {m_Clients.insert (client);}
<a name="l00129"></a>00129         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Theme.html#a1a82006dc2cbb62a8a7f93e04108bf77">RemoveClient</a> (<a class="code" href="classgcu_1_1Object.html">gcu::Object</a> *client);
<a name="l00133"></a>00133         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Theme.html#a006e9aa0a214bc596e4c66d0724a8dca">NotifyChanged</a> ();
<a name="l00134"></a>00134 
<a name="l00135"></a>00135 <span class="keyword">private</span>:
<a name="l00136"></a>00136         std::string m_Name;
<a name="l00137"></a>00137         std::set &lt;gcu::Object*&gt; m_Clients;
<a name="l00138"></a>00138         <span class="keywordtype">bool</span> modified;
<a name="l00139"></a>00139 
<a name="l00143"></a><a class="code" href="classgcp_1_1Theme.html#a9dff7372f85eec2300c9651b3e6540cf">00143</a> <a class="code" href="macros_8h.html#ae59df402113b58e8e28a7898e09a19a2">GCU_RO_PROP</a> (<span class="keywordtype">double</span>, BondLength)
<a name="l00147"></a><a class="code" href="classgcp_1_1Theme.html#ae58cbfa2e076710398aa9c1d87b57c7f">00147</a> <a class="code" href="macros_8h.html#ae59df402113b58e8e28a7898e09a19a2">GCU_RO_PROP</a> (<span class="keywordtype">double</span>, BondAngle)
<a name="l00151"></a><a class="code" href="classgcp_1_1Theme.html#a096638e1b9d2138b7f49b1506c43d694">00151</a> <a class="code" href="macros_8h.html#ae59df402113b58e8e28a7898e09a19a2">GCU_RO_PROP</a> (<span class="keywordtype">double</span>, BondDist)
<a name="l00155"></a><a class="code" href="classgcp_1_1Theme.html#a686cdb66574eb28c4537a765a150e08b">00155</a> <a class="code" href="macros_8h.html#ae59df402113b58e8e28a7898e09a19a2">GCU_RO_PROP</a> (<span class="keywordtype">double</span>, BondWidth)
<a name="l00159"></a><a class="code" href="classgcp_1_1Theme.html#acaa6011db6a2f31cb4e0cca87f4864f6">00159</a> <a class="code" href="macros_8h.html#ae59df402113b58e8e28a7898e09a19a2">GCU_RO_PROP</a> (<span class="keywordtype">double</span>, ArrowLength)
<a name="l00163"></a><a class="code" href="classgcp_1_1Theme.html#ae5518e2dc4ba5f014d5345348fdaad8b">00163</a> <a class="code" href="macros_8h.html#ae59df402113b58e8e28a7898e09a19a2">GCU_RO_PROP</a> (<span class="keywordtype">double</span>, HashWidth)
<a name="l00167"></a><a class="code" href="classgcp_1_1Theme.html#af8a2a0f59abd715710511eaa558afa26">00167</a> <a class="code" href="macros_8h.html#ae59df402113b58e8e28a7898e09a19a2">GCU_RO_PROP</a> (<span class="keywordtype">double</span>, HashDist)
<a name="l00171"></a><a class="code" href="classgcp_1_1Theme.html#adc12373caa0189a2ef4adc31f950be0f">00171</a> <a class="code" href="macros_8h.html#ae59df402113b58e8e28a7898e09a19a2">GCU_RO_PROP</a> (<span class="keywordtype">double</span>, StereoBondWidth)
<a name="l00175"></a><a class="code" href="classgcp_1_1Theme.html#a64a55b0635b1c5eb505dab4a482d3793">00175</a> <a class="code" href="macros_8h.html#ae59df402113b58e8e28a7898e09a19a2">GCU_RO_PROP</a> (<span class="keywordtype">double</span>, ZoomFactor)
<a name="l00179"></a><a class="code" href="classgcp_1_1Theme.html#ab42accb327ea9e57c2d113efd38663e4">00179</a> <a class="code" href="macros_8h.html#ae59df402113b58e8e28a7898e09a19a2">GCU_RO_PROP</a> (<span class="keywordtype">double</span>, Padding)
<a name="l00183"></a><a class="code" href="classgcp_1_1Theme.html#a00b24989dff6c649e4bf1103a70e6d49">00183</a> <a class="code" href="macros_8h.html#ae59df402113b58e8e28a7898e09a19a2">GCU_RO_PROP</a> (<span class="keywordtype">double</span>, ArrowHeadA)
<a name="l00187"></a><a class="code" href="classgcp_1_1Theme.html#aa41e55f85cf46b26110ac29a5591f8c4">00187</a> <a class="code" href="macros_8h.html#ae59df402113b58e8e28a7898e09a19a2">GCU_RO_PROP</a> (<span class="keywordtype">double</span>, ArrowHeadB)
<a name="l00191"></a><a class="code" href="classgcp_1_1Theme.html#a04b85f1c79af6427fb92834908bfbe52">00191</a> <a class="code" href="macros_8h.html#ae59df402113b58e8e28a7898e09a19a2">GCU_RO_PROP</a> (<span class="keywordtype">double</span>, ArrowHeadC)
<a name="l00195"></a><a class="code" href="classgcp_1_1Theme.html#a3b52b6aa9a7ce88ac8e50bd0e1173359">00195</a> <a class="code" href="macros_8h.html#ae59df402113b58e8e28a7898e09a19a2">GCU_RO_PROP</a> (<span class="keywordtype">double</span>, ArrowDist)
<a name="l00199"></a><a class="code" href="classgcp_1_1Theme.html#a75b822eb5eec5eea814e8082cf8a417c">00199</a> <a class="code" href="macros_8h.html#ae59df402113b58e8e28a7898e09a19a2">GCU_RO_PROP</a> (<span class="keywordtype">double</span>, ArrowWidth)
<a name="l00203"></a><a class="code" href="classgcp_1_1Theme.html#abdc8fd0a13beacd920395c7c0549fc69">00203</a> <a class="code" href="macros_8h.html#ae59df402113b58e8e28a7898e09a19a2">GCU_RO_PROP</a> (<span class="keywordtype">double</span>, ArrowPadding)
<a name="l00207"></a><a class="code" href="classgcp_1_1Theme.html#a97e6b8d0f0c6e2ee5738d649f916b730">00207</a> <a class="code" href="macros_8h.html#ae59df402113b58e8e28a7898e09a19a2">GCU_RO_PROP</a> (<span class="keywordtype">double</span>, ArrowObjectPadding)
<a name="l00211"></a><a class="code" href="classgcp_1_1Theme.html#a3884459a3f081c4ca30f65c648fb58d3">00211</a> <a class="code" href="macros_8h.html#ae59df402113b58e8e28a7898e09a19a2">GCU_RO_PROP</a> (<span class="keywordtype">double</span>, StoichiometryPadding)
<a name="l00215"></a><a class="code" href="classgcp_1_1Theme.html#aa4a9ff858261186b7e27acb6a728e407">00215</a> <a class="code" href="macros_8h.html#ae59df402113b58e8e28a7898e09a19a2">GCU_RO_PROP</a> (<span class="keywordtype">double</span>, ObjectPadding)
<a name="l00219"></a><a class="code" href="classgcp_1_1Theme.html#a86d1ad2d38a1e2cfa61d62dedeca0b0f">00219</a> <a class="code" href="macros_8h.html#ae59df402113b58e8e28a7898e09a19a2">GCU_RO_PROP</a> (<span class="keywordtype">double</span>, SignPadding)
<a name="l00223"></a><a class="code" href="classgcp_1_1Theme.html#aaff96d55d6ec536ac6c163a57beba096">00223</a> <a class="code" href="macros_8h.html#ae59df402113b58e8e28a7898e09a19a2">GCU_RO_PROP</a> (<span class="keywordtype">double</span>, ChargeSignSize)
<a name="l00227"></a><a class="code" href="classgcp_1_1Theme.html#a44cdf1c60053923a10a65d3660199b7d">00227</a> <a class="code" href="macros_8h.html#ae59df402113b58e8e28a7898e09a19a2">GCU_RO_PROP</a> (gchar*, FontFamily)
<a name="l00231"></a><a class="code" href="classgcp_1_1Theme.html#a28252bf3527077feb88521d87d58c377">00231</a> <a class="code" href="macros_8h.html#ae59df402113b58e8e28a7898e09a19a2">GCU_RO_PROP</a> (PangoStyle, FontStyle)
<a name="l00235"></a><a class="code" href="classgcp_1_1Theme.html#a7efde747d239fa9c6ec327fd889a632f">00235</a> <a class="code" href="macros_8h.html#ae59df402113b58e8e28a7898e09a19a2">GCU_RO_PROP</a> (PangoWeight, FontWeight)
<a name="l00239"></a><a class="code" href="classgcp_1_1Theme.html#ac5caf1d7ae4dc5a4ed0b12c21a5bb1c7">00239</a> <a class="code" href="macros_8h.html#ae59df402113b58e8e28a7898e09a19a2">GCU_RO_PROP</a> (PangoVariant, FontVariant)
<a name="l00243"></a><a class="code" href="classgcp_1_1Theme.html#a8a4555db6bd471015979ffce1c0f6329">00243</a> <a class="code" href="macros_8h.html#ae59df402113b58e8e28a7898e09a19a2">GCU_RO_PROP</a> (PangoStretch, FontStretch)
<a name="l00247"></a><a class="code" href="classgcp_1_1Theme.html#a8893e05595367d194ae24b8641d0eaff">00247</a> <a class="code" href="macros_8h.html#ae59df402113b58e8e28a7898e09a19a2">GCU_RO_PROP</a> (gint, FontSize)
<a name="l00251"></a><a class="code" href="classgcp_1_1Theme.html#a91737147136bbd63f035443923a03263">00251</a> <a class="code" href="macros_8h.html#ae59df402113b58e8e28a7898e09a19a2">GCU_RO_PROP</a> (gchar*, TextFontFamily)
<a name="l00255"></a><a class="code" href="classgcp_1_1Theme.html#a75e067dc29aa1f769b0bd66c7cfd2a77">00255</a> <a class="code" href="macros_8h.html#ae59df402113b58e8e28a7898e09a19a2">GCU_RO_PROP</a> (PangoStyle, TextFontStyle)
<a name="l00259"></a><a class="code" href="classgcp_1_1Theme.html#a9fae405c166817828700aede0bd6fb12">00259</a> <a class="code" href="macros_8h.html#ae59df402113b58e8e28a7898e09a19a2">GCU_RO_PROP</a> (PangoWeight, TextFontWeight)
<a name="l00263"></a><a class="code" href="classgcp_1_1Theme.html#ad5b973f3af9a0a0f2b088eb23ee56800">00263</a> <a class="code" href="macros_8h.html#ae59df402113b58e8e28a7898e09a19a2">GCU_RO_PROP</a> (PangoVariant, TextFontVariant)
<a name="l00267"></a><a class="code" href="classgcp_1_1Theme.html#ad882def26b9a8e303cce59bb5498140e">00267</a> <a class="code" href="macros_8h.html#ae59df402113b58e8e28a7898e09a19a2">GCU_RO_PROP</a> (PangoStretch, TextFontStretch)
<a name="l00271"></a><a class="code" href="classgcp_1_1Theme.html#aa08d3016cf4bd9c08d408b3721d696d9">00271</a> <a class="code" href="macros_8h.html#ae59df402113b58e8e28a7898e09a19a2">GCU_RO_PROP</a> (gint, TextFontSize)
<a name="l00275"></a><a class="code" href="classgcp_1_1Theme.html#a120a9e02d5deac1d24758c7be26fde3a">00275</a> <a class="code" href="macros_8h.html#ae59df402113b58e8e28a7898e09a19a2">GCU_RO_PROP</a> (<a class="code" href="namespacegcp.html#af0a6438daffce6f985a09fdb0ceee5d7">ThemeType</a>, ThemeType);
<a name="l00276"></a>00276 };
<a name="l00277"></a>00277 
<a name="l00284"></a><a class="code" href="classgcp_1_1ThemeManager.html">00284</a> class <a class="code" href="classgcp_1_1ThemeManager.html" title="themes engine class.">ThemeManager</a>
<a name="l00285"></a>00285 {
<a name="l00286"></a>00286 <span class="keyword">public</span>:
<a name="l00290"></a>00290         ThemeManager ();
<a name="l00294"></a>00294         ~ThemeManager ();
<a name="l00295"></a>00295 
<a name="l00301"></a>00301         <a class="code" href="classgcp_1_1Theme.html" title="themes class.">Theme</a> *GetTheme (<span class="keywordtype">char</span> <span class="keyword">const</span> *name);
<a name="l00307"></a>00307         <a class="code" href="classgcp_1_1Theme.html" title="themes class.">Theme</a> *GetTheme (std::string &amp;name);
<a name="l00311"></a>00311         std::list &lt;std::string&gt; <span class="keyword">const</span> &amp;GetThemesNames ();
<a name="l00312"></a>00312 <span class="preprocessor">#ifdef HAVE_GO_CONF_SYNC</span>
<a name="l00313"></a>00313 <span class="preprocessor"></span>
<a name="l00320"></a>00320         <span class="keywordtype">void</span> OnConfigChanged (GOConfNode *node, gchar <span class="keyword">const</span> *name);
<a name="l00321"></a>00321 <span class="preprocessor">#else</span>
<a name="l00322"></a>00322 <span class="preprocessor"></span>
<a name="l00330"></a>00330         <span class="keywordtype">void</span> OnConfigChanged (GConfClient *client,  guint cnxn_id, GConfEntry *entry);
<a name="l00331"></a>00331 <span class="preprocessor">#endif</span>
<a name="l00332"></a>00332 <span class="preprocessor"></span>
<a name="l00337"></a>00337         <a class="code" href="classgcp_1_1Theme.html" title="themes class.">Theme</a> *CreateNewTheme (<a class="code" href="classgcp_1_1Theme.html" title="themes class.">Theme</a> *theme = NULL);
<a name="l00347"></a>00347         <span class="keywordtype">void</span> AddFileTheme (<a class="code" href="classgcp_1_1Theme.html" title="themes class.">Theme</a> *theme, <span class="keywordtype">char</span> <span class="keyword">const</span> *label);
<a name="l00354"></a>00354         <span class="keywordtype">void</span> RemoveFileTheme (<a class="code" href="classgcp_1_1Theme.html" title="themes class.">Theme</a> *theme);
<a name="l00361"></a>00361         <span class="keywordtype">void</span> ChangeThemeName (<a class="code" href="classgcp_1_1Theme.html" title="themes class.">Theme</a> *theme, <span class="keywordtype">char</span> <span class="keyword">const</span> *name);
<a name="l00365"></a><a class="code" href="classgcp_1_1ThemeManager.html#a7aaeab8f35a0e272ce6b414a8facaae5">00365</a>         <a class="code" href="classgcp_1_1Theme.html" title="themes class.">Theme</a> *<a class="code" href="classgcp_1_1ThemeManager.html#a7aaeab8f35a0e272ce6b414a8facaae5">GetDefaultTheme</a> () {<span class="keywordflow">return</span> m_DefaultTheme;}
<a name="l00372"></a>00372         <span class="keywordtype">void</span> SetDefaultTheme (<span class="keywordtype">char</span> <span class="keyword">const</span> *name);
<a name="l00377"></a>00377         <span class="keywordtype">void</span> Shutdown ();
<a name="l00378"></a>00378 
<a name="l00379"></a>00379 <span class="keyword">private</span>:
<a name="l00380"></a>00380         <span class="keywordtype">void</span> ParseDir (std::string &amp;path, ThemeType type);
<a name="l00381"></a>00381 
<a name="l00382"></a>00382 <span class="keyword">private</span>:
<a name="l00383"></a>00383         std::map &lt;std::string, Theme*&gt; m_Themes;
<a name="l00384"></a>00384         std::list &lt;std::string&gt; m_Names;
<a name="l00385"></a>00385 <span class="preprocessor">#ifdef HAVE_GO_CONF_SYNC</span>
<a name="l00386"></a>00386 <span class="preprocessor"></span>        GOConfNode *m_ConfNode;
<a name="l00387"></a>00387 <span class="preprocessor">#else</span>
<a name="l00388"></a>00388 <span class="preprocessor"></span>        GConfClient *m_ConfClient;
<a name="l00389"></a>00389 <span class="preprocessor">#endif</span>
<a name="l00390"></a>00390 <span class="preprocessor"></span>        guint m_NotificationId;
<a name="l00391"></a>00391         <a class="code" href="classgcp_1_1Theme.html" title="themes class.">Theme</a> *m_DefaultTheme;
<a name="l00392"></a>00392 };
<a name="l00393"></a>00393 
<a name="l00397"></a>00397 <span class="keyword">extern</span> ThemeManager <a class="code" href="namespacegcp.html#aa6f4caa509caeda4f7b94e0cbd703809">TheThemeManager</a>;
<a name="l00398"></a>00398 
<a name="l00399"></a>00399 }       <span class="comment">//      namespace gcp</span>
<a name="l00400"></a>00400 
<a name="l00401"></a>00401 <span class="preprocessor">#endif  //      GCHEMPAINT_THEME_H</span>
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sun Sep 6 18:33:53 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>