Reference Manual
Inti Logo
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

celleditable.h

Go to the documentation of this file.
00001 /*  Inti: Integrated Foundation Classes
00002  *  Copyright (C) 2002 The Inti Development Team.
00003  *  Copyright (C) 2000 Red Hat, Inc.
00004  *
00005  *  This program is free software; you can redistribute it and/or modify
00006  *  it under the terms of the GNU General Public License as published by
00007  *  the Free Software Foundation; either version 2 of the License, or
00008  *  (at your option) any later version.
00009  *
00010  *  This program is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *  GNU Library General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU Library General Public License
00016  *  along with this program; if not, write to the Free Software
00017  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00018  */
00019  
00022 
00023 #ifndef INTI_GTK_CELL_EDITABLE_H
00024 #define INTI_GTK_CELL_EDITABLE_H
00025 
00026 #ifndef INTI_G_TYPE_H
00027 #include <inti/glib/type.h>
00028 #endif
00029 
00030 #ifndef __GTK_CELL_EDITABLE_H__
00031 #include <gtk/gtkcelleditable.h>
00032 #endif
00033 
00034 namespace Inti {
00035 
00036 namespace Gdk {
00037 class Event;
00038 }
00039 
00040 namespace Gtk {
00041 
00042 class CellEditableIface;
00043 
00052 
00053 class CellEditable : public virtual G::TypeInterface
00054 {
00055         friend class CellEditableIface;
00056 
00057 protected:
00060 
00061         virtual ~CellEditable() = 0;
00063         
00065 //  Override this do_ method when you want to change the default behaviour of the GtkCellEditable.
00066 
00067         virtual void do_start_editing(GdkEvent *event);
00068 
00071 
00072         virtual void on_editing_done();
00074 
00075         virtual void on_remove_widget();
00077 
00079 //  Signals
00080 
00081         typedef G::Signal0<void> EditingDoneSignalType;
00082         typedef G::SignalProxy<TypeInstance, EditingDoneSignalType> EditingDoneSignalProxy;
00083         static const EditingDoneSignalType editing_done_signal;
00084 
00085         typedef G::Signal0<void> RemoveWidgetSignalType;
00086         typedef G::SignalProxy<TypeInstance, RemoveWidgetSignalType> RemoveWidgetSignalProxy;
00087         static const RemoveWidgetSignalType remove_widget_signal;
00088 
00089 public:
00092 
00093         GtkCellEditable* gtk_cell_editable() const { return (GtkCellEditable*)instance; }
00095 
00096         GtkCellEditableIface* gtk_cell_editable_iface() const;
00098 
00099         operator GtkCellEditable* () const;
00101 
00105 
00106         void start_editing(const Gdk::Event *event);
00112 
00113         void editing_done();
00116 
00117         void remove_widget();
00121         
00125 
00126         const EditingDoneSignalProxy sig_editing_done()
00127         {
00128                 return EditingDoneSignalProxy(this, &editing_done_signal);
00129         }
00132 
00133         const RemoveWidgetSignalProxy sig_remove_widget()
00134         {
00135                 return RemoveWidgetSignalProxy(this, &remove_widget_signal);
00136         }
00139 
00141 };
00142 
00143 } // namespace Gtk
00144 
00145 } // namespace Inti
00146 
00147 #endif // INTI_GTK_CELL_EDITABLE_H
00148 
Main Page - Footer


Generated on Sun Sep 14 20:08:02 2003 for Inti by doxygen 1.3.2 written by Dimitri van Heesch, © 1997-2002