1 #ifndef __BATCH_DIALOG_H
2 #define __BATCH_DIALOG_H
3 
4 #include <gtk/gtk.h>
5 
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9 
10 typedef struct _BatchDialog BatchDialog;
11 
12 struct _BatchDialog {
13 	GtkWidget* self;
14 
15 	GtkWidget* entry;
16 	GtkWidget* radio_button;
17 	GtkWidget* spin_from;
18 	GtkWidget* spin_to;
19 	GtkWidget* spin_width;
20 	GtkWidget* entry_a;
21 	GtkWidget* entry_z;
22 };
23 
24 enum BATCH_MODE {
25 	BATCH_MODE_NONE,
26 	BATCH_MODE_CHAR,
27 	BATCH_MODE_NUM
28 };
29 
30 void batch_dialog_init (BatchDialog* bd, GtkWindow* parent);
31 void batch_dialog_clear (BatchDialog* bd);
32 gint batch_dialog_run (BatchDialog* bd);
33 
34 const gchar* batch_dialog_get_pattern (BatchDialog* bd);
35 
36 gchar batch_dialog_get_char_min (BatchDialog* bd);
37 gchar batch_dialog_get_char_max (BatchDialog* bd);
38 gint  batch_dialog_get_int_min (BatchDialog* bd);
39 gint  batch_dialog_get_int_max (BatchDialog* bd);
40 gint  batch_dialog_get_int_width (BatchDialog* bd);
41 
42 
43 #ifdef __cplusplus
44 }
45 #endif
46 
47 #endif  // End of __BATCH_DIALOG_H
48