aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-item.h
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-06-21 08:12:48 +0800
committerChris Lahey <clahey@src.gnome.org>2000-06-21 08:12:48 +0800
commit39ea8e12ac7cbffe317f2ea54757a9636796c56d (patch)
tree8217b6473557bda2c6e9b7c276f66266edbe8a56 /widgets/table/e-table-item.h
parent6d460ba3fe4d476c11423ae7c1639922b6ea1eac (diff)
downloadgsoc2013-evolution-39ea8e12ac7cbffe317f2ea54757a9636796c56d.tar
gsoc2013-evolution-39ea8e12ac7cbffe317f2ea54757a9636796c56d.tar.gz
gsoc2013-evolution-39ea8e12ac7cbffe317f2ea54757a9636796c56d.tar.bz2
gsoc2013-evolution-39ea8e12ac7cbffe317f2ea54757a9636796c56d.tar.lz
gsoc2013-evolution-39ea8e12ac7cbffe317f2ea54757a9636796c56d.tar.xz
gsoc2013-evolution-39ea8e12ac7cbffe317f2ea54757a9636796c56d.tar.zst
gsoc2013-evolution-39ea8e12ac7cbffe317f2ea54757a9636796c56d.zip
Started adapting ETableItem to use the canvas selection/cursor system.
2000-06-20 Christopher James Lahey <clahey@helixcode.com> * e-table-item.c, e-table-item.h: Started adapting ETableItem to use the canvas selection/cursor system. svn path=/trunk/; revision=3656
Diffstat (limited to 'widgets/table/e-table-item.h')
-rw-r--r--widgets/table/e-table-item.h67
1 files changed, 28 insertions, 39 deletions
diff --git a/widgets/table/e-table-item.h b/widgets/table/e-table-item.h
index 7ad5955cdc..1d522413cd 100644
--- a/widgets/table/e-table-item.h
+++ b/widgets/table/e-table-item.h
@@ -25,6 +25,8 @@ typedef struct {
ETableModel *table_model;
ETableHeader *header;
+ ETableModel *source_model;
+
int x1, y1;
int minimum_width, width, height;
@@ -46,14 +48,17 @@ typedef struct {
GdkGC *focus_gc;
GdkBitmap *stipple;
- guint draw_grid:1;
- guint draw_focus:1;
- guint renderers_can_change_size:1;
- guint cell_views_realized:1;
+ guint draw_grid:1;
+ guint draw_focus:1;
+ guint renderers_can_change_size:1;
+ guint cell_views_realized:1;
+
+ guint needs_redraw : 1;
+ guint needs_compute_height : 1;
+ guint needs_compute_width : 1;
+
+ guint uses_source_model : 1;
- guint needs_redraw : 1;
- guint needs_compute_height : 1;
- guint needs_compute_width : 1;
/*
* Realized views, per column
*/
@@ -74,14 +79,10 @@ typedef struct {
gint cursor_col;
ETableCursorMode cursor_mode;
-#if 0
GSList *selection;
- gint selection_count;
- GtkSelectionMode selection_mode;
-#endif
/*
- * During edition
+ * During editing
*/
int editing_col, editing_row;
void *edit_ctx;
@@ -109,35 +110,23 @@ void e_table_item_unfocus (ETableItem *eti);
gint e_table_item_get_focused_column (ETableItem *eti);
-#if 0
-/*
- * Selection
- */
-void e_table_item_select_row (ETableItem *e_table_Item, int row);
-void e_table_item_unselect_row (ETableItem *e_table_Item, int row);
-
/*
* Handling the selection
*/
-const GSList*e_table_item_get_selection (ETableItem *e_table_Item);
-
-GtkSelectionMode e_table_item_get_selection_mode (ETableItem *e_table_Item);
-void e_table_item_set_selection_mode (ETableItem *e_table_Item,
- GtkSelectionMode selection_mode);
-gboolean e_table_item_is_row_selected (ETableItem *e_table_Item,
- int row);
-#endif
-
-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);
-
-EPrintable *e_table_item_get_printable (ETableItem *eti);
-void e_table_item_print_height (ETableItem *eti,
- GnomePrintContext *context,
- gdouble width);
+const GSList *e_table_item_get_selection (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);
+
+EPrintable *e_table_item_get_printable (ETableItem *eti);
+void e_table_item_print_height (ETableItem *eti,
+ GnomePrintContext *context,
+ gdouble width);
#endif /* _E_TABLE_ITEM_H_ */