aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-table/e-table-item.h
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnu.org>1999-11-29 06:26:39 +0800
committerArturo Espinosa <unammx@src.gnome.org>1999-11-29 06:26:39 +0800
commit1a0d4df95730ab26981b3f26aa365aae84da36f5 (patch)
tree887f57713f7baefffc4022b66b20c67160b4be80 /widgets/e-table/e-table-item.h
parent8d75b6689bdf5dc7c1efad65867cba2a656f2dcc (diff)
downloadgsoc2013-evolution-1a0d4df95730ab26981b3f26aa365aae84da36f5.tar
gsoc2013-evolution-1a0d4df95730ab26981b3f26aa365aae84da36f5.tar.gz
gsoc2013-evolution-1a0d4df95730ab26981b3f26aa365aae84da36f5.tar.bz2
gsoc2013-evolution-1a0d4df95730ab26981b3f26aa365aae84da36f5.tar.lz
gsoc2013-evolution-1a0d4df95730ab26981b3f26aa365aae84da36f5.tar.xz
gsoc2013-evolution-1a0d4df95730ab26981b3f26aa365aae84da36f5.tar.zst
gsoc2013-evolution-1a0d4df95730ab26981b3f26aa365aae84da36f5.zip
New methods; They implement editing.
1999-11-28 Miguel de Icaza <miguel@gnu.org> * e-cell-text.c (ect_enter_edit, ect_leave_edit): New methods; They implement editing. * e-cell.h: new methods: enter_edit, leave_edit * e-table-model.h (set_value_at): make val argument const. * e-table-simple.c (simple_set_value_at): Make value argument const; * e-table-item.c (eti_set_arg): Add new mode: draw_focus; svn path=/trunk/; revision=1442
Diffstat (limited to 'widgets/e-table/e-table-item.h')
-rw-r--r--widgets/e-table/e-table-item.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/widgets/e-table/e-table-item.h b/widgets/e-table/e-table-item.h
index 17d422ddf5..02f7beb1ac 100644
--- a/widgets/e-table/e-table-item.h
+++ b/widgets/e-table/e-table-item.h
@@ -28,14 +28,14 @@ typedef struct {
int header_dim_change_id;
int header_structure_change_id;
int table_model_change_id;
- int table_model_selection_id;
GdkGC *fill_gc;
GdkGC *grid_gc;
GdkGC *focus_gc;
unsigned int draw_grid:1;
-
+ unsigned int draw_focus:1;
+
int focused_col, focused_row;
/*
@@ -52,6 +52,12 @@ typedef struct {
GSList *selection;
GtkSelectionMode selection_mode;
+
+ /*
+ * During edition
+ */
+ int editing_col, editing_row;
+ void *edit_ctx;
} ETableItem;
typedef struct {
@@ -85,4 +91,11 @@ void e_table_item_set_selection_mode (ETableItem *e_table_Item,
gboolean e_table_item_is_row_selected (ETableItem *e_table_Item,
int row);
+void e_table_item_leave_edit (ETableItem *eti);
+void e_table_item_enter_edit (ETableItem *eti, int col, int row);
+
+void e_table_item_redraw_range (ETableItem *eti,
+ int start_col, int start_row,
+ int end_col, int end_row);
+
#endif /* _E_TABLE_ITEM_H_ */