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 GtkStockItem stock_item;
00045
00046 GtkWidget* button_box;
00047 GtkWidget* label;
00048 GtkWidget* icon;
00049
00050 GtkWindow* window;
00051 GtkBox* window_vbox;
00052 GtkDrawingArea* area;
00053 GtkLabel* window_label;
00054 GSList* handlers;
00055
00056 #if !GTK_CHECK_VERSION(3,0,0)
00057 GdkGC* selected_gc;
00058 #endif
00059
00060 guint selected_rows;
00061 guint selected_cols;
00062
00063 guint total_rows;
00064 guint total_cols;
00065
00066 guint max_rows;
00067 guint max_cols;
00068 gchar * szTable;
00069 gchar * szCancel;
00070 } AbiTable;
00071
00072 typedef struct
00073 {
00074 GtkButtonClass parent_class;
00075
00076
00077 void (* selected) (AbiTable *abi_table, guint rows, guint cols);
00078 } AbiTableClass;
00079
00080
00081 GType abi_table_get_type (void);
00082 GtkWidget *abi_table_new (void);
00083
00084
00085 void abi_table_set_selected (AbiTable* abi_table, guint rows, guint cols);
00086
00087 void abi_table_get_selected (const AbiTable* abi_table, guint* rows, guint* cols);
00088
00089
00090 void abi_table_set_max_size (AbiTable* abi_table, guint rows, guint cols);
00091
00092 void abi_table_get_max_size (const AbiTable* abi_table, guint* rows, guint* cols);
00093
00094
00095 void abi_table_set_labels(AbiTable* abi_table, const gchar * szTable, const gchar * szCancel);
00096
00097
00098
00099 GtkWidget * abi_table_get_label(AbiTable* abi_table);
00100
00101
00102
00103 void abi_table_set_icon(AbiTable* abi_table, GtkWidget* icon);
00104
00105 #ifdef __cplusplus
00106 }
00107 #endif
00108
00109 #endif