r4255: Make Path optional in PanelRemove SOAP call, allowing removal of items based
[rox-filer/translations.git] / ROX-Filer / src / abox.h
blobc0636c77c03da91d1d4d8caa56ab9047d39ca372
1 /*
2 * ROX-Filer, filer for the ROX desktop project
3 * By Thomas Leonard, <tal197@users.sourceforge.net>.
4 */
6 #ifndef __ABOX_H__
7 #define __ABOX_H__
9 #include <gtk/gtk.h>
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;
19 struct _ABox
21 GtkDialog parent_widget;
23 GtkWidget *quiet;
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 */
27 GtkWidget *log_hbox;
28 GtkWidget *results; /* List of filenames found */
29 GtkWidget *entry; /* Plain entry, or part of combo */
30 FilerWindow *preview;
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];
37 GtkWidget *cmp_arrow;
39 GtkWidget *progress; /* Progress bar, NULL until set */
41 gchar *next_dir; /* NULL => no timer active */
42 gint next_timer;
44 gboolean question; /* Asking a question? */
47 struct _ABoxClass
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,
58 const gchar *label,
59 const gchar *tip,
60 gint response,
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,
68 const gchar *message,
69 const gchar *style);
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,
75 const gchar *tlabel,
76 GList *presets,
77 const gchar *text,
78 GtkWidget *help_button);
79 void abox_add_entry (ABox *abox,
80 const gchar *text,
81 GtkWidget *help_button);
83 void abox_show_compare (ABox *abox, gboolean show);
84 void abox_set_file (ABox *abox, int file,
85 const gchar *path);
86 void abox_set_percentage (ABox *abox, int per);
88 #endif /* __ABOX_H__ */