Sophie

Sophie

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

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: window.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>gcp/window.h</h1><a href="gcp_2window_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"> * GChemPaint library</span>
<a name="l00003"></a>00003 <span class="comment"> * window.h</span>
<a name="l00004"></a>00004 <span class="comment"> *</span>
<a name="l00005"></a>00005 <span class="comment"> * Copyright (C) 2006-2008 Jean Bréfort &lt;jean.brefort@normalesup.org&gt;</span>
<a name="l00006"></a>00006 <span class="comment"> *</span>
<a name="l00007"></a>00007 <span class="comment"> * This program 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 General Public License as </span>
<a name="l00009"></a>00009 <span class="comment"> * published by the Free Software Foundation; either version 2 of the</span>
<a name="l00010"></a>00010 <span class="comment"> * 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 program 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</span>
<a name="l00015"></a>00015 <span class="comment"> * GNU 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 General Public License</span>
<a name="l00018"></a>00018 <span class="comment"> * along with this program; if not, write to the Free Software</span>
<a name="l00019"></a>00019 <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301</span>
<a name="l00020"></a>00020 <span class="comment"> * USA</span>
<a name="l00021"></a>00021 <span class="comment"> */</span>
<a name="l00022"></a>00022 
<a name="l00023"></a>00023 
<a name="l00024"></a>00024 <span class="preprocessor">#ifndef GCP_WINDOW_H</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define GCP_WINDOW_H</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &quot;<a class="code" href="target_8h.html">target.h</a>&quot;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;gtk/gtkwidget.h&gt;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;gtk/gtkuimanager.h&gt;</span>
<a name="l00030"></a>00030 
<a name="l00032"></a>00032 <span class="keyword">namespace </span>gcp {
<a name="l00033"></a>00033 
<a name="l00034"></a>00034 <span class="keyword">class </span>Application;
<a name="l00035"></a>00035 <span class="keyword">class </span>Document;
<a name="l00036"></a>00036 
<a name="l00041"></a><a class="code" href="classgcp_1_1Window.html">00041</a> <span class="keyword">class </span><a class="code" href="classgcp_1_1Window.html">Window</a>: <span class="keyword">public</span> <a class="code" href="classgcp_1_1Target.html">Target</a>
<a name="l00042"></a>00042 {
<a name="l00043"></a>00043 <span class="keyword">public</span>:
<a name="l00063"></a>00063         <a class="code" href="classgcu_1_1Window.html#a103f1504b2c6d457f5be303a02012c57">Window</a> (<a class="code" href="classgcp_1_1Application.html" title="GChemPaint application base class.">gcp::Application</a> *app, <span class="keywordtype">char</span> <span class="keyword">const</span> *theme = NULL, <span class="keywordtype">char</span> <span class="keyword">const</span> *extra_ui = NULL) <span class="keywordflow">throw</span> (std::runtime_error);
<a name="l00064"></a>00064         <span class="keyword">virtual</span> <a class="code" href="classgcp_1_1Window.html#a52f3eca50f14b6c624b2511e137d3ebd">~Window</a> ();
<a name="l00065"></a>00065 
<a name="l00069"></a>00069         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Window.html#ac4b6971c8bb7317cf930b37058ddee31">OnFileNew</a> ();
<a name="l00073"></a>00073         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Window.html#ab0303f5de92da78c4174bf1415bfa837">OnFileOpen</a> ();
<a name="l00077"></a>00077         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Window.html#afd7192216f95a4b1c55de79c6009e91f">OnProperties</a> ();
<a name="l00081"></a>00081         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Window.html#a3cb54da9f3821b18c53586d2e813afa4">SetActive</a> (<a class="code" href="classgcp_1_1Document.html">gcp::Document</a>* pDoc, GtkWidget* w);
<a name="l00085"></a>00085         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Window.html#a0b2a2ec2e0757e30e6a4e777de7ffb4b">OnUndo</a> ();
<a name="l00089"></a>00089         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Window.html#a6b71fbd4201753f1193c5544f03405e0">OnRedo</a> ();
<a name="l00093"></a>00093         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Window.html#aba6136eb1c7e000b629c203968cdb37b">OnSelectAll</a> ();
<a name="l00097"></a>00097         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Window.html#a952365160d72dab12189ff7a8b6c85ac">OnPasteSelection</a> ();
<a name="l00101"></a>00101         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Window.html#a969f9157fbefbe65bebdaed706bf6823">OnCutSelection</a> ();
<a name="l00105"></a>00105         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Window.html#a36be549aa33ac0c23bd07c6583156167">OnCopySelection</a> ();
<a name="l00109"></a>00109         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Window.html#a862f5121a0b83b648d4949d776d2d05e">OnDeleteSelection</a> ();
<a name="l00113"></a>00113         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Window.html#aafffb7d59ed17fa054487f3c01965834">OnPreferences</a> ();
<a name="l00119"></a>00119         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Window.html#a2ed383c49120261e0bb63ccec51dd98c">Zoom</a> (<span class="keywordtype">double</span> zoom);
<a name="l00123"></a>00123         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Window.html#a21f3add46195df098fc0ada2e530c842">ClearStatus</a> ();
<a name="l00129"></a>00129         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Window.html#a13ca4248394758f683c49fd9fb900f6e">SetStatusText</a> (<span class="keyword">const</span> <span class="keywordtype">char</span>* text);
<a name="l00133"></a>00133         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Window.html#a75fbc6502012e4592d403f5a7d8bc9c0">Show</a> ();
<a name="l00137"></a>00137         <span class="keywordtype">bool</span> <a class="code" href="classgcp_1_1Window.html#a4c387b534d265ada916e931588710403">OnKeyPressed</a> (GtkWidget* widget, GdkEventKey* ev);
<a name="l00142"></a>00142         <span class="keywordtype">bool</span> <a class="code" href="classgcp_1_1Window.html#a1c1f676f919ae47e76144f4189fd12e4">OnKeyReleased</a> (GtkWidget* widget, GdkEventKey* ev);
<a name="l00146"></a>00146         <span class="keywordtype">bool</span> <a class="code" href="classgcp_1_1Window.html#ad6f0e3476234dde80dad56d4acfb0948">Close</a> ();
<a name="l00147"></a>00147 
<a name="l00151"></a>00151         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Window.html#ab458e59be24625d20d11bfefcf17dae7">OnSave</a> ();
<a name="l00155"></a>00155         <span class="keyword">virtual</span> <span class="keywordtype">char</span> <span class="keyword">const</span> *<a class="code" href="classgcp_1_1Window.html#ae043987a0b5b13e33e14e70e630bb208">GetDefaultTitle</a> ();
<a name="l00156"></a>00156 
<a name="l00160"></a>00160         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Window.html#a06d6d9215244d18cec6db8207fed3d31">Destroy</a> ();
<a name="l00166"></a>00166         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Window.html#a0f7352d2427e5036da2dbfa496b79aec">SetTitle</a> (<span class="keywordtype">char</span> <span class="keyword">const</span> *title);
<a name="l00179"></a>00179         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Window.html#aa36f774e38bff3a46f86c4dadec54ad5">ActivateActionWidget</a> (<span class="keywordtype">char</span> <span class="keyword">const</span> *path, <span class="keywordtype">bool</span> activate); 
<a name="l00187"></a>00187         <span class="keywordtype">bool</span> <a class="code" href="classgcp_1_1Window.html#ab5f81362016b1dd11124e4850ae867dc">VerifySaved</a> ();
<a name="l00191"></a>00191         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Window.html#a961222fb28000f88251c031af6f5c5e2">OnPageSetup</a> ();
<a name="l00192"></a>00192 
<a name="l00193"></a>00193 <span class="keyword">protected</span>:
<a name="l00197"></a><a class="code" href="classgcp_1_1Window.html#a73c0c00134cd9edfaeb80ebffe42c335">00197</a>         GtkUIManager* <a class="code" href="classgcp_1_1Window.html#a73c0c00134cd9edfaeb80ebffe42c335">m_UIManager</a>;
<a name="l00198"></a>00198 
<a name="l00199"></a>00199 <span class="keyword">private</span>:
<a name="l00200"></a>00200         GtkWidget* m_Bar;       <span class="comment">//GtkStatusBar</span>
<a name="l00201"></a>00201         <span class="keywordtype">unsigned</span> m_statusId;
<a name="l00202"></a>00202         <span class="keywordtype">unsigned</span> m_MessageId; <span class="comment">//currently displayed message in the status bar</span>
<a name="l00203"></a>00203 };
<a name="l00204"></a>00204 
<a name="l00205"></a>00205 }       <span class="comment">// namespace gcp</span>
<a name="l00206"></a>00206 
<a name="l00207"></a>00207 <span class="preprocessor">#endif  //      GCP_WINDOW_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>