00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef ABI_TABLE_H
00025 #define ABI_TABLE_H
00026
00027 #include <gtk/gtkwidget.h>
00028
00029 #ifdef __cplusplus
00030 extern "C" {
00031 #endif
00032
00033 #define ABITABLE_TYPE_WIDGET (abi_table_get_type ())
00034 #define ABITABLE_WIDGET(obj) (GTK_CHECK_CAST((obj), ABITABLE_TYPE_WIDGET, AbiTable))
00035 #define IS_ABITABLE_WIDGET(obj) (GTK_CHECK_TYPE((obj), ABITABLE_TYPE_WIDGET))
00036 #define IS_ABITABLE_WIDGET_CLASS(obj) (GTK_CHECK_CLASS_CAST((obj), ABITABLE_TYPE_WIDGET))
00037 #define ABITABLE_WIDGET_CLASS(k) (GTK_CHECK_CLASS_CAST((k), ABITABLE_TYPE_WIDGET,AbiTableClass))
00038
00039 typedef struct _AbiTable
00040 {
00041 GtkButton button;
00042
00043
00044 GtkStockItem stock_item;
00045
00046 GtkWidget* button_box;
00047 GtkWidget* label;
00048 GtkWidget* icon;
00049
00050 GtkWindow* window;
00051 GtkVBox* window_vbox;
00052 GtkDrawingArea* area;
00053 GtkLabel* window_label;
00054 GSList* handlers;
00055
00056 GdkGC* selected_gc;
00057
00058 guint selected_rows;
00059 guint selected_cols;
00060
00061 guint total_rows;
00062 guint total_cols;
00063
00064 guint max_rows;
00065 guint max_cols;
00066 gchar * szTable;
00067 gchar * szCancel;
00068 } AbiTable;
00069
00070 typedef struct
00071 {
00072 GtkButtonClass parent_class;
00073
00074
00075 void (* selected) (AbiTable *abi_table, guint rows, guint cols);
00076 } AbiTableClass;
00077
00078
00079 GtkType abi_table_get_type (void);
00080 GtkWidget *abi_table_new (void);
00081
00082
00083 void abi_table_set_selected (AbiTable* abi_table, guint rows, guint cols);
00084
00085 void abi_table_get_selected (const AbiTable* abi_table, guint* rows, guint* cols);
00086
00087
00088 void abi_table_set_max_size (AbiTable* abi_table, guint rows, guint cols);
00089
00090 void abi_table_get_max_size (const AbiTable* abi_table, guint* rows, guint* cols);
00091
00092
00093 void abi_table_set_labels(AbiTable* abi_table, const gchar * szTable, const gchar * szCancel);
00094
00095
00096
00097 GtkWidget * abi_table_get_label(AbiTable* abi_table);
00098
00099
00100
00101 void abi_table_set_icon(AbiTable* abi_table, GtkWidget* icon);
00102
00103 #ifdef __cplusplus
00104 }
00105 #endif
00106
00107 #endif