note.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _HILDON_LIBSMM_NOTE_H
00004 #define _HILDON_LIBSMM_NOTE_H
00005 
00006 
00007 #include <glibmm.h>
00008 
00009 /* $Id: note.hg,v 1.10 2005/02/15 10:52:44 murrayc Exp $ */
00010 
00011 /* note.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/dialog.h>
00031 #include <gtkmm/progressbar.h>
00032 
00033 
00034 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00035 typedef struct _HildonNote HildonNote;
00036 typedef struct _HildonNoteClass HildonNoteClass;
00037 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00038 
00039 
00040 namespace Hildon
00041 { class Note_Class; } // namespace Hildon
00042 namespace Hildon
00043 {
00044 
00050 enum NoteType
00051 {
00052   NOTE_CONFIRMATION_TYPE,
00053   NOTE_CONFIRMATION_BUTTON_TYPE,
00054   NOTE_INFORMATION_TYPE,
00055   NOTE_INFORMATION_THEME_TYPE,
00056   NOTE_PROGRESSBAR_TYPE
00057 };
00058 
00059 } // namespace Hildon
00060 
00061 
00062 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00063 namespace Glib
00064 {
00065 
00066 template <>
00067 class Value<Hildon::NoteType> : public Glib::Value_Enum<Hildon::NoteType>
00068 {
00069 public:
00070   static GType value_type() G_GNUC_CONST;
00071 };
00072 
00073 } // namespace Glib
00074 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00075 
00076 
00077 namespace Hildon
00078 {
00079 
00080 
00086 class Note : public Gtk::Dialog
00087 {
00088   public:
00089 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00090   typedef Note CppObjectType;
00091   typedef Note_Class CppClassType;
00092   typedef HildonNote BaseObjectType;
00093   typedef HildonNoteClass BaseClassType;
00094 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00095 
00096   virtual ~Note();
00097 
00098 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00099 
00100 private:
00101   friend class Note_Class;
00102   static CppClassType note_class_;
00103 
00104   // noncopyable
00105   Note(const Note&);
00106   Note& operator=(const Note&);
00107 
00108 protected:
00109   explicit Note(const Glib::ConstructParams& construct_params);
00110   explicit Note(HildonNote* castitem);
00111 
00112 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00113 
00114 public:
00115 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00116   static GType get_type()      G_GNUC_CONST;
00117   static GType get_base_type() G_GNUC_CONST;
00118 #endif
00119 
00121   HildonNote*       gobj()       { return reinterpret_cast<HildonNote*>(gobject_); }
00122 
00124   const HildonNote* gobj() const { return reinterpret_cast<HildonNote*>(gobject_); }
00125 
00126 
00127 public:
00128   //C++ methods used to invoke GTK+ virtual functions:
00129 #ifdef GLIBMM_VFUNCS_ENABLED
00130 #endif //GLIBMM_VFUNCS_ENABLED
00131 
00132 protected:
00133   //GTK+ Virtual Functions (override these to change behaviour):
00134 #ifdef GLIBMM_VFUNCS_ENABLED
00135 #endif //GLIBMM_VFUNCS_ENABLED
00136 
00137   //Default Signal Handlers::
00138 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00139 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00140 
00141 
00142 private:
00143 
00144   
00145 public:
00146   Note();
00147 
00148   explicit Note(Gtk::Window& parent, const Glib::ustring& description);
00149 
00150   explicit Note(Gtk::Window& parent, const Glib::ustring& description, const Gtk::StockID& stock_id);
00151   explicit Note(const Glib::ustring& description, const Gtk::StockID& stock_id = Gtk::StockID());
00152 
00153   Note(NoteType note_type, Gtk::Window& parent, const Glib::ustring& description = Glib::ustring(), const Gtk::StockID& stock_id = Gtk::StockID());
00154   explicit Note(NoteType note_type, const Glib::ustring& description = Glib::ustring(), const Gtk::StockID& stock_id = Gtk::StockID());
00155 
00156   //Creates a "cancel" dialog:
00157   Note(const Glib::ustring& description, const Gtk::StockID& stock_id, const Gtk::ProgressBar& progress_bar);
00158   
00159 
00164   void set_button_text(const Glib::ustring& text);
00165 
00166   
00171   void set_button_text(const Glib::ustring& textOk, const Glib::ustring& textCancel);
00172 
00173   #ifdef GLIBMM_PROPERTIES_ENABLED
00174 
00180   Glib::PropertyProxy<NoteType> property_note_type() ;
00181 #endif //#GLIBMM_PROPERTIES_ENABLED
00182 
00183 #ifdef GLIBMM_PROPERTIES_ENABLED
00184 
00190   Glib::PropertyProxy_ReadOnly<NoteType> property_note_type() const;
00191 #endif //#GLIBMM_PROPERTIES_ENABLED
00192 
00193   #ifdef GLIBMM_PROPERTIES_ENABLED
00194 
00200   Glib::PropertyProxy<Glib::ustring> property_description() ;
00201 #endif //#GLIBMM_PROPERTIES_ENABLED
00202 
00203 #ifdef GLIBMM_PROPERTIES_ENABLED
00204 
00210   Glib::PropertyProxy_ReadOnly<Glib::ustring> property_description() const;
00211 #endif //#GLIBMM_PROPERTIES_ENABLED
00212 
00213   #ifdef GLIBMM_PROPERTIES_ENABLED
00214 
00220   Glib::PropertyProxy<Gtk::StockID> property_icon() ;
00221 #endif //#GLIBMM_PROPERTIES_ENABLED
00222 
00223 #ifdef GLIBMM_PROPERTIES_ENABLED
00224 
00230   Glib::PropertyProxy_ReadOnly<Gtk::StockID> property_icon() const;
00231 #endif //#GLIBMM_PROPERTIES_ENABLED
00232 
00233   #ifdef GLIBMM_PROPERTIES_ENABLED
00234 
00240   Glib::PropertyProxy<Gtk::ProgressBar*> property_progressbar() ;
00241 #endif //#GLIBMM_PROPERTIES_ENABLED
00242 
00243 #ifdef GLIBMM_PROPERTIES_ENABLED
00244 
00250   Glib::PropertyProxy_ReadOnly<Gtk::ProgressBar*> property_progressbar() const;
00251 #endif //#GLIBMM_PROPERTIES_ENABLED
00252 
00253 
00254 };
00255 
00256 } // namespace Hildon
00257 
00258 
00259 namespace Glib
00260 {
00266   Hildon::Note* wrap(HildonNote* object, bool take_copy = false);
00267 } //namespace Glib
00268 
00269 
00270 #endif /* _HILDON_LIBSMM_NOTE_H */
00271 

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