1999-11-26 Miguel de Icaza <miguel@gnu.org> * e-table-item.c (eti_realize): Compute height using the ecell methods here. (eti_get_height): new method to compute dimensions. * e-cursors.c: use a different cursor. * e-table-model.h: kill height and row_height methods. * e-cell.c (ec_height): New method. * e-cell-text.c (ect_realize): Load the font from the canvas. (ect_draw): New color setup. Center in the row. (ect_height): Implement new method. 1999-11-26 Michael Meeks <mmeeks@gnu.org> * ROADMAP.e-table: small spelling/typo fixes. 1999-11-25 Miguel de Icaza <miguel@gnu.org> * e-table-item.c (eti_event): Work on mouse-button event svn path=/trunk/; revision=1439
41 lines
1.4 KiB
C
41 lines
1.4 KiB
C
#ifndef _E_TABLE_SIMPLE_H_
|
|
#define _E_TABLE_SIMPLE_H_
|
|
|
|
#include "e-table-model.h"
|
|
|
|
typedef int (*ETableSimpleColumnCountFn) (ETableModel *etm, void *data);
|
|
typedef const char *(*ETableSimpleColumnNameFn) (ETableModel *etm, int col, void *data);
|
|
typedef int (*ETableSimpleRowCountFn) (ETableModel *etm, void *data);
|
|
typedef void *(*ETableSimpleValueAtFn) (ETableModel *etm, int col, int row, void *data);
|
|
typedef void (*ETableSimpleSetValueAtFn) (ETableModel *etm, int col, int row, void *val, void *data);
|
|
typedef gboolean (*ETableSimpleIsCellEditableFn) (ETableModel *etm, int col, int row, void *data);
|
|
|
|
typedef struct {
|
|
ETableModel parent;
|
|
|
|
ETableSimpleColumnCountFn col_count;
|
|
ETableSimpleColumnNameFn col_name;
|
|
ETableSimpleRowCountFn row_count;
|
|
ETableSimpleValueAtFn value_at;
|
|
ETableSimpleSetValueAtFn set_value_at;
|
|
ETableSimpleIsCellEditableFn is_cell_editable;
|
|
void *data;
|
|
} ETableSimple;
|
|
|
|
typedef struct {
|
|
ETableModelClass parent_class;
|
|
} ETableSimpleClass;
|
|
|
|
GtkType e_table_simple_get_type (void);
|
|
|
|
ETableModel *e_table_simple_new (ETableSimpleColumnCountFn col_count,
|
|
ETableSimpleColumnNameFn col_name,
|
|
ETableSimpleRowCountFn row_count,
|
|
ETableSimpleValueAtFn value_at,
|
|
ETableSimpleSetValueAtFn set_value_at,
|
|
ETableSimpleIsCellEditableFn is_cell_editable,
|
|
void *data);
|
|
|
|
#endif /* _E_TABLE_SIMPLE_H_ */
|
|
|