Sophie

Sophie

distrib > Mandriva > 2011.0 > x86_64 > by-pkgid > e4e5aca55b6d7244e6bae95bf4fde3ca > files > 126

lib64edelib-devel-2.0-1.x86_64.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"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>edelib: edelib/IconTheme.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />



</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">edelib
   &#160;<span id="projectnumber">2.0.0</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</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>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">edelib/IconTheme.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * $Id: IconTheme.h 2839 2009-09-28 11:36:20Z karijes $</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> * Icon theme</span>
<a name="l00005"></a>00005 <span class="comment"> * Copyright (c) 2005-2009 edelib authors</span>
<a name="l00006"></a>00006 <span class="comment"> *</span>
<a name="l00007"></a>00007 <span class="comment"> * This library is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> * modify it under the terms of the GNU Lesser General Public</span>
<a name="l00009"></a>00009 <span class="comment"> * License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> * version 2 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> *</span>
<a name="l00012"></a>00012 <span class="comment"> * This library is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> * Lesser General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> *</span>
<a name="l00017"></a>00017 <span class="comment"> * You should have received a copy of the GNU Lesser General Public License</span>
<a name="l00018"></a>00018 <span class="comment"> * along with this library. If not, see &lt;http://www.gnu.org/licenses/&gt;.</span>
<a name="l00019"></a>00019 <span class="comment"> */</span>
<a name="l00020"></a>00020 
<a name="l00021"></a>00021 <span class="preprocessor">#ifndef __EDELIB_ICONTHEME_H__</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor">#define __EDELIB_ICONTHEME_H__</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span>
<a name="l00024"></a>00024 <span class="preprocessor">#include &quot;String.h&quot;</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &quot;List.h&quot;</span>
<a name="l00026"></a>00026 
<a name="l00027"></a>00027 EDELIB_NS_BEGIN
<a name="l00028"></a>00028 
<a name="l00033"></a><a class="code" href="namespaceedelib.html#aeb27e3dfb8d94ad24899ae092f5d00a0">00033</a> <span class="keyword">enum</span> <a class="code" href="namespaceedelib.html#aeb27e3dfb8d94ad24899ae092f5d00a0" title="Icon sizes to look for.">IconSizes</a> {
<a name="l00034"></a><a class="code" href="namespaceedelib.html#aeb27e3dfb8d94ad24899ae092f5d00a0a4c7853afc796d1d5870b791600b4a3dc">00034</a>         <a class="code" href="namespaceedelib.html#aeb27e3dfb8d94ad24899ae092f5d00a0a4c7853afc796d1d5870b791600b4a3dc" title="16x16 icons">ICON_SIZE_TINY</a>         = 16,   
<a name="l00035"></a><a class="code" href="namespaceedelib.html#aeb27e3dfb8d94ad24899ae092f5d00a0a9020965a94ceb64a88d1be27515766e7">00035</a>         <a class="code" href="namespaceedelib.html#aeb27e3dfb8d94ad24899ae092f5d00a0a9020965a94ceb64a88d1be27515766e7" title="22x22 icons">ICON_SIZE_SMALL</a>        = 22,   
<a name="l00036"></a><a class="code" href="namespaceedelib.html#aeb27e3dfb8d94ad24899ae092f5d00a0a95330f42bf6694d67ae04ed7b45fa80d">00036</a>         <a class="code" href="namespaceedelib.html#aeb27e3dfb8d94ad24899ae092f5d00a0a95330f42bf6694d67ae04ed7b45fa80d" title="32x32">ICON_SIZE_MEDIUM</a>       = 32,   
<a name="l00037"></a><a class="code" href="namespaceedelib.html#aeb27e3dfb8d94ad24899ae092f5d00a0ae637edbe0fbeefe83783547762e46d9d">00037</a>         <a class="code" href="namespaceedelib.html#aeb27e3dfb8d94ad24899ae092f5d00a0ae637edbe0fbeefe83783547762e46d9d" title="48x48">ICON_SIZE_LARGE</a>        = 48,   
<a name="l00038"></a><a class="code" href="namespaceedelib.html#aeb27e3dfb8d94ad24899ae092f5d00a0a8b18f026fccd6c2351c0ca840f4d9a9d">00038</a>         <a class="code" href="namespaceedelib.html#aeb27e3dfb8d94ad24899ae092f5d00a0a8b18f026fccd6c2351c0ca840f4d9a9d" title="64x64">ICON_SIZE_HUGE</a>         = 64,   
<a name="l00039"></a><a class="code" href="namespaceedelib.html#aeb27e3dfb8d94ad24899ae092f5d00a0a913c136ccc1fe0bca6eaaac49fc15391">00039</a>         <a class="code" href="namespaceedelib.html#aeb27e3dfb8d94ad24899ae092f5d00a0a913c136ccc1fe0bca6eaaac49fc15391" title="128x128">ICON_SIZE_ENORMOUS</a>     = 128   
<a name="l00040"></a>00040 };
<a name="l00041"></a>00041 
<a name="l00046"></a><a class="code" href="namespaceedelib.html#ae2d9595634d229a9d997209ae87f5e39">00046</a> <span class="keyword">enum</span> <a class="code" href="namespaceedelib.html#ae2d9595634d229a9d997209ae87f5e39" title="Icon types to look for.">IconContext</a> {
<a name="l00047"></a><a class="code" href="namespaceedelib.html#ae2d9595634d229a9d997209ae87f5e39a775fab20e90387345fe41cbca4b203fc">00047</a>         <a class="code" href="namespaceedelib.html#ae2d9595634d229a9d997209ae87f5e39a775fab20e90387345fe41cbca4b203fc" title="Can be any icon context.">ICON_CONTEXT_ANY</a> = 0,          
<a name="l00048"></a><a class="code" href="namespaceedelib.html#ae2d9595634d229a9d997209ae87f5e39a82f9e0f4b274601b7150ecd532d2249d">00048</a>         <a class="code" href="namespaceedelib.html#ae2d9595634d229a9d997209ae87f5e39a82f9e0f4b274601b7150ecd532d2249d" title="Icons representing actions.">ICON_CONTEXT_ACTION</a>,           
<a name="l00049"></a><a class="code" href="namespaceedelib.html#ae2d9595634d229a9d997209ae87f5e39a4686cdf5126a196d96be59c6d647d8e2">00049</a>         <a class="code" href="namespaceedelib.html#ae2d9595634d229a9d997209ae87f5e39a4686cdf5126a196d96be59c6d647d8e2" title="Icons representing applications.">ICON_CONTEXT_APPLICATION</a>,      
<a name="l00050"></a><a class="code" href="namespaceedelib.html#ae2d9595634d229a9d997209ae87f5e39a000707a94c9a15e2ab428a8c0b9c8974">00050</a>         <a class="code" href="namespaceedelib.html#ae2d9595634d229a9d997209ae87f5e39a000707a94c9a15e2ab428a8c0b9c8974" title="Icons representing devices.">ICON_CONTEXT_DEVICE</a>,           
<a name="l00051"></a><a class="code" href="namespaceedelib.html#ae2d9595634d229a9d997209ae87f5e39ae44aaa5380a3126741daa705ad20a5ac">00051</a>         <a class="code" href="namespaceedelib.html#ae2d9595634d229a9d997209ae87f5e39ae44aaa5380a3126741daa705ad20a5ac" title="Icons representing objects that are part of system.">ICON_CONTEXT_FILESYSTEM</a>,       
<a name="l00052"></a><a class="code" href="namespaceedelib.html#ae2d9595634d229a9d997209ae87f5e39af2470d522e7e4ee893711b474c27923f">00052</a>         <a class="code" href="namespaceedelib.html#ae2d9595634d229a9d997209ae87f5e39af2470d522e7e4ee893711b474c27923f" title="Icons representing MIME types.">ICON_CONTEXT_MIMETYPE</a>,         
<a name="l00053"></a><a class="code" href="namespaceedelib.html#ae2d9595634d229a9d997209ae87f5e39aceae0e6622aba86d3904775239708613">00053</a>         <a class="code" href="namespaceedelib.html#ae2d9595634d229a9d997209ae87f5e39aceae0e6622aba86d3904775239708613" title="Icons representing stock objects (gnome themes usually)">ICON_CONTEXT_STOCK</a>,            
<a name="l00054"></a><a class="code" href="namespaceedelib.html#ae2d9595634d229a9d997209ae87f5e39a284f399188241a9b6e4fc3014c8c0f2e">00054</a>         <a class="code" href="namespaceedelib.html#ae2d9595634d229a9d997209ae87f5e39a284f399188241a9b6e4fc3014c8c0f2e" title="Icons representing emblem objects (gnome themes usually)">ICON_CONTEXT_EMBLEM</a>,           
<a name="l00055"></a><a class="code" href="namespaceedelib.html#ae2d9595634d229a9d997209ae87f5e39af4dd5582dc57ac39bfff0f4cbc9f47f7">00055</a>         <a class="code" href="namespaceedelib.html#ae2d9595634d229a9d997209ae87f5e39af4dd5582dc57ac39bfff0f4cbc9f47f7" title="Misc icons (gnome themes usually)">ICON_CONTEXT_MISC</a>              
<a name="l00056"></a>00056 };
<a name="l00057"></a>00057 
<a name="l00058"></a>00058 <span class="keyword">class </span>IconThemePrivate;
<a name="l00059"></a>00059 
<a name="l00080"></a><a class="code" href="classedelib_1_1IconTheme.html">00080</a> <span class="keyword">class </span>EDELIB_API <a class="code" href="classedelib_1_1IconTheme.html" title="Finds named icon according to the given theme.">IconTheme</a> {
<a name="l00081"></a>00081 <span class="keyword">private</span>:
<a name="l00082"></a>00082         IconThemePrivate* priv;
<a name="l00083"></a>00083 
<a name="l00084"></a>00084         <span class="keywordtype">void</span> load_theme(<span class="keyword">const</span> <span class="keywordtype">char</span>* name);
<a name="l00085"></a>00085         <span class="keywordtype">void</span> read_inherits(<span class="keyword">const</span> <span class="keywordtype">char</span>* buf);
<a name="l00086"></a>00086 
<a name="l00087"></a>00087         <a class="code" href="group__macros.html#gaef9b2427c1dfe072bc563a6051cc385c">E_DISABLE_CLASS_COPY</a>(<a class="code" href="classedelib_1_1IconTheme.html" title="Finds named icon according to the given theme.">IconTheme</a>)
<a name="l00088"></a>00088 <span class="keyword">public</span>:
<a name="l00092"></a><a class="code" href="classedelib_1_1IconTheme.html#a9412d33a3aeb2780524cd4124e984381">00092</a>         <a class="code" href="classedelib_1_1IconTheme.html#a9412d33a3aeb2780524cd4124e984381">IconTheme</a>() : priv(NULL) { }
<a name="l00093"></a>00093 
<a name="l00097"></a><a class="code" href="classedelib_1_1IconTheme.html#a656fe5822e7549ad0c38dc47d10f8522">00097</a>         <a class="code" href="classedelib_1_1IconTheme.html#a656fe5822e7549ad0c38dc47d10f8522">~IconTheme</a>() { clear(); }
<a name="l00098"></a>00098 
<a name="l00103"></a>00103         <span class="keywordtype">void</span> load(<span class="keyword">const</span> <span class="keywordtype">char</span>* name);
<a name="l00104"></a>00104 
<a name="l00108"></a>00108         <span class="keywordtype">void</span> clear(<span class="keywordtype">void</span>);
<a name="l00109"></a>00109 
<a name="l00113"></a>00113         <a class="code" href="classedelib_1_1String.html" title="A (relatively simple) string implementation.">String</a> find_icon(<span class="keyword">const</span> <span class="keywordtype">char</span>* icon, <a class="code" href="namespaceedelib.html#aeb27e3dfb8d94ad24899ae092f5d00a0" title="Icon sizes to look for.">IconSizes</a> size, <a class="code" href="namespaceedelib.html#ae2d9595634d229a9d997209ae87f5e39" title="Icon types to look for.">IconContext</a> context = ICON_CONTEXT_ANY);
<a name="l00114"></a>00114 
<a name="l00118"></a>00118         <span class="keyword">const</span> <span class="keywordtype">char</span>* theme_name(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00119"></a>00119 
<a name="l00127"></a>00127         <span class="keyword">const</span> <span class="keywordtype">char</span>* stylized_theme_name(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00128"></a>00128 
<a name="l00132"></a>00132         <span class="keyword">const</span> <span class="keywordtype">char</span>* description(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00133"></a>00133 
<a name="l00138"></a>00138         <span class="keyword">const</span> <span class="keywordtype">char</span>* example_icon(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00139"></a>00139 
<a name="l00143"></a>00143         <span class="keywordtype">void</span> query_icons(<a class="code" href="classedelib_1_1list.html" title="Linked list class.">list&lt;String&gt;</a>&amp; lst, <a class="code" href="namespaceedelib.html#aeb27e3dfb8d94ad24899ae092f5d00a0" title="Icon sizes to look for.">IconSizes</a> size, <a class="code" href="namespaceedelib.html#ae2d9595634d229a9d997209ae87f5e39" title="Icon types to look for.">IconContext</a> context = ICON_CONTEXT_ANY) <span class="keyword">const</span>;
<a name="l00144"></a>00144 
<a name="l00148"></a><a class="code" href="classedelib_1_1IconTheme.html#ad92c449d20dcc3b5b96f367ab1aaf5e1">00148</a>         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classedelib_1_1IconTheme.html#ad92c449d20dcc3b5b96f367ab1aaf5e1">default_theme_name</a>(<span class="keywordtype">void</span>) { <span class="keywordflow">return</span> <span class="stringliteral">&quot;edeneu&quot;</span>; }
<a name="l00149"></a>00149 };
<a name="l00150"></a>00150 
<a name="l00151"></a>00151 EDELIB_NS_END
<a name="l00152"></a>00152 <span class="preprocessor">#endif</span>
</pre></div></div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Tue Jun 5 2012 17:49:02 for edelib by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>