00001
00002
00003 #ifndef _HILDON_LIBSMM_WINDOW_H
00004 #define _HILDON_LIBSMM_WINDOW_H
00005
00006
00007 #include <glibmm.h>
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #include <gtkmm/window.h>
00031 #include <gtkmm/menu.h>
00032 #include <gtkmm/toolbar.h>
00033
00034
00035 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00036 typedef struct _HildonWindow HildonWindow;
00037 typedef struct _HildonWindowClass HildonWindowClass;
00038 #endif
00039
00040
00041 namespace Hildon
00042 { class Window_Class; }
00043 namespace Hildon
00044 {
00045
00051 class Window : public Gtk::Window
00052 {
00053 public:
00054 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00055 typedef Window CppObjectType;
00056 typedef Window_Class CppClassType;
00057 typedef HildonWindow BaseObjectType;
00058 typedef HildonWindowClass BaseClassType;
00059 #endif
00060
00061 virtual ~Window();
00062
00063 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00064
00065 private:
00066 friend class Window_Class;
00067 static CppClassType window_class_;
00068
00069
00070 Window(const Window&);
00071 Window& operator=(const Window&);
00072
00073 protected:
00074 explicit Window(const Glib::ConstructParams& construct_params);
00075 explicit Window(HildonWindow* castitem);
00076
00077 #endif
00078
00079 public:
00080 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00081 static GType get_type() G_GNUC_CONST;
00082 static GType get_base_type() G_GNUC_CONST;
00083 #endif
00084
00086 HildonWindow* gobj() { return reinterpret_cast<HildonWindow*>(gobject_); }
00087
00089 const HildonWindow* gobj() const { return reinterpret_cast<HildonWindow*>(gobject_); }
00090
00091
00092 public:
00093
00094 #ifdef GLIBMM_VFUNCS_ENABLED
00095 #endif //GLIBMM_VFUNCS_ENABLED
00096
00097 protected:
00098
00099 #ifdef GLIBMM_VFUNCS_ENABLED
00100 #endif //GLIBMM_VFUNCS_ENABLED
00101
00102
00103 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00104 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00105
00106
00107 private:
00108
00109 public:
00110 Window();
00111
00112
00118 void add_with_scrollbar(Gtk::Widget& child);
00119
00120
00124 Gtk::Menu& get_menu() const;
00125
00131 void set_menu(Gtk::Menu& menu);
00132
00133
00137 void add_toolbar(Gtk::Toolbar& toolbar);
00138
00142 void remove_toolbar(Gtk::Toolbar& toolbar);
00143
00144
00149 bool get_is_topmost() const;
00150
00151
00152
00153
00154 };
00155
00156 }
00157
00158
00159 namespace Glib
00160 {
00166 Hildon::Window* wrap(HildonWindow* object, bool take_copy = false);
00167 }
00168
00169
00170 #endif
00171