date-editor.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _HILDON_LIBSMM_DATE_EDITOR_H
00004 #define _HILDON_LIBSMM_DATE_EDITOR_H
00005 
00006 
00007 #include <glibmm.h>
00008 
00009 /* $Id: date-editor.hg,v 1.10 2005/02/15 10:52:44 murrayc Exp $ */
00010 
00011 /* date-editor.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/container.h>
00031 
00032 
00033 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00034 typedef struct _HildonDateEditor HildonDateEditor;
00035 typedef struct _HildonDateEditorClass HildonDateEditorClass;
00036 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00037 
00038 
00039 namespace Hildon
00040 { class DateEditor_Class; } // namespace Hildon
00041 namespace Hildon
00042 {
00043 
00049 enum DateEditorErrorType
00050 {
00051   MAX_DAY,
00052   MAX_MONTH,
00053   MAX_YEAR,
00054   MIN_DAY,
00055   MIN_MONTH,
00056   MIN_YEAR,
00057   EMPTY_DAY,
00058   EMPTY_MONTH,
00059   YEAR,
00060   DATE
00061 };
00062 
00063 
00069 class DateEditor : public Gtk::Container
00070 {
00071   public:
00072 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00073   typedef DateEditor CppObjectType;
00074   typedef DateEditor_Class CppClassType;
00075   typedef HildonDateEditor BaseObjectType;
00076   typedef HildonDateEditorClass BaseClassType;
00077 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00078 
00079   virtual ~DateEditor();
00080 
00081 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00082 
00083 private:
00084   friend class DateEditor_Class;
00085   static CppClassType dateeditor_class_;
00086 
00087   // noncopyable
00088   DateEditor(const DateEditor&);
00089   DateEditor& operator=(const DateEditor&);
00090 
00091 protected:
00092   explicit DateEditor(const Glib::ConstructParams& construct_params);
00093   explicit DateEditor(HildonDateEditor* castitem);
00094 
00095 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00096 
00097 public:
00098 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00099   static GType get_type()      G_GNUC_CONST;
00100   static GType get_base_type() G_GNUC_CONST;
00101 #endif
00102 
00104   HildonDateEditor*       gobj()       { return reinterpret_cast<HildonDateEditor*>(gobject_); }
00105 
00107   const HildonDateEditor* gobj() const { return reinterpret_cast<HildonDateEditor*>(gobject_); }
00108 
00109 
00110 public:
00111   //C++ methods used to invoke GTK+ virtual functions:
00112 #ifdef GLIBMM_VFUNCS_ENABLED
00113 #endif //GLIBMM_VFUNCS_ENABLED
00114 
00115 protected:
00116   //GTK+ Virtual Functions (override these to change behaviour):
00117 #ifdef GLIBMM_VFUNCS_ENABLED
00118 #endif //GLIBMM_VFUNCS_ENABLED
00119 
00120   //Default Signal Handlers::
00121 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00122 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00123 
00124 
00125 private:
00126 
00127 public:
00128   DateEditor();
00129   
00130 
00136   void set_date(guint year, guint month, guint day);
00137 
00138   
00146   void get_date(guint& year, guint& month, guint& day);
00147 
00148   
00153   bool set_year(guint year);
00154   
00159   bool set_month(guint month);
00160   
00165   bool set_day(guint day);
00166 
00167   
00171   guint get_year() const;
00172   
00176   guint get_month() const;
00177   
00181   guint get_day() const;
00182 
00183   //TODO: This should probably be wrapped as an exception:
00184   //TODO: Fix registration: _WRAP_SIGNAL(bool date_error(DateEditorErrorType type), "date_error")
00185 
00186   #ifdef GLIBMM_PROPERTIES_ENABLED
00187 
00193   Glib::PropertyProxy<guint> property_year() ;
00194 #endif //#GLIBMM_PROPERTIES_ENABLED
00195 
00196 #ifdef GLIBMM_PROPERTIES_ENABLED
00197 
00203   Glib::PropertyProxy_ReadOnly<guint> property_year() const;
00204 #endif //#GLIBMM_PROPERTIES_ENABLED
00205 
00206   #ifdef GLIBMM_PROPERTIES_ENABLED
00207 
00213   Glib::PropertyProxy<guint> property_month() ;
00214 #endif //#GLIBMM_PROPERTIES_ENABLED
00215 
00216 #ifdef GLIBMM_PROPERTIES_ENABLED
00217 
00223   Glib::PropertyProxy_ReadOnly<guint> property_month() const;
00224 #endif //#GLIBMM_PROPERTIES_ENABLED
00225 
00226   #ifdef GLIBMM_PROPERTIES_ENABLED
00227 
00233   Glib::PropertyProxy<guint> property_day() ;
00234 #endif //#GLIBMM_PROPERTIES_ENABLED
00235 
00236 #ifdef GLIBMM_PROPERTIES_ENABLED
00237 
00243   Glib::PropertyProxy_ReadOnly<guint> property_day() const;
00244 #endif //#GLIBMM_PROPERTIES_ENABLED
00245 
00246 
00247 };
00248 
00249 } // namespace Hildon
00250 
00251 
00252 namespace Glib
00253 {
00259   Hildon::DateEditor* wrap(HildonDateEditor* object, bool take_copy = false);
00260 } //namespace Glib
00261 
00262 
00263 #endif /* _HILDON_LIBSMM_DATE_EDITOR_H */
00264 

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