The Gnome Chemistry Utils  0.14.0
gcr/window.h
Go to the documentation of this file.
1 /*
2  * GCrystal library
3  * window.h
4  *
5  * Copyright (C) 2010-2012 Jean Bréfort <jean.brefort@normalesup.org>
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License as
9  * published by the Free Software Foundation; either version 3 of the
10  * License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
20  * USA
21  */
22 
23 #ifndef GCR_WINDOW_H
24 #define GCR_WINDOW_H
25 
26 #include <gcu/macros.h>
27 #include <gcugtk/window.h>
28 
30 namespace gcu {
31 class Application;
32 }
33 
34 namespace gcr {
35 
36 class Application;
37 class Document;
38 class View;
39 
45 class Window: public gcugtk::Window
46 {
47 friend class WindowPrivate;
48 public:
74  Window (gcu::Application *app, Document *doc, char const *extra_ui = NULL);
78  virtual ~Window ();
79 
83  virtual void Destroy ();
84 
88  void ClearStatus ();
89 
95  void SetStatusText (const char* text);
96 
97 protected:
101  virtual void OnSave ();
102 
103 private:
104  GtkWidget* m_Bar; //GtkStatusBar
105  unsigned m_statusId;
106  unsigned m_MessageId; //currently displayed message in the status bar
107 
121 GCU_PROT_PROP (gcr::Application*, Application)
125 GCU_RO_PROP (View *, View)
126 };
127 
128 }
129 
130 #endif // GCR_WINDOW_H