telephone-editor.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _HILDON_LIBSMM_TELEPHONE_EDITOR_H
00004 #define _HILDON_LIBSMM_TELEPHONE_EDITOR_H
00005 
00006 
00007 #include <glibmm.h>
00008 
00009 /* $Id: number-editor.hg,v 1.10 2005/02/15 10:52:44 murrayc Exp $ */
00010 
00011 /* number-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 _HildonTelephoneEditor HildonTelephoneEditor;
00035 typedef struct _HildonTelephoneEditorClass HildonTelephoneEditorClass;
00036 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00037 
00038 
00039 namespace Hildon
00040 { class TelephoneEditor_Class; } // namespace Hildon
00041 namespace Hildon
00042 {
00043 
00049 enum TelephoneEditorFormat
00050 {
00051   TELEPHONE_EDITOR_FORMAT_FREE,
00052   TELEPHONE_EDITOR_FORMAT_COERCE,
00053   TELEPHONE_EDITOR_FORMAT_COERCE_COUNTRY,
00054   TELEPHONE_EDITOR_FORMAT_COERCE_AREA
00055 };
00056 
00057 
00063 class TelephoneEditor : public Gtk::Container
00064 {
00065   public:
00066 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00067   typedef TelephoneEditor CppObjectType;
00068   typedef TelephoneEditor_Class CppClassType;
00069   typedef HildonTelephoneEditor BaseObjectType;
00070   typedef HildonTelephoneEditorClass BaseClassType;
00071 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00072 
00073   virtual ~TelephoneEditor();
00074 
00075 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00076 
00077 private:
00078   friend class TelephoneEditor_Class;
00079   static CppClassType telephoneeditor_class_;
00080 
00081   // noncopyable
00082   TelephoneEditor(const TelephoneEditor&);
00083   TelephoneEditor& operator=(const TelephoneEditor&);
00084 
00085 protected:
00086   explicit TelephoneEditor(const Glib::ConstructParams& construct_params);
00087   explicit TelephoneEditor(HildonTelephoneEditor* castitem);
00088 
00089 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00090 
00091 public:
00092 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00093   static GType get_type()      G_GNUC_CONST;
00094   static GType get_base_type() G_GNUC_CONST;
00095 #endif
00096 
00098   HildonTelephoneEditor*       gobj()       { return reinterpret_cast<HildonTelephoneEditor*>(gobject_); }
00099 
00101   const HildonTelephoneEditor* gobj() const { return reinterpret_cast<HildonTelephoneEditor*>(gobject_); }
00102 
00103 
00104 public:
00105   //C++ methods used to invoke GTK+ virtual functions:
00106 #ifdef GLIBMM_VFUNCS_ENABLED
00107 #endif //GLIBMM_VFUNCS_ENABLED
00108 
00109 protected:
00110   //GTK+ Virtual Functions (override these to change behaviour):
00111 #ifdef GLIBMM_VFUNCS_ENABLED
00112 #endif //GLIBMM_VFUNCS_ENABLED
00113 
00114   //Default Signal Handlers::
00115 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00116 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00117 
00118 
00119 private:
00120 
00121 public:
00122   explicit TelephoneEditor(TelephoneEditorFormat format);
00123   explicit TelephoneEditor(TelephoneEditorFormat format, const Glib::ustring& country, const Glib::ustring& area, const Glib::ustring& number);
00124 
00125   
00136   void set_editable(bool country = true, bool area = true, bool number = true);
00137   
00141   void set_show_plus(bool show = true);
00142   
00147   bool get_show_plus() const;
00148   
00152   void set_show_border(bool show = true);
00153   
00157   bool get_show_border() const;
00158   
00168   void set_widths(guint country, guint area, guint number);
00169   
00175   Glib::ustring get_country() const;
00176   
00181   void set_country(const Glib::ustring& country);
00182   
00189   Glib::ustring get_area() const;
00190   
00196   void set_area(const Glib::ustring& area);
00197   
00206   Glib::ustring get_number() const;
00207   
00215   void set_number(const Glib::ustring& number);
00216 
00217   //TODO: These set- prefixes are a bit strange:
00218   #ifdef GLIBMM_PROPERTIES_ENABLED
00219 
00225   Glib::PropertyProxy<Glib::ustring> property_country() ;
00226 #endif //#GLIBMM_PROPERTIES_ENABLED
00227 
00228 #ifdef GLIBMM_PROPERTIES_ENABLED
00229 
00235   Glib::PropertyProxy_ReadOnly<Glib::ustring> property_country() const;
00236 #endif //#GLIBMM_PROPERTIES_ENABLED
00237 
00238   #ifdef GLIBMM_PROPERTIES_ENABLED
00239 
00245   Glib::PropertyProxy<Glib::ustring> property_area() ;
00246 #endif //#GLIBMM_PROPERTIES_ENABLED
00247 
00248 #ifdef GLIBMM_PROPERTIES_ENABLED
00249 
00255   Glib::PropertyProxy_ReadOnly<Glib::ustring> property_area() const;
00256 #endif //#GLIBMM_PROPERTIES_ENABLED
00257 
00258   #ifdef GLIBMM_PROPERTIES_ENABLED
00259 
00265   Glib::PropertyProxy<Glib::ustring> property_number() ;
00266 #endif //#GLIBMM_PROPERTIES_ENABLED
00267 
00268 #ifdef GLIBMM_PROPERTIES_ENABLED
00269 
00275   Glib::PropertyProxy_ReadOnly<Glib::ustring> property_number() const;
00276 #endif //#GLIBMM_PROPERTIES_ENABLED
00277 
00278   #ifdef GLIBMM_PROPERTIES_ENABLED
00279 
00285   Glib::PropertyProxy<bool> property_show_border() ;
00286 #endif //#GLIBMM_PROPERTIES_ENABLED
00287 
00288 #ifdef GLIBMM_PROPERTIES_ENABLED
00289 
00295   Glib::PropertyProxy_ReadOnly<bool> property_show_border() const;
00296 #endif //#GLIBMM_PROPERTIES_ENABLED
00297 
00298   #ifdef GLIBMM_PROPERTIES_ENABLED
00299 
00305   Glib::PropertyProxy<bool> property_show_plus() ;
00306 #endif //#GLIBMM_PROPERTIES_ENABLED
00307 
00308 #ifdef GLIBMM_PROPERTIES_ENABLED
00309 
00315   Glib::PropertyProxy_ReadOnly<bool> property_show_plus() const;
00316 #endif //#GLIBMM_PROPERTIES_ENABLED
00317 
00318   #ifdef GLIBMM_PROPERTIES_ENABLED
00319 
00325   Glib::PropertyProxy_ReadOnly<TelephoneEditorFormat> property_set_format() const;
00326 #endif //#GLIBMM_PROPERTIES_ENABLED
00327 
00328 
00329 };
00330 
00331 } // namespace Hildon
00332 
00333 
00334 namespace Glib
00335 {
00341   Hildon::TelephoneEditor* wrap(HildonTelephoneEditor* object, bool take_copy = false);
00342 } //namespace Glib
00343 
00344 
00345 #endif /* _HILDON_LIBSMM_TELEPHONE_EDITOR_H */
00346 

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