aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-group.h
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-06-30 03:22:24 +0800
committerChris Lahey <clahey@src.gnome.org>2000-06-30 03:22:24 +0800
commit3649d5dc6d7279d6c218d241232dea73c5c773d2 (patch)
tree89520e235371866a92f889e885eb30ed09f44b6c /widgets/table/e-table-group.h
parentf0bcf06559405a3de5271f4aeb3472c8a2b7aeb3 (diff)
downloadgsoc2013-evolution-3649d5dc6d7279d6c218d241232dea73c5c773d2.tar
gsoc2013-evolution-3649d5dc6d7279d6c218d241232dea73c5c773d2.tar.gz
gsoc2013-evolution-3649d5dc6d7279d6c218d241232dea73c5c773d2.tar.bz2
gsoc2013-evolution-3649d5dc6d7279d6c218d241232dea73c5c773d2.tar.lz
gsoc2013-evolution-3649d5dc6d7279d6c218d241232dea73c5c773d2.tar.xz
gsoc2013-evolution-3649d5dc6d7279d6c218d241232dea73c5c773d2.tar.zst
gsoc2013-evolution-3649d5dc6d7279d6c218d241232dea73c5c773d2.zip
From mail:
2000-06-29 Christopher James Lahey <clahey@helixcode.com> * message-list.c, mail-ops.c: Changed the name of e_table_select_row to e_table_set_cursor_row. From widgets/e-table: 2000-06-29 Christopher James Lahey <clahey@helixcode.com> * e-table-click-to-add.c: Made this appear a bit better. * e-table-defines.h: Cleaned this up a bit, added ETableForeachFunc. * e-table-group-container.c, e-table-group-leaf.c, e-table-group.c, e-table-group.h, e-table-item.c, e-table-item.h, e-table.c, e-table.h: Changed e_table_select_row to e_table_set_cursor_row. Changed e_table_get_selected_view_row to e_table_get_cursor_row. Added e_table_selected_row_foreach. * e-table-header-item.c: Fixed some warnings. * e-table-sorted-variable.c: Removed some unneeded debugging print statments. * e-tree-example-1.c: Changed e_table_get_selected_view_row to e_table_get_cursor_row. svn path=/trunk/; revision=3799
Diffstat (limited to 'widgets/table/e-table-group.h')
-rw-r--r--widgets/table/e-table-group.h45
1 files changed, 25 insertions, 20 deletions
diff --git a/widgets/table/e-table-group.h b/widgets/table/e-table-group.h
index a7c04cad5e..ef6be1d35f 100644
--- a/widgets/table/e-table-group.h
+++ b/widgets/table/e-table-group.h
@@ -6,6 +6,7 @@
#include "e-table-model.h"
#include "e-table-header.h"
#include "e-table-sort-info.h"
+#include "e-table-defines.h"
#include "e-util/e-util.h"
#include "e-util/e-printable.h"
@@ -44,26 +45,27 @@ typedef struct {
GnomeCanvasGroupClass parent_class;
/* Signals */
- void (*row_selection) (ETableGroup *etg, int row, gboolean selected);
- void (*cursor_change) (ETableGroup *etg, int row);
- void (*double_click) (ETableGroup *etg, int row);
- gint (*right_click) (ETableGroup *etg, int row, int col, GdkEvent *event);
- gint (*key_press) (ETableGroup *etg, int row, int col, GdkEvent *event);
+ void (*row_selection) (ETableGroup *etg, int row, gboolean selected);
+ void (*cursor_change) (ETableGroup *etg, int row);
+ void (*double_click) (ETableGroup *etg, int row);
+ gint (*right_click) (ETableGroup *etg, int row, int col, GdkEvent *event);
+ gint (*key_press) (ETableGroup *etg, int row, int col, GdkEvent *event);
/* Virtual functions. */
- void (*add) (ETableGroup *etg, gint row);
- void (*add_all) (ETableGroup *etg);
- gboolean (*remove) (ETableGroup *etg, gint row);
- gint (*get_count) (ETableGroup *etg);
- gint (*row_count) (ETableGroup *etg);
- void (*increment) (ETableGroup *etg, gint position, gint amount);
- void (*set_focus) (ETableGroup *etg, EFocus direction, gint view_col);
- void (*select_row) (ETableGroup *etg, gint row);
- int (*get_selected_view_row) (ETableGroup *etg);
- gboolean (*get_focus) (ETableGroup *etg);
- gint (*get_focus_column) (ETableGroup *etg);
- ETableCol *(*get_ecol) (ETableGroup *etg);
- EPrintable *(*get_printable) (ETableGroup *etg);
+ void (*add) (ETableGroup *etg, gint row);
+ void (*add_all) (ETableGroup *etg);
+ gboolean (*remove) (ETableGroup *etg, gint row);
+ gint (*get_count) (ETableGroup *etg);
+ gint (*row_count) (ETableGroup *etg);
+ void (*increment) (ETableGroup *etg, gint position, gint amount);
+ void (*set_focus) (ETableGroup *etg, EFocus direction, gint view_col);
+ void (*set_cursor_row) (ETableGroup *etg, gint row);
+ int (*get_cursor_row) (ETableGroup *etg);
+ gboolean (*get_focus) (ETableGroup *etg);
+ gint (*get_focus_column) (ETableGroup *etg);
+ ETableCol *(*get_ecol) (ETableGroup *etg);
+ EPrintable *(*get_printable) (ETableGroup *etg);
+ void (*selected_row_foreach) (ETableGroup *etg, ETableForeachFunc func, gpointer closure);
} ETableGroupClass;
@@ -81,14 +83,17 @@ gint e_table_group_row_count (ETableGroup *etg);
void e_table_group_set_focus (ETableGroup *etg,
EFocus direction,
gint view_col);
-void e_table_group_select_row (ETableGroup *etg,
+void e_table_group_set_cursor_row (ETableGroup *etg,
gint row);
-int e_table_group_get_selected_view_row (ETableGroup *etg);
+int e_table_group_get_cursor_row (ETableGroup *etg);
gboolean e_table_group_get_focus (ETableGroup *etg);
gint e_table_group_get_focus_column (ETableGroup *etg);
ETableHeader *e_table_group_get_header (ETableGroup *etg);
ETableCol *e_table_group_get_ecol (ETableGroup *etg);
EPrintable *e_table_group_get_printable (ETableGroup *etg);
+void e_table_group_selected_row_foreach (ETableGroup *etg,
+ ETableForeachFunc func,
+ gpointer closure);
ETableGroup *e_table_group_new (GnomeCanvasGroup *parent,
ETableHeader *full_header,