icon-textitem.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _LIBGNOMEUIMM_ICON_TEXTITEM_H
00004 #define _LIBGNOMEUIMM_ICON_TEXTITEM_H
00005 
00006 
00007 #include <glibmm.h>
00008 
00009 /* $Id: icon-textitem.hg,v 1.5 2002/09/16 12:18:30 murrayc Exp $ */
00010 
00011 
00012 /* icon-textitem.hg
00013  * 
00014  * Copyright (C) 1999-2002 The libgnomeuimm Development Team
00015  *
00016  * This library is free software; you can redistribute it and/or
00017  * modify it under the terms of the GNU Library General Public
00018  * License as published by the Free Software Foundation; either
00019  * version 2 of the License, or (at your option) any later version.
00020  *
00021  * This library is distributed in the hope that it will be useful,
00022  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00023  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00024  * Library General Public License for more details.
00025  *
00026  * You should have received a copy of the GNU Library General Public
00027  * License along with this library; if not, write to the Free
00028  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00029  */
00030 
00031 #include <libgnomecanvasmm/item.h>
00032 #include <libgnomeuimm/file-entry.h>
00033 #include <libgnomeuimm/entry.h>
00034 #include <gtkmm/entry.h>
00035 
00036 
00037 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00038 typedef struct _GnomeIconTextItem GnomeIconTextItem;
00039 typedef struct _GnomeIconTextItemClass GnomeIconTextItemClass;
00040 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00041 
00042 
00043 namespace Gnome
00044 {
00045 
00046 namespace UI
00047 { class IconTextItem_Class; } // namespace UI
00048 
00049 } // namespace Gnome
00050 namespace Gnome
00051 {
00052 
00053 namespace UI
00054 {
00055 
00056 
00057 class IconTextItem : public Gnome::Canvas::Item
00058 {
00059   public:
00060 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00061   typedef IconTextItem CppObjectType;
00062   typedef IconTextItem_Class CppClassType;
00063   typedef GnomeIconTextItem BaseObjectType;
00064   typedef GnomeIconTextItemClass BaseClassType;
00065 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00066 
00067   virtual ~IconTextItem();
00068 
00069 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00070 
00071 private:
00072   friend class IconTextItem_Class;
00073   static CppClassType icontextitem_class_;
00074 
00075   // noncopyable
00076   IconTextItem(const IconTextItem&);
00077   IconTextItem& operator=(const IconTextItem&);
00078 
00079 protected:
00080   explicit IconTextItem(const Glib::ConstructParams& construct_params);
00081   explicit IconTextItem(GnomeIconTextItem* castitem);
00082 
00083 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00084 
00085 public:
00086 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00087   static GType get_type()      G_GNUC_CONST;
00088   static GType get_base_type() G_GNUC_CONST;
00089 #endif
00090 
00092   GnomeIconTextItem*       gobj()       { return reinterpret_cast<GnomeIconTextItem*>(gobject_); }
00093 
00095   const GnomeIconTextItem* gobj() const { return reinterpret_cast<GnomeIconTextItem*>(gobject_); }
00096 
00097 
00098 public:
00099   //C++ methods used to invoke GTK+ virtual functions:
00100 #ifdef GLIBMM_VFUNCS_ENABLED
00101 #endif //GLIBMM_VFUNCS_ENABLED
00102 
00103 protected:
00104   //GTK+ Virtual Functions (override these to change behaviour):
00105 #ifdef GLIBMM_VFUNCS_ENABLED
00106 #endif //GLIBMM_VFUNCS_ENABLED
00107 
00108   //Default Signal Handlers::
00109 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00110   virtual bool on_text_changed();
00111   virtual void on_height_changed();
00112   virtual void on_width_changed();
00113   virtual void on_editing_started();
00114   virtual void on_editing_stopped();
00115   virtual void on_selection_started();
00116   virtual void on_selection_stopped();
00117 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00118 
00119 
00120 private:
00121 
00122   
00123 public:
00124   IconTextItem(Gnome::Canvas::Group& parent);
00125   IconTextItem(Gnome::Canvas::Group& parent, int x, int y, int width,
00126                                                    const Glib::ustring& fontname, const Glib::ustring& text,
00127                                                    bool is_editable = true);
00128 
00129   
00130   void set_xy(int x, int y);
00131   
00132   void select(bool select = true);
00133   
00134   void focus(bool focused = true);
00135   
00136   Glib::ustring get_text() const;
00137   
00138   void start_editing();
00139   
00140   void stop_editing(bool accept = true);
00141   
00142   Glib::RefPtr<Gtk::Editable> get_editable();
00143   
00144   Glib::RefPtr<const Gtk::Editable> get_editable() const;
00145 
00146         
00152   Glib::SignalProxy0< bool > signal_text_changed();
00153 
00154         
00160   Glib::SignalProxy0< void > signal_height_changed();
00161 
00162         
00168   Glib::SignalProxy0< void > signal_width_changed();
00169 
00170         
00176   Glib::SignalProxy0< void > signal_editing_started();
00177 
00178         
00184   Glib::SignalProxy0< void > signal_editing_stopped();
00185 
00186         
00192   Glib::SignalProxy0< void > signal_selection_started();
00193 
00194         
00200   Glib::SignalProxy0< void > signal_selection_stopped();
00201 
00202 
00203 };
00204 
00205 } /* namespace UI */
00206 } /* namespace Gnome */
00207 
00208 
00209 namespace Glib
00210 {
00219   Gnome::UI::IconTextItem* wrap(GnomeIconTextItem* object, bool take_copy = false);
00220 } //namespace Glib
00221 
00222 
00223 #endif /* _LIBGNOMEUIMM_ICON_TEXTITEM_H */
00224 

Generated on Tue Apr 15 12:12:12 2008 for libgnomeuimm by  doxygen 1.5.1