The Gnome Chemistry Utils 0.13.5
gcr/window.h
00001 /*
00002  * GCrystal library
00003  * window.h
00004  *
00005  * Copyright (C) 2010 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 2 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 
00029 namespace gcu {
00030 class Application;
00031 }
00032 
00033 namespace gcr {
00034 
00035 class Application;
00036 class Document;
00037 class View;
00038 
00039 class Window: public gcugtk::Window
00040 {
00041 friend class WindowPrivate;
00042 public:
00043         Window (gcu::Application *app, Document *doc, char const *extra_ui = NULL);
00044         virtual ~Window ();
00045 
00046         virtual void Destroy ();
00047         void ClearStatus ();
00048         void SetStatusText (const char* text);
00049 
00050 protected:
00051         virtual void OnSave ();
00052 
00053 private:
00054         GtkWidget* m_Bar;       //GtkStatusBar
00055         unsigned m_statusId;
00056         unsigned m_MessageId; //currently displayed message in the status bar
00057 
00064 GCU_PROT_PROP (Document*, Document)
00071 GCU_PROT_PROP (gcr::Application*, Application)
00072 GCU_RO_PROP (View *, View)
00073 };
00074 
00075 }
00076 
00077 #endif  //      GCR_WINDOW_H