Go to the documentation of this file.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/gtk.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) (G_TYPE_CHECK_INSTANCE_CAST((obj), ABITABLE_TYPE_WIDGET, AbiTable))
00035 #define IS_ABITABLE_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), ABITABLE_TYPE_WIDGET))
00036 #define IS_ABITABLE_WIDGET_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST((obj), ABITABLE_TYPE_WIDGET))
00037 #define ABITABLE_WIDGET_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), ABITABLE_TYPE_WIDGET,AbiTableClass))
00038
00039 typedef struct _AbiTable
00040 {
00041 GtkButton button;
00042
00043
00044 GtkWidget* button_box;
00045 GtkWidget* icon;
00046
00047 GtkWindow* window;
00048 GtkBox* window_vbox;
00049 GtkDrawingArea* area;
00050 GtkLabel* window_label;
00051 GSList* handlers;
00052
00053 GtkStyleContext* style_context;
00054
00055 guint selected_rows;
00056 guint selected_cols;
00057
00058 guint total_rows;
00059 guint total_cols;
00060
00061 guint max_rows;
00062 guint max_cols;
00063 gchar * szTable;
00064 gchar * szCancel;
00065 } AbiTable;
00066
00067 typedef struct
00068 {
00069 GtkButtonClass parent_class;
00070
00071
00072 void (* selected) (AbiTable *abi_table, guint rows, guint cols);
00073 } AbiTableClass;
00074
00075
00076 GType abi_table_get_type (void);
00077 GtkWidget *abi_table_new (void);
00078
00079
00080 void abi_table_set_selected (AbiTable* abi_table, guint rows, guint cols);
00081
00082 void abi_table_get_selected (const AbiTable* abi_table, guint* rows, guint* cols);
00083
00084
00085 void abi_table_set_max_size (AbiTable* abi_table, guint rows, guint cols);
00086
00087 void abi_table_get_max_size (const AbiTable* abi_table, guint* rows, guint* cols);
00088
00089
00090 void abi_table_set_labels(AbiTable* abi_table, const gchar * szTable, const gchar * szCancel);
00091
00092
00093
00094 void abi_table_set_icon(AbiTable* abi_table, GtkWidget* icon);
00095
00096 #ifdef __cplusplus
00097 }
00098 #endif
00099
00100 #endif