banner.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _HILDON_LIBSMM_BANNER_H
00004 #define _HILDON_LIBSMM_BANNER_H
00005 
00006 
00007 #include <glibmm.h>
00008 
00009 /* $Id: banner.hg,v 1.10 2006/22/9 10:52:44 murrayc Exp $ */
00010 
00011 /* banner.h
00012  *
00013  * Copyright (C) 1998-2005 The gtkmm Development Team
00014  *
00015  * This library is free software; you can redistribute it and/or
00016  * modify it under the terms of the GNU Library General Public
00017  * License as published by the Free Software Foundation; either
00018  * version 2 of the License, or (at your option) any later version.
00019  *
00020  * This library is distributed in the hope that it will be useful,
00021  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00022  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00023  * Library General Public License for more details.
00024  *
00025  * You should have received a copy of the GNU Library General Public
00026  * License along with this library; if not, write to the Free
00027  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00028  */
00029 
00030 #include <gtkmm/window.h>
00031 #include <gtkmm/progressbar.h>
00032 #include <gtkmm/label.h>
00033 
00034 
00035 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00036 typedef struct _HildonBanner HildonBanner;
00037 typedef struct _HildonBannerClass HildonBannerClass;
00038 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00039 
00040 
00041 namespace Hildon
00042 { class Banner_Class; } // namespace Hildon
00043 namespace Hildon
00044 {
00045 
00051 class Banner : public Gtk::Window
00052 {
00053         public:
00054 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00055   typedef Banner CppObjectType;
00056   typedef Banner_Class CppClassType;
00057   typedef HildonBanner BaseObjectType;
00058   typedef HildonBannerClass BaseClassType;
00059 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00060 
00061   virtual ~Banner();
00062 
00063 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00064 
00065 private:
00066   friend class Banner_Class;
00067   static CppClassType banner_class_;
00068 
00069   // noncopyable
00070   Banner(const Banner&);
00071   Banner& operator=(const Banner&);
00072 
00073 protected:
00074   explicit Banner(const Glib::ConstructParams& construct_params);
00075   explicit Banner(HildonBanner* castitem);
00076 
00077 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
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   HildonBanner*       gobj()       { return reinterpret_cast<HildonBanner*>(gobject_); }
00087 
00089   const HildonBanner* gobj() const { return reinterpret_cast<HildonBanner*>(gobject_); }
00090 
00091 
00092 public:
00093   //C++ methods used to invoke GTK+ virtual functions:
00094 #ifdef GLIBMM_VFUNCS_ENABLED
00095 #endif //GLIBMM_VFUNCS_ENABLED
00096 
00097 protected:
00098   //GTK+ Virtual Functions (override these to change behaviour):
00099 #ifdef GLIBMM_VFUNCS_ENABLED
00100 #endif //GLIBMM_VFUNCS_ENABLED
00101 
00102   //Default Signal Handlers::
00103 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00104 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00105 
00106 
00107 private:
00108 
00109         protected:
00110                 Banner();
00111         
00112         public:
00113                 
00126                 static void show_information(Gtk::Widget& widget, const Glib::ustring& icon_name, const Glib::ustring& text);
00127                 // TODO: Add docs
00128                 static void show_information(Gtk::Widget& widget, const Glib::ustring& text);
00129                 
00142                 static void show_information_with_markup(Gtk::Widget& widget, const Glib::ustring& icon_name, const Glib::ustring& markup);
00143                 // TODO: Add docs
00144                 static void show_information_with_markup(Gtk::Widget& widget, const Glib::ustring& markup);     
00145                 
00146                 
00172                 static Banner* show_animation(Gtk::Widget& widget, const Glib::ustring& animation_name, const Glib::ustring& text);
00173                 // TODO: Add docs
00174                 static Banner* show_animation(Gtk::Widget& widget, const Glib::ustring& animation_name);
00175                 
00188                 static Banner* show_progress(Gtk::Widget& widget, Gtk::ProgressBar& bar, const Glib::ustring& text);
00189                 // TODO: Add docs
00190                 static Banner* show_progress(Gtk::Widget& widget, const Glib::ustring& text);
00191         
00192                 
00198   void set_text(const Glib::ustring& text);
00199                 
00205   void set_markup(const Glib::ustring& markup);
00206                 //_WRAP_METHOD(void set_fraction(double fraction), hildon_banner_set_fraction)
00207                 void set_fraction(double fraction);
00208 
00209 
00210 };
00211 
00212 } // namespace Hildon
00213 
00214 
00215 namespace Glib
00216 {
00222   Hildon::Banner* wrap(HildonBanner* object, bool take_copy = false);
00223 } //namespace Glib
00224 
00225 
00226 #endif /* _HILDON_LIBSMM_BANNER_H */
00227 

Generated on Wed Nov 8 17:20:40 2006 for hildon-libsmm by  doxygen 1.4.6