#define E_TABLE_HEADER_ITEM_TYPE typedef ETableHeaderItem; |
"ETableHeader" GtkObject : Write "full_header" GtkObject : Read / Write "dnd_code" gchar* : Read / Write "fontset" gchar* : Write "sort_info" GtkObject : Write "table" GtkObject : Write |
"button-pressed" void user_function (ETableHeaderItem *etableheaderitem, gpointer arg1, gpointer user_data); |
The ETableHeaderItem object is a GnomeCanvasItem item that renders an ETableHeader model into a canvas. This canvas item takes a number of argument to configure the display.
typedef struct { GnomeCanvasItem parent; ETableHeader *eth; GdkGC *gc; GdkCursor *change_cursor; short height, width; GdkFont *font; /* * Used during resizing; Could be shorts */ int resize_col; int resize_start_pos; int resize_min_width; GtkObject *resize_guide; int group_indent_width; /* * Ids */ int structure_change_id, dimension_change_id; /* * For dragging columns */ guint maybe_drag:1; guint dnd_ready:1; int click_x, click_y; int drag_col, drop_col, drag_mark; guint drag_motion_id, drag_end_id, drag_leave_id, drag_drop_id, drag_data_received_id, drag_data_get_id; guint sort_info_changed_id, group_info_changed_id; GnomeCanvasItem *remove_item; GdkBitmap *stipple; gchar *dnd_code; /* * For column sorting info */ ETableSortInfo *sort_info; /* For adding fields. */ ETableHeader *full_header; ETable *table; GtkWidget *config; } ETableHeaderItem; |
Specifies the ETableHeader model that this item is going to render on the screen. The ETableHeader contains the information of which columns from the model are going to be displayed and in which order. It also contains details about the actual text displayed to render the column names.
This is used to pass a collection of all the possible headers the ETable will display. This information is used during the interactive configuration of the data to be displayed by the ETable widget and to allow the user to drag and drop column names from the field chooser into the table header. This is of type ETableHeader
String representing the dnd code for this ETable.
This specified the X font set to use to render the column title. This is a string.
An ETableSortInfo object that is used to store the information about sorting and grouping in the ETable.
This is a pointer to our parent ETable object. This is used during by the interactive configuration process.
void user_function (ETableHeaderItem *etableheaderitem, gpointer arg1, gpointer user_data); |
Emmited when a button has been pressed in the header. This will pass the GdkEvent as the argument to the signal handler.