00001
00002
00003 #ifndef _HILDON_LIBSMM_NOTE_H
00004 #define _HILDON_LIBSMM_NOTE_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/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
00038
00039
00040 namespace Hildon
00041 { class Note_Class; }
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 }
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 }
00074 #endif
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
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
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
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
00129 #ifdef GLIBMM_VFUNCS_ENABLED
00130 #endif //GLIBMM_VFUNCS_ENABLED
00131
00132 protected:
00133
00134 #ifdef GLIBMM_VFUNCS_ENABLED
00135 #endif //GLIBMM_VFUNCS_ENABLED
00136
00137
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
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 }
00257
00258
00259 namespace Glib
00260 {
00266 Hildon::Note* wrap(HildonNote* object, bool take_copy = false);
00267 }
00268
00269
00270 #endif
00271