00001 #ifndef Se_Widgets_Included
00002 #define Se_Widgets_Included
00003
00004 #include <gtk/gtk.h>
00005 #include <gdk/gdk.h>
00006
00007 #include "se_string.h"
00008
00009 namespace Se{
00010
00011 class Build{
00012
00013 static const int Row_Spacing=0;
00014 static const int Col_Spacing=0;
00015 static const GtkAttachOptions X_Option=GTK_FILL;
00016 static const GtkAttachOptions Y_Option=GTK_FILL;
00017 static const bool Homogene=FALSE;
00018
00019
00020 public:
00021
00022
00023
00024
00025 static GtkWidget *button(GtkTable *table,
00026 String label,
00027 int x1,int x2,int y1,int y2,
00028 GtkSignalFunc callback,gpointer data);
00029
00030 static GtkWidget *toggle_button(GtkTable *table,String label,
00031 int x1,int x2,int y1,int y2,
00032 GtkSignalFunc callback,gpointer data);
00033
00034 static GtkWidget *table(GtkScrolledWindow *window,
00035 guint lignes,
00036 guint colonnes,
00037 gboolean homogene);
00038
00039 static GtkWidget *table(GtkContainer *container,
00040 guint lignes,
00041 guint colonnes);
00042
00043 static GtkWidget *toolbar(GtkTable *table,
00044 guint x1,
00045 guint x2,
00046 guint y1,
00047 guint y2);
00048
00049 static void item(GtkToolbar *toolbar,
00050 GtkWidget *window,
00051 String text,
00052 String aide,
00053 String file,
00054 GtkSignalFunc callBack,
00055 gpointer data);
00056
00057 static GtkWidget *file_selection(GtkWidget *file_selection,
00058 String title,
00059 String default_file,
00060 GtkSignalFunc callback,
00061 gpointer data);
00062
00063 static GtkWidget *window(String title);
00064
00065 static GtkWidget *scroll(GtkContainer *window);
00066
00067 static GtkWidget *dialog(String title, String text);
00068
00069
00070
00071 static GtkWidget *output(GtkTable *table,String name,
00072 int x1,int x2,int y1,int y2);
00073
00074 static GtkWidget *input(GtkTable *table,String name,
00075 int x1,int x2,int y1,int y2,
00076 GCallback the_callback,gpointer data);
00077
00078
00079 };
00080
00081 }
00082
00083 #endif