Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 0102b942207b9d1f394a9a1ca1a811b6 > files > 71

bakery-devel-2.6.3-4.fc14.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>bakery: Dialog_Preferences.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<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="classes.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
<h1>Dialog_Preferences.h</h1><a href="Dialog__Preferences_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * Copyright 2002 Murray Cumming</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> * This library is free software; you can redistribute it and/or</span>
<a name="l00005"></a>00005 <span class="comment"> * modify it under the terms of the GNU Library General Public</span>
<a name="l00006"></a>00006 <span class="comment"> * License as published by the Free Software Foundation; either</span>
<a name="l00007"></a>00007 <span class="comment"> * version 2 of the License, or (at your option) any later version.</span>
<a name="l00008"></a>00008 <span class="comment"> *</span>
<a name="l00009"></a>00009 <span class="comment"> * This library is distributed in the hope that it will be useful,</span>
<a name="l00010"></a>00010 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00011"></a>00011 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
<a name="l00012"></a>00012 <span class="comment"> * Library General Public License for more details.</span>
<a name="l00013"></a>00013 <span class="comment"> *</span>
<a name="l00014"></a>00014 <span class="comment"> * You should have received a copy of the GNU Library General Public</span>
<a name="l00015"></a>00015 <span class="comment"> * License along with this library; if not, write to the Free</span>
<a name="l00016"></a>00016 <span class="comment"> * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.</span>
<a name="l00017"></a>00017 <span class="comment"> */</span>
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="preprocessor">#ifndef BAKERY_CONFIGURATION_DIALOG_PREFERENCES_H</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#define BAKERY_CONFIGURATION_DIALOG_PREFERENCES_H</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span>
<a name="l00022"></a>00022 <span class="preprocessor">#include &lt;libglademm.h&gt;</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include &lt;<a class="code" href="Client_8h.html">bakery/Configuration/Client.h</a>&gt;</span>
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;<a class="codeRef" doxygen="gtkmm_doxygen_tags:" href="dialog_8h.html">gtkmm/dialog.h</a>&gt;</span>
<a name="l00025"></a>00025 
<a name="l00026"></a>00026 <span class="keyword">namespace </span>Bakery
<a name="l00027"></a>00027 {
<a name="l00028"></a>00028 
<a name="l00040"></a><a class="code" href="classBakery_1_1Dialog__Preferences.html">00040</a> <span class="keyword">class </span><a class="code" href="classBakery_1_1Dialog__Preferences.html" title="Preferences Dialog In the Glade file:The vbox should contain a widget called &amp;quot;vbox&amp;quot;...">Dialog_Preferences</a> : <span class="keyword">public</span> Gtk::Dialog
<a name="l00041"></a>00041 {
<a name="l00042"></a>00042 <span class="keyword">public</span>:
<a name="l00044"></a>00044   <a class="code" href="classBakery_1_1Dialog__Preferences.html#ccaa4662b7550d5e4d69339103e87352" title="if instant is true then this will be an instant-apply preference dialog.">Dialog_Preferences</a>(<a class="codeRef" doxygen="gtkmm_doxygen_tags:" href="classGtk_1_1Window.html">Gtk::Window</a>&amp; parent, <span class="keyword">const</span> <a class="codeRef" doxygen="glibmm_doxygen_tags:" href="classGlib_1_1ustring.html">Glib::ustring</a>&amp; configuration_directory, <span class="keyword">const</span> <a class="codeRef" doxygen="glibmm_doxygen_tags:" href="classGlib_1_1ustring.html">Glib::ustring</a>&amp; glade_filename, <span class="keyword">const</span> <a class="codeRef" doxygen="glibmm_doxygen_tags:" href="classGlib_1_1ustring.html">Glib::ustring</a>&amp; widget_name = <span class="stringliteral">"vbox"</span>, <span class="keywordtype">bool</span> instant = <span class="keyword">false</span>);
<a name="l00045"></a>00045   <span class="keyword">virtual</span> <a class="code" href="classBakery_1_1Dialog__Preferences.html#2db133a39183c98052a5c0d321c7e5e6">~Dialog_Preferences</a>();
<a name="l00046"></a>00046 
<a name="l00047"></a>00047 <span class="preprocessor">#ifdef GLIBMM_EXCEPTIONS_ENABLED</span>
<a name="l00048"></a>00048 <span class="preprocessor"></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classBakery_1_1Dialog__Preferences.html#827e633e639a05b406553da0d603d1a3">load</a>();
<a name="l00049"></a>00049   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classBakery_1_1Dialog__Preferences.html#553d0b689bab9dfc113aef9cd3dd53e7">save</a>();
<a name="l00050"></a>00050 <span class="preprocessor">#else</span>
<a name="l00051"></a>00051 <span class="preprocessor"></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classBakery_1_1Dialog__Preferences.html#827e633e639a05b406553da0d603d1a3">load</a>(std::auto_ptr&lt;Glib::Error&gt;&amp; error);
<a name="l00052"></a>00052   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classBakery_1_1Dialog__Preferences.html#553d0b689bab9dfc113aef9cd3dd53e7">save</a>(std::auto_ptr&lt;Glib::Error&gt;&amp; error);
<a name="l00053"></a>00053 <span class="preprocessor">#endif</span>
<a name="l00054"></a>00054 <span class="preprocessor"></span>
<a name="l00055"></a>00055 <span class="keyword">protected</span>:
<a name="l00056"></a>00056 
<a name="l00057"></a>00057    <span class="comment">//Signal handlers:</span>
<a name="l00058"></a>00058   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classBakery_1_1Dialog__Preferences.html#a3b148bdab26b9cd160d8814e41b7da6">on_button_help</a>();
<a name="l00059"></a>00059 
<a name="l00060"></a>00060   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classBakery_1_1Dialog__Preferences.html#014bea10b6a49863792262b050e5e793">connect_widget</a>(<span class="keyword">const</span> <a class="codeRef" doxygen="glibmm_doxygen_tags:" href="classGlib_1_1ustring.html">Glib::ustring</a>&amp; key, <span class="keyword">const</span> <a class="codeRef" doxygen="glibmm_doxygen_tags:" href="classGlib_1_1ustring.html">Glib::ustring</a>&amp; glade_widget_name);
<a name="l00061"></a>00061 
<a name="l00062"></a>00062   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classBakery_1_1Dialog__Preferences.html#9d18200ca7e8b63c73f21ae4f0231dee">on_show</a>(); <span class="comment">//override.</span>
<a name="l00063"></a>00063   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classBakery_1_1Dialog__Preferences.html#ce13381611674a880e060585e802bf4b">on_hide</a>(); <span class="comment">//override.</span>
<a name="l00064"></a>00064   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classBakery_1_1Dialog__Preferences.html#86e7fff5e322c0f5a6ef9cb2ce31f19e">on_response</a>(<span class="keywordtype">int</span> response_id); <span class="comment">// override.</span>
<a name="l00065"></a>00065 
<a name="l00066"></a><a class="code" href="classBakery_1_1Dialog__Preferences.html#77404f08a3462a02e62eca382f1d966c">00066</a>   <a class="codeRef" doxygen="gtkmm_doxygen_tags:" href="classGtk_1_1Button.html">Gtk::Button</a> <a class="code" href="classBakery_1_1Dialog__Preferences.html#022641101f0aaa0bd932f0dd79d51b31">m_Button_Close</a>, <a class="code" href="classBakery_1_1Dialog__Preferences.html#27fe9270c3c9b53ac75b6a4b2d6583d0">m_Button_Cancel</a>, <a class="code" href="classBakery_1_1Dialog__Preferences.html#77404f08a3462a02e62eca382f1d966c">m_Button_Help</a>;
<a name="l00067"></a>00067 
<a name="l00068"></a><a class="code" href="classBakery_1_1Dialog__Preferences.html#0e86b7ea731e17e3b6645fba9b8a9e10">00068</a>   <span class="keywordtype">bool</span> <a class="code" href="classBakery_1_1Dialog__Preferences.html#0e86b7ea731e17e3b6645fba9b8a9e10">m_instant</a>;
<a name="l00069"></a><a class="code" href="classBakery_1_1Dialog__Preferences.html#c68c5073c052b1e52df5582e6b3b9d4d">00069</a>   <a class="codeRef" doxygen="glibmm_doxygen_tags:" href="classGlib_1_1RefPtr.html">Glib::RefPtr&lt;Gnome::Glade::Xml&gt;</a> <a class="code" href="classBakery_1_1Dialog__Preferences.html#c68c5073c052b1e52df5582e6b3b9d4d">m_refGlade</a>;
<a name="l00070"></a><a class="code" href="classBakery_1_1Dialog__Preferences.html#b4230286b0c954aaeb56de545fbe56ec">00070</a>   <a class="code" href="classBakery_1_1Conf_1_1Client.html" title="Configuration Client Allows you to associate widget &amp;quot;values&amp;quot; with configuration...">Bakery::Conf::Client</a>* <a class="code" href="classBakery_1_1Dialog__Preferences.html#b4230286b0c954aaeb56de545fbe56ec">m_pConfClient</a>;
<a name="l00071"></a>00071 };
<a name="l00072"></a>00072 
<a name="l00073"></a>00073 
<a name="l00074"></a>00074 } <span class="comment">//namespace Bakery</span>
<a name="l00075"></a>00075 
<a name="l00076"></a>00076 <span class="preprocessor">#endif //BAKERY_CONFIGURATION_DIALOG_PREFERENCES_H</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Dec 8 18:42:35 2008 for bakery by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>