The Gnome Chemistry Utils  0.13.7
gcr/window.h
Go to the documentation of this file.
00001 /*
00002  * GCrystal library
00003  * window.h
00004  *
00005  * Copyright (C) 2010-2012 Jean Bréfort <jean.brefort@normalesup.org>
00006  *
00007  * This program is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU General Public License as
00009  * published by the Free Software Foundation; either version 3 of the
00010  * License, or (at your option) any later version.
00011  *
00012  * This program is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
00020  * USA
00021  */
00022 
00023 #ifndef GCR_WINDOW_H
00024 #define GCR_WINDOW_H
00025 
00026 #include <gcu/macros.h>
00027 #include <gcugtk/window.h>
00028 
00030 namespace gcu {
00031 class Application;
00032 }
00033 
00034 namespace gcr {
00035 
00036 class Application;
00037 class Document;
00038 class View;
00039 
00045 class Window: public gcugtk::Window
00046 {
00047 friend class WindowPrivate;
00048 public:
00074         Window (gcu::Application *app, Document *doc, char const *extra_ui = NULL);
00078         virtual ~Window ();
00079 
00083         virtual void Destroy ();
00084 
00088         void ClearStatus ();
00089 
00095         void SetStatusText (const char* text);
00096 
00097 protected:
00101         virtual void OnSave ();
00102 
00103 private:
00104         GtkWidget* m_Bar;       //GtkStatusBar
00105         unsigned m_statusId;
00106         unsigned m_MessageId; //currently displayed message in the status bar
00107 
00114 GCU_PROT_PROP (Document*, Document)
00121 GCU_PROT_PROP (gcr::Application*, Application)
00125 GCU_RO_PROP (View *, View)
00126 };
00127 
00128 }
00129 
00130 #endif  //      GCR_WINDOW_H