5 * ROX-Filer, filer for the ROX desktop project
6 * By Thomas Leonard, <tal197@users.sourceforge.net>.
14 #define ABOX(obj) GTK_CHECK_CAST((obj), abox_get_type(), ABox)
15 #define ABOX_CLASS(klass) GTK_CHECK_CLASS_CAST((klass), \
16 abox_get_type(), ABoxClass)
17 #define IS_ABOX(obj) G_TYPE_CHECK_INSTANCE_TYPE((obj), abox_get_type())
19 typedef struct _ABoxClass ABoxClass
;
20 typedef struct _ABox ABox
;
24 GtkDialog parent_widget
;
27 GtkWidget
*flag_box
; /* HBox for flags */
28 GtkWidget
*dir_label
; /* Shows what is being processed now */
29 GtkWidget
*log
; /* The TextView for the messages */
31 GtkWidget
*results
; /* List of filenames found */
32 GtkWidget
*entry
; /* Plain entry, or part of combo */
35 gchar
*next_dir
; /* NULL => no timer active */
38 gboolean question
; /* Asking a question? */
43 GtkDialogClass parent_class
;
45 void (*flag_toggled
)(ABox
*abox
, gint response
);
48 GType
abox_get_type (void);
49 GtkWidget
* abox_new (const gchar
*title
, gboolean quiet
);
50 GtkWidget
*abox_add_flag (ABox
*abox
,
54 gboolean default_value
);
55 void abox_ask (ABox
*abox
,
56 const gchar
*question
);
57 void abox_cancel_ask (ABox
*abox
);
58 void abox_set_current_object (ABox
*abox
,
59 const gchar
*message
);
60 void abox_log (ABox
*abox
,
63 void abox_add_results (ABox
*abox
);
64 void abox_add_filename (ABox
*abox
,
65 const gchar
*pathname
);
66 void abox_clear_results (ABox
*abox
);
67 void abox_add_combo (ABox
*abox
,
70 GtkWidget
*help_button
);
71 void abox_add_entry (ABox
*abox
,
73 GtkWidget
*help_button
);
75 #endif /* __ABOX_H__ */