Ticket #1648: implemented single-line boxes.
[kaloumi3.git] / src / filegui.h
blob1cb3726994d0551372aa6827d0028e5ee944bdbb
2 /** \file filegui.h
3 * \brief Header: file management GUI for the text mode edition
4 */
6 #ifndef MC_FILEGUI_H
7 #define MC_FILEGUI_H
9 #include "lib/global.h"
10 #include "fileopctx.h"
12 typedef enum {
13 FILEGUI_DIALOG_ONE_ITEM,
14 FILEGUI_DIALOG_MULTI_ITEM,
15 FILEGUI_DIALOG_DELETE_ITEM
16 } filegui_dialog_type_t;
18 void file_op_context_create_ui (FileOpContext *ctx, gboolean with_eta, filegui_dialog_type_t dialog_type);
19 void file_op_context_create_ui_without_init (FileOpContext *ctx, gboolean with_eta, filegui_dialog_type_t dialog_type);
20 void file_op_context_destroy_ui (FileOpContext *ctx);
23 char *file_mask_dialog (FileOpContext *ctx, FileOperation operation,
24 gboolean only_one,
25 const char *format, const void *text,
26 const char *def_text, gboolean *do_background);
28 FileProgressStatus check_progress_buttons (FileOpContext *ctx);
30 void file_progress_show (FileOpContext *ctx, off_t done, off_t total,
31 const char *stalled_msg, gboolean force_update);
32 void file_progress_show_count (FileOpContext *ctx, off_t done, off_t total);
33 void file_progress_show_total (FileOpTotalContext *tctx, FileOpContext *ctx,
34 double copyed_bytes, gboolean need_show_total_summary);
35 void file_progress_show_source (FileOpContext *ctx, const char *path);
36 void file_progress_show_target (FileOpContext *ctx, const char *path);
37 void file_progress_show_deleting (FileOpContext *ctx, const char *path);
39 #endif /* MC_FILEGUI_H */