![]() | ![]() | ![]() | ![]() |
#define E_TABLE_ITEM_TYPE typedef ETableItem; void e_table_item_set_cursor (ETableItem *eti, int col, int row); gint e_table_item_get_focused_column (ETableItem *eti); gboolean e_table_item_is_row_selected (ETableItem *e_table_Item, int row); void e_table_item_selected_row_foreach (ETableItem *eti, ETableForeachFunc func, gpointer closure); 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); void e_table_item_compute_location (ETableItem *eti, int *x, int *y, int *row, int *col);
"cursor-change" void user_function (ETableItem *etableitem, gint arg1, gpointer user_data); "double-click" void user_function (ETableItem *etableitem, gint arg1, gint arg2, gpointer arg3, gpointer user_data); "right-click" gint user_function (ETableItem *etableitem, gint arg1, gint arg2, gpointer arg3, gpointer user_data); "click" gint user_function (ETableItem *etableitem, gint arg1, gint arg2, gpointer arg3, gpointer user_data); "key-press" gint user_function (ETableItem *etableitem, gint arg1, gint arg2, gpointer arg3, gpointer user_data);
typedef struct { GnomeCanvasItem parent; ETableModel *table_model; ETableHeader *header; ETableModel *source_model; ETableSelectionModel *selection; int x1, y1; int minimum_width, width, height; int cols, rows; /* * Ids for the signals we connect to */ int header_dim_change_id; int header_structure_change_id; int header_request_width_id; int table_model_pre_change_id; int table_model_change_id; int table_model_row_change_id; 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; 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 needs_redraw : 1; guint needs_compute_height : 1; guint needs_compute_width : 1; guint uses_source_model : 1; /* * Realized views, per column */ ECellView **cell_views; int n_cells; int *height_cache; int height_cache_idle_id; int height_cache_idle_count; /* * Lengh Threshold: above this, we stop computing correctly * the size */ int length_threshold; gint row_guess; ETableCursorMode cursor_mode; /* * During editing */ int editing_col, editing_row; void *edit_ctx; /* * Tooltip */ ETableTooltip *tooltip; } ETableItem;
void e_table_item_set_cursor (ETableItem *eti, int col, int row);
This routine sets the cursor of the ETableItem canvas item.
eti : | ETableItem which will have the cursor set. |
col : | Column to select. -1 means the last column. |
row : | Row to select. -1 means the last row. |
gint e_table_item_get_focused_column (ETableItem *eti);
This routine gets the cursor of the ETableItem canvas item.
eti : | ETableItem which will have the cursor retrieved. |
Returns : | The current cursor column. |
gboolean e_table_item_is_row_selected (ETableItem *e_table_Item, int row);
e_table_Item : | |
row : | |
Returns : |
|
void e_table_item_selected_row_foreach (ETableItem *eti, ETableForeachFunc func, gpointer closure);
eti : | |
func : | |
closure : |
|
void e_table_item_enter_edit (ETableItem *eti, int col, int row);
This routine starts the given ETableItem editing at the given view column and row.
eti : | ETableItem which will start being edited |
col : | The view col to edit. |
row : | The view row to edit. |
void e_table_item_redraw_range (ETableItem *eti, int start_col, int start_row, int end_col, int end_row);
This routine redraws the given ETableItem in the range given. The range is inclusive at both ends.
eti : | ETableItem which will be redrawn |
start_col : | The first col to redraw. |
start_row : | The first row to redraw. |
end_col : | The last col to redraw. |
end_row : | The last row to redraw. |
EPrintable* e_table_item_get_printable (ETableItem *eti);
This routine creates and returns an EPrintable that can be used to print the given ETableItem.
eti : | ETableItem which will be printed |
Returns : | The EPrintable. |
void e_table_item_print_height (ETableItem *eti, GnomePrintContext *context, gdouble width);
eti : | |
context : | |
width : |
|
void e_table_item_compute_location (ETableItem *eti, int *x, int *y, int *row, int *col);
This routine locates the pixel location (*x, *y) in the ETableItem. If that location is in the ETableItem, *row and *col are set to the view row and column where it was found. If that location is not in the ETableItem, the height of the ETableItem is removed from the value y points to.
eti : | ETableItem to look in. |
x : | A pointer to the x location to find in the ETableItem. |
y : | A pointer to the y location to find in the ETableItem. |
row : | A pointer to the location to store the found row in. |
col : | A pointer to the location to store the found col in. |
void user_function (ETableItem *etableitem, gint arg1, gpointer user_data);
etableitem : | the object which received the signal. |
arg1 : | |
user_data : | user data set when the signal handler was connected. |
void user_function (ETableItem *etableitem, gint arg1, gint arg2, gpointer arg3, gpointer user_data);
etableitem : | the object which received the signal. |
arg1 : | |
arg2 : | |
arg3 : | |
user_data : | user data set when the signal handler was connected. |
gint user_function (ETableItem *etableitem, gint arg1, gint arg2, gpointer arg3, gpointer user_data);
etableitem : | the object which received the signal. |
arg1 : | |
arg2 : | |
arg3 : | |
user_data : | user data set when the signal handler was connected. |
Returns : |
gint user_function (ETableItem *etableitem, gint arg1, gint arg2, gpointer arg3, gpointer user_data);
etableitem : | the object which received the signal. |
arg1 : | |
arg2 : | |
arg3 : | |
user_data : | user data set when the signal handler was connected. |
Returns : |
gint user_function (ETableItem *etableitem, gint arg1, gint arg2, gpointer arg3, gpointer user_data);
etableitem : | the object which received the signal. |
arg1 : | |
arg2 : | |
arg3 : | |
user_data : | user data set when the signal handler was connected. |
Returns : |
<<< ETableHeaderItem | ETableGroupLeaf >>> |