aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-item.h
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-07-27 04:33:39 +0800
committerChris Lahey <clahey@src.gnome.org>2000-07-27 04:33:39 +0800
commit32c3d29bbc14cc1d4c054eb9d6538b0199e90c61 (patch)
tree021834696ac26eae0b65be3e695f05a2afc030ad /widgets/table/e-table-item.h
parent580e879674ea981023756e1bdaa8d7309223c86b (diff)
downloadgsoc2013-evolution-32c3d29bbc14cc1d4c054eb9d6538b0199e90c61.tar
gsoc2013-evolution-32c3d29bbc14cc1d4c054eb9d6538b0199e90c61.tar.gz
gsoc2013-evolution-32c3d29bbc14cc1d4c054eb9d6538b0199e90c61.tar.bz2
gsoc2013-evolution-32c3d29bbc14cc1d4c054eb9d6538b0199e90c61.tar.lz
gsoc2013-evolution-32c3d29bbc14cc1d4c054eb9d6538b0199e90c61.tar.xz
gsoc2013-evolution-32c3d29bbc14cc1d4c054eb9d6538b0199e90c61.tar.zst
gsoc2013-evolution-32c3d29bbc14cc1d4c054eb9d6538b0199e90c61.zip
Added "table_selection_model" argument. Removed foreach function and
2000-07-26 Christopher James Lahey <clahey@helixcode.com> * e-table-group-container.c, e-table-group-container.h, e-table-group-leaf.c, e-table-group-leaf.h: Added "table_selection_model" argument. Removed foreach function and selection notification. * e-table-group.c, e-table-group.h: Removed foreach function and selection notification. * e-table-header.c: Fixed header width calculation to include the last column. * e-table-item.c, e-table-item.h: Fixed this to use the new selection model. * e-table-scrolled.c, e-table-scrolled.h: Removed selection notification. * e-table-selection-model.c, e-table-selection-model.h: Finished notification signals and fixed a bunch of bit manipulations. Implemented do_something method. * e-table.c, e-table.h: Create an ETableSelectionModel and use it properly. svn path=/trunk/; revision=4363
Diffstat (limited to 'widgets/table/e-table-item.h')
-rw-r--r--widgets/table/e-table-item.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/widgets/table/e-table-item.h b/widgets/table/e-table-item.h
index 619db68803..7102ef3ef7 100644
--- a/widgets/table/e-table-item.h
+++ b/widgets/table/e-table-item.h
@@ -5,6 +5,7 @@
#include <libgnomeui/gnome-canvas.h>
#include "e-table-model.h"
#include "e-table-header.h"
+#include "e-table-selection-model.h"
#include "e-table-defines.h"
#include <e-util/e-printable.h>
@@ -27,6 +28,7 @@ typedef struct {
ETableHeader *header;
ETableModel *source_model;
+ ETableSelectionModel *selection;
int x1, y1;
int minimum_width, width, height;
@@ -43,6 +45,9 @@ typedef struct {
int table_model_cell_change_id;
int table_model_row_inserted_id;
int table_model_row_deleted_id;
+
+ int selection_change_id;
+ int cursor_change_id;
GdkGC *fill_gc;
GdkGC *grid_gc;
@@ -77,12 +82,8 @@ typedef struct {
int length_threshold;
gint row_guess;
- gint cursor_row;
- gint cursor_col;
ETableCursorMode cursor_mode;
- GSList *selection;
-
/*
* During editing
*/
@@ -94,7 +95,6 @@ typedef struct {
typedef struct {
GnomeCanvasItemClass parent_class;
- void (*row_selection) (ETableItem *eti, int row, gboolean selected);
void (*cursor_change) (ETableItem *eti, int row);
void (*double_click) (ETableItem *eti, int row);
gint (*right_click) (ETableItem *eti, int row, int col, GdkEvent *event);
@@ -114,7 +114,6 @@ gint e_table_item_get_focused_column (ETableItem *eti);
/*
* Handling the selection
*/
-const GSList *e_table_item_get_selection (ETableItem *e_table_Item);
gboolean e_table_item_is_row_selected (ETableItem *e_table_Item,
int row);