2 * ROX-Filer, filer for the ROX desktop project
3 * By Thomas Leonard, <tal197@users.sourceforge.net>.
11 #define ABOX(obj) GTK_CHECK_CAST((obj), abox_get_type(), ABox)
12 #define ABOX_CLASS(klass) GTK_CHECK_CLASS_CAST((klass), \
13 abox_get_type(), ABoxClass)
14 #define IS_ABOX(obj) G_TYPE_CHECK_INSTANCE_TYPE((obj), abox_get_type())
16 typedef struct _ABoxClass ABoxClass
;
17 typedef struct _ABox ABox
;
21 GtkDialog parent_widget
;
24 GtkWidget
*flag_box
; /* HBox for flags */
25 GtkWidget
*dir_label
; /* Shows what is being processed now */
26 GtkWidget
*log
; /* The TextView for the messages */
28 GtkWidget
*results
; /* List of filenames found */
29 GtkWidget
*entry
; /* Plain entry, or part of combo */
32 GtkWidget
*cmp_area
; /* Area where files are compared */
33 GtkWidget
*cmp_icon
[2];
34 GtkWidget
*cmp_name
[2];
35 GtkWidget
*cmp_size
[2];
36 GtkWidget
*cmp_date
[2];
39 GtkWidget
*progress
; /* Progress bar, NULL until set */
41 gchar
*next_dir
; /* NULL => no timer active */
44 gboolean question
; /* Asking a question? */
49 GtkDialogClass parent_class
;
51 void (*flag_toggled
)(ABox
*abox
, gint response
);
52 void (*abort_operation
)(ABox
*abox
);
55 GType
abox_get_type (void);
56 GtkWidget
* abox_new (const gchar
*title
, gboolean quiet
);
57 GtkWidget
*abox_add_flag (ABox
*abox
,
61 gboolean default_value
);
62 void abox_ask (ABox
*abox
,
63 const gchar
*question
);
64 void abox_cancel_ask (ABox
*abox
);
65 void abox_set_current_object (ABox
*abox
,
66 const gchar
*message
);
67 void abox_log (ABox
*abox
,
70 void abox_add_results (ABox
*abox
);
71 void abox_add_filename (ABox
*abox
,
72 const gchar
*pathname
);
73 void abox_clear_results (ABox
*abox
);
74 void abox_add_combo (ABox
*abox
,
78 GtkWidget
*help_button
);
79 void abox_add_entry (ABox
*abox
,
81 GtkWidget
*help_button
);
83 void abox_show_compare (ABox
*abox
, gboolean show
);
84 void abox_set_file (ABox
*abox
, int file
,
86 void abox_set_percentage (ABox
*abox
, int per
);
88 #endif /* __ABOX_H__ */