Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

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 #include <glibmm.h>
00007 
00008 /* $Id: icon-textitem.hg,v 1.5 2002/09/16 12:18:30 murrayc Exp $ */
00009 
00010 
00011 /* icon-textitem.hg
00012  * 
00013  * Copyright (C) 1999-2002 The libgnomeuimm 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 <libgnomecanvasmm/item.h>
00031 #include <libgnomeuimm/file-entry.h>
00032 #include <libgnomeuimm/entry.h>
00033 #include <gtkmm/entry.h>
00034 
00035 
00036 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00037 typedef struct _GnomeIconTextItem GnomeIconTextItem;
00038 typedef struct _GnomeIconTextItemClass GnomeIconTextItemClass;
00039 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00040 
00041 
00042 namespace Gnome
00043 {
00044 
00045 namespace UI
00046 { class IconTextItem_Class; } // namespace UI
00047 
00048 } // namespace Gnome
00049 namespace Gnome
00050 {
00051 
00052 namespace UI
00053 {
00054 
00055 
00056 class IconTextItem : public Gnome::Canvas::Item
00057 {
00058   public:
00059 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00060   typedef IconTextItem CppObjectType;
00061   typedef IconTextItem_Class CppClassType;
00062   typedef GnomeIconTextItem BaseObjectType;
00063   typedef GnomeIconTextItemClass BaseClassType;
00064 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00065 
00066   virtual ~IconTextItem();
00067 
00068 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00069 
00070 private:
00071   friend class IconTextItem_Class;
00072   static CppClassType icontextitem_class_;
00073 
00074   // noncopyable
00075   IconTextItem(const IconTextItem&);
00076   IconTextItem& operator=(const IconTextItem&);
00077 
00078 protected:
00079   explicit IconTextItem(const Glib::ConstructParams& construct_params);
00080   explicit IconTextItem(GnomeIconTextItem* castitem);
00081 
00082 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00083 
00084 public:
00085 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00086   static GType get_type()      G_GNUC_CONST;
00087   static GType get_base_type() G_GNUC_CONST;
00088 #endif
00089 
00091   GnomeIconTextItem*       gobj()       { return reinterpret_cast<GnomeIconTextItem*>(gobject_); }
00092 
00094   const GnomeIconTextItem* gobj() const { return reinterpret_cast<GnomeIconTextItem*>(gobject_); }
00095 
00096 
00097 public:
00098   //C++ methods used to invoke GTK+ virtual functions:
00099 
00100 protected:
00101   //GTK+ Virtual Functions (override these to change behaviour):
00102 
00103   //Default Signal Handlers::
00104   virtual bool on_text_changed();
00105   virtual void on_height_changed();
00106   virtual void on_width_changed();
00107   virtual void on_editing_started();
00108   virtual void on_editing_stopped();
00109   virtual void on_selection_started();
00110   virtual void on_selection_stopped();
00111 
00112 
00113 private:
00114 
00115   
00116 public:
00117   IconTextItem(Gnome::Canvas::Group& parent);
00118   IconTextItem(Gnome::Canvas::Group& parent, int x, int y, int width,
00119                                                    const Glib::ustring& fontname, const Glib::ustring& text,
00120                                                    bool is_editable = true);
00121 
00122   
00123   void set_xy(int x, int y);
00124   
00125   void select(bool select = true);
00126   
00127   void focus(bool focused = true);
00128   
00129   Glib::ustring get_text() const;
00130   
00131   void start_editing();
00132   
00133   void stop_editing(bool accept = true);
00134   
00135   Glib::RefPtr<Gtk::Editable> get_editable();
00136   
00137   Glib::RefPtr<const Gtk::Editable> get_editable() const;
00138 
00139         
00144   Glib::SignalProxy0<bool> signal_text_changed();
00145 
00146         
00151   Glib::SignalProxy0<void> signal_height_changed();
00152 
00153         
00158   Glib::SignalProxy0<void> signal_width_changed();
00159 
00160         
00165   Glib::SignalProxy0<void> signal_editing_started();
00166 
00167         
00172   Glib::SignalProxy0<void> signal_editing_stopped();
00173 
00174         
00179   Glib::SignalProxy0<void> signal_selection_started();
00180 
00181         
00186   Glib::SignalProxy0<void> signal_selection_stopped();
00187 
00188 
00189 };
00190 
00191 } /* namespace UI */
00192 } /* namespace Gnome */
00193 
00194 
00195 namespace Glib
00196 {
00198   Gnome::UI::IconTextItem* wrap(GnomeIconTextItem* object, bool take_copy = false);
00199 }
00200 #endif /* _LIBGNOMEUIMM_ICON_TEXTITEM_H */
00201 

Generated on Sun Sep 11 19:04:58 2005 for libgnomeuimm by  doxygen 1.4.4