{-# LINE 2 "./Graphics/UI/Gtk/ModelView/CellEditable.chs" #-}-- -*-haskell-*--- GIMP Toolkit (GTK) Interface CellEditable---- Author : Andy Stewart---- Created: 26 Mar 2010---- Copyright (C) 2010 Andy Stewart---- This library is free software; you can redistribute it and/or-- modify it under the terms of the GNU Lesser General Public-- License as published by the Free Software Foundation; either-- version 2.1 of the License, or (at your option) any later version.---- This library is distributed in the hope that it will be useful,-- but WITHOUT ANY WARRANTY; without even the implied warranty of-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU-- Lesser General Public License for more details.---- |-- Maintainer : gtk2hs-users@lists.sourceforge.net-- Stability : provisional-- Portability : portable (depends on GHC)---- Interface for widgets which can are used for editing cells--moduleGraphics.UI.Gtk.ModelView.CellEditable(-- * Detail---- | The 'CellEditable' interface must be implemented for widgets to be usable-- when editing the contents of a 'TreeView' cell.-- * Class Hierarchy---- |-- @-- | 'GInterface'-- | +----CellEditable-- @-- * TypesCellEditable,CellEditableClass,castToCellEditable,toCellEditable,-- * MethodscellEditableStartEditing,cellEditableEmitEditingDone,cellEditableEmitRemoveWidget,-- * AttributescellEditableEditingCanceled,-- * SignalscellEditableEditingDone,cellEditableRemoveWidget,)whereimportControl.Monad(liftM)importControl.Monad.Reader.Class(ask)importControl.Monad.Trans(liftIO)importSystem.Glib.FFIimportSystem.Glib.AttributesimportSystem.Glib.PropertiesimportGraphics.UI.Gtk.Types{-# LINE 72 "./Graphics/UI/Gtk/ModelView/CellEditable.chs" #-}importGraphics.UI.Gtk.Signals{-# LINE 73 "./Graphics/UI/Gtk/ModelView/CellEditable.chs" #-}importGraphics.UI.Gtk.Gdk.EventM(EventM,EKey,EAny)importGraphics.UI.Gtk.Gdk.Events(Event,EventKey,marshalEvent){-# LINE 77 "./Graphics/UI/Gtk/ModelView/CellEditable.chs" #-}---------------------- Methods-- | Begins editing on a @cellEditable@. @event@ is the 'Event' that began the editing process.--cellEditableStartEditing::CellEditableClassself=>self->EventMEAny()cellEditableStartEditingself=doeventPtr<-askliftIO$(\(CellEditablearg1)arg2->withForeignPtrarg1$\argPtr1->gtk_cell_editable_start_editingargPtr1arg2){-# LINE 87 "./Graphics/UI/Gtk/ModelView/CellEditable.chs" #-}(toCellEditableself)(castPtreventPtr)-- | Emits the 'cellEditableEditingDone' signal.--cellEditableEmitEditingDone::CellEditableClassself=>self->IO()cellEditableEmitEditingDoneself=(\(CellEditablearg1)->withForeignPtrarg1$\argPtr1->gtk_cell_editable_editing_doneargPtr1){-# LINE 95 "./Graphics/UI/Gtk/ModelView/CellEditable.chs" #-}(toCellEditableself)-- | Emits the 'cellEditableRemoveWidget' signal.--cellEditableEmitRemoveWidget::CellEditableClassself=>self->IO()cellEditableEmitRemoveWidgetself=(\(CellEditablearg1)->withForeignPtrarg1$\argPtr1->gtk_cell_editable_remove_widgetargPtr1){-# LINE 102 "./Graphics/UI/Gtk/ModelView/CellEditable.chs" #-}(toCellEditableself)---------------------- Attributes-- | Indicates whether editing on the cell has been canceled.---- Default value: 'False'---- * Available since Gtk+ version 2.20--cellEditableEditingCanceled::CellEditableClassself=>AttrselfBoolcellEditableEditingCanceled=newAttrFromBoolProperty"editing-canceled"---------------------- Signals-- | This signal is a sign for the cell renderer to update its value from the-- @cellEditable@.---- Implementations of 'CellEditable' are responsible for emitting this-- signal when they are done editing, e.g. 'Entry' is emitting it when the user-- presses Enter.---- 'cellEditableEmitEditingDone' is a convenience method for emitting-- ::editing-done.--cellEditableEditingDone::CellEditableClassself=>Signalself(IO())cellEditableEditingDone=Signal(connect_NONE__NONE"editing_done")-- | This signal is meant to indicate that the cell is finished editing, and-- the widget may now be destroyed.---- Implementations of 'CellEditable' are responsible for emitting this-- signal when they are done editing. It must be emitted after the-- 'cellEditableEditingDone' signal, to give the cell-- renderer a chance to update the cell's value before the widget is removed.---- 'cellEditableEmitRemoveWidget' is a convenience method for emitting-- ::remove-widget.--cellEditableRemoveWidget::CellEditableClassself=>Signalself(IO())cellEditableRemoveWidget=Signal(connect_NONE__NONE"remove_widget")foreignimportccallsafe"gtk_cell_editable_start_editing"gtk_cell_editable_start_editing::((PtrCellEditable)->((Ptr())->(IO())))foreignimportccallsafe"gtk_cell_editable_editing_done"gtk_cell_editable_editing_done::((PtrCellEditable)->(IO()))foreignimportccallsafe"gtk_cell_editable_remove_widget"gtk_cell_editable_remove_widget::((PtrCellEditable)->(IO()))