![]() |
![]() |
![]() |
Evolution Utilities Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Signals |
struct ETableGroup; ETableGroup * e_table_group_new (GnomeCanvasGroup *parent
,ETableHeader *full_header
,ETableHeader *header
,ETableModel *model
,ETableSortInfo *sort_info
,gint n
); void e_table_group_construct (GnomeCanvasGroup *parent
,ETableGroup *etg
,ETableHeader *full_header
,ETableHeader *header
,ETableModel *model
); void e_table_group_add (ETableGroup *etg
,gint row
); void e_table_group_add_array (ETableGroup *etg
,const gint *array
,gint count
); void e_table_group_add_all (ETableGroup *etg
); gboolean e_table_group_remove (ETableGroup *etg
,gint row
); void e_table_group_increment (ETableGroup *etg
,gint position
,gint amount
); void e_table_group_decrement (ETableGroup *etg
,gint position
,gint amount
); gint e_table_group_row_count (ETableGroup *etg
); enum EFocus; void e_table_group_set_focus (ETableGroup *etg
,EFocus direction
,gint view_col
); 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
); EPrintable * e_table_group_get_printable (ETableGroup *etg
); void e_table_group_compute_location (ETableGroup *etg
,gint *x
,gint *y
,gint *row
,gint *col
); void e_table_group_get_mouse_over (ETableGroup *etg
,gint *row
,gint *col
); void e_table_group_get_cell_geometry (ETableGroup *etg
,gint *row
,gint *col
,gint *x
,gint *y
,gint *width
,gint *height
); void e_table_group_cursor_change (ETableGroup *etg
,gint row
); void e_table_group_cursor_activated (ETableGroup *etg
,gint row
); void e_table_group_double_click (ETableGroup *etg
,gint row
,gint col
,GdkEvent *event
); gboolean e_table_group_right_click (ETableGroup *etg
,gint row
,gint col
,GdkEvent *event
); gboolean e_table_group_click (ETableGroup *etg
,gint row
,gint col
,GdkEvent *event
); gboolean e_table_group_key_press (ETableGroup *etg
,gint row
,gint col
,GdkEvent *event
); gint e_table_group_start_drag (ETableGroup *etg
,gint row
,gint col
,GdkEvent *event
); void (*ETableGroupLeafFn) (gpointer e_table_item
,gpointer closure
); void e_table_group_apply_to_leafs (ETableGroup *etg
,ETableGroupLeafFn fn
,gpointer closure
);
GObject +----GInitiallyUnowned +----GnomeCanvasItem +----GnomeCanvasGroup +----ETableGroup +----ETableGroupLeaf
"click" :Run Last
"cursor-activated" :Run Last
"cursor-change" :Run Last
"double-click" :Run Last
"key-press" :Run Last
"right-click" :Run Last
"start-drag" :Run Last
ETableGroup * e_table_group_new (GnomeCanvasGroup *parent
,ETableHeader *full_header
,ETableHeader *header
,ETableModel *model
,ETableSortInfo *sort_info
,gint n
);
ETableGroup
is a collection of rows of an ETable
. It's a
GnomeCanvasItem
. There are two different forms. If n < the
number of groupings in the given ETableSortInfo
, then the
ETableGroup
will need to contain other ETableGroups
, thus it
creates an ETableGroupContainer
. Otherwise, it will just contain
an ETableItem
, and thus it creates an ETableGroupLeaf
.
|
The GnomeCanvasGroup to create a child of. |
|
The full header of the ETable . |
|
The current header of the ETable . |
|
The ETableModel of the ETable . |
|
The ETableSortInfo of the ETable . |
|
The grouping information object to group by. |
Returns : |
The new ETableGroup . |
void e_table_group_construct (GnomeCanvasGroup *parent
,ETableGroup *etg
,ETableHeader *full_header
,ETableHeader *header
,ETableModel *model
);
This routine does the base construction of the ETableGroup
.
|
The GnomeCanvasGroup to create a child of. |
|
The ETableGroup to construct. |
|
The full header of the ETable . |
|
The current header of the ETable . |
|
The ETableModel of the ETable . |
void e_table_group_add (ETableGroup *etg
,gint row
);
This routine adds the given row from the ETableModel
to this set
of rows.
|
The ETableGroup to add a row to |
|
The row to add. |
void e_table_group_add_array (ETableGroup *etg
,const gint *array
,gint count
);
This routine adds all the rows in the array to this set of rows. It assumes that the array is already sorted properly.
|
The ETableGroup to add to |
|
The array to add. |
|
The number of times to add |
void e_table_group_add_all (ETableGroup *etg
);
This routine adds all the rows from the ETableModel
to this set
of rows.
|
The ETableGroup to add to |
gboolean e_table_group_remove (ETableGroup *etg
,gint row
);
This routine removes the given row from the ETableModel
from this
set of rows.
|
The ETableGroup to remove a row from |
|
The row to remove. |
Returns : |
TRUE if the row was deleted and FALSE if the row was not found. |
void e_table_group_increment (ETableGroup *etg
,gint position
,gint amount
);
This routine calculates the number of rows shown in this group.
|
The ETableGroup to count |
Returns : |
The number of rows. |
void e_table_group_decrement (ETableGroup *etg
,gint position
,gint amount
);
void e_table_group_set_focus (ETableGroup *etg
,EFocus direction
,gint view_col
);
Sets the focus to this widget. Places the focus in the view column coming from direction direction.
|
The ETableGroup to set |
|
The direction the focus is coming from. |
|
The column to set the focus in. |
gboolean e_table_group_get_focus (ETableGroup *etg
);
Calculates if this group has the focus.
|
The ETableGroup to check |
Returns : |
TRUE if this group has the focus. |
gint e_table_group_get_focus_column (ETableGroup *etg
);
Calculates which column in this group has the focus.
|
The ETableGroup to check |
Returns : |
The column index (view column). |
ETableHeader * e_table_group_get_header (ETableGroup *etg
);
This routine returns the ETableGroup
's header.
|
ETableGroup to check |
Returns : |
The ETableHeader . |
EPrintable * e_table_group_get_printable (ETableGroup *etg
);
This routine creates and returns an EPrintable
that can be used to
print the given ETableGroup
.
|
ETableGroup which will be printed |
Returns : |
The EPrintable . |
void e_table_group_compute_location (ETableGroup *etg
,gint *x
,gint *y
,gint *row
,gint *col
);
This routine locates the pixel location (*x, *y) in the
ETableGroup
. If that location is in the ETableGroup
, *row and
*col are set to the view row and column where it was found. If
that location is not in the ETableGroup
, the height of the
ETableGroup
is removed from the value y points to.
|
ETableGroup to look in. |
|
A pointer to the x location to find in the ETableGroup . |
|
A pointer to the y location to find in the ETableGroup . |
|
A pointer to the location to store the found row in. |
|
A pointer to the location to store the found col in. |
void e_table_group_get_mouse_over (ETableGroup *etg
,gint *row
,gint *col
);
void e_table_group_get_cell_geometry (ETableGroup *etg
,gint *row
,gint *col
,gint *x
,gint *y
,gint *width
,gint *height
);
void e_table_group_cursor_change (ETableGroup *etg
,gint row
);
This routine emits the "cursor_change" signal.
|
ETableGroup to emit the signal on |
|
The new cursor row (model row) |
void e_table_group_cursor_activated (ETableGroup *etg
,gint row
);
This routine emits the "cursor_activated" signal.
|
ETableGroup to emit the signal on |
|
The cursor row (model row) |
void e_table_group_double_click (ETableGroup *etg
,gint row
,gint col
,GdkEvent *event
);
This routine emits the "double_click" signal.
|
ETableGroup to emit the signal on |
|
The row clicked on (model row) |
|
The col clicked on (model col) |
|
The event that caused this signal |
gboolean e_table_group_right_click (ETableGroup *etg
,gint row
,gint col
,GdkEvent *event
);
This routine emits the "right_click" signal.
|
ETableGroup to emit the signal on |
|
The row clicked on (model row) |
|
The col clicked on (model col) |
|
The event that caused this signal |
gboolean e_table_group_click (ETableGroup *etg
,gint row
,gint col
,GdkEvent *event
);
This routine emits the "click" signal.
|
ETableGroup to emit the signal on |
|
The row clicked on (model row) |
|
The col clicked on (model col) |
|
The event that caused this signal |
gboolean e_table_group_key_press (ETableGroup *etg
,gint row
,gint col
,GdkEvent *event
);
This routine emits the "key_press" signal.
|
ETableGroup to emit the signal on |
|
The cursor row (model row) |
|
The cursor col (model col) |
|
The event that caused this signal |
gint e_table_group_start_drag (ETableGroup *etg
,gint row
,gint col
,GdkEvent *event
);
This routine emits the "start_drag" signal.
|
ETableGroup to emit the signal on |
|
The cursor row (model row) |
|
The cursor col (model col) |
|
The event that caused this signal |
void e_table_group_apply_to_leafs (ETableGroup *etg
,ETableGroupLeafFn fn
,gpointer closure
);
"click"
signalgboolean user_function (ETableGroup *etablegroup,
gint arg1,
gint arg2,
GdkEvent *arg3,
gpointer user_data) : Run Last
"cursor-activated"
signalvoid user_function (ETableGroup *etablegroup,
gint arg1,
gpointer user_data) : Run Last
"cursor-change"
signalvoid user_function (ETableGroup *etablegroup,
gint arg1,
gpointer user_data) : Run Last
"double-click"
signalvoid user_function (ETableGroup *etablegroup,
gint arg1,
gint arg2,
GdkEvent *arg3,
gpointer user_data) : Run Last
"key-press"
signalgboolean user_function (ETableGroup *etablegroup,
gint arg1,
gint arg2,
GdkEvent *arg3,
gpointer user_data) : Run Last
"right-click"
signalgboolean user_function (ETableGroup *etablegroup,
gint arg1,
gint arg2,
GdkEvent *arg3,
gpointer user_data) : Run Last