diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 17:44:12 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 17:44:12 +0000 |
commit | 8ccb487c21368a7fdc8c7c72315325bf0aa06147 (patch) | |
tree | b2056fae01d325924508a41731edfbd4c3cddd23 /src/filemanager/filegui.h | |
parent | Initial commit. (diff) | |
download | mc-8ccb487c21368a7fdc8c7c72315325bf0aa06147.tar.xz mc-8ccb487c21368a7fdc8c7c72315325bf0aa06147.zip |
Adding upstream version 3:4.8.29.upstream/3%4.8.29upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/filemanager/filegui.h')
-rw-r--r-- | src/filemanager/filegui.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/filemanager/filegui.h b/src/filemanager/filegui.h new file mode 100644 index 0000000..3fe6fe7 --- /dev/null +++ b/src/filemanager/filegui.h @@ -0,0 +1,41 @@ +/** \file filegui.h + * \brief Header: file management GUI for the text mode edition + */ + +#ifndef MC__FILEGUI_H +#define MC__FILEGUI_H + +#include "lib/global.h" +#include "fileopctx.h" + +/*** typedefs(not structures) and defined constants **********************************************/ + +/*** enums ***************************************************************************************/ + +/*** structures declarations (and typedefs of structures)*****************************************/ + +/*** global variables defined in .c file *********************************************************/ + +/*** declarations of public functions ************************************************************/ + +void file_op_context_create_ui (file_op_context_t * ctx, gboolean with_eta, + filegui_dialog_type_t dialog_type); +void file_op_context_destroy_ui (file_op_context_t * ctx); + +char *file_mask_dialog (file_op_context_t * ctx, FileOperation operation, gboolean only_one, + const char *format, const void *text, const char *def_text, + gboolean * do_bg); + +FileProgressStatus check_progress_buttons (file_op_context_t * ctx); + +void file_progress_show (file_op_context_t * ctx, off_t done, off_t total, + const char *stalled_msg, gboolean force_update); +void file_progress_show_count (file_op_context_t * ctx, size_t done, size_t total); +void file_progress_show_total (file_op_total_context_t * tctx, file_op_context_t * ctx, + uintmax_t copied_bytes, gboolean show_summary); +void file_progress_show_source (file_op_context_t * ctx, const vfs_path_t * vpath); +void file_progress_show_target (file_op_context_t * ctx, const vfs_path_t * vpath); +gboolean file_progress_show_deleting (file_op_context_t * ctx, const char *path, size_t * count); + +/*** inline functions ****************************************************************************/ +#endif /* MC__FILEGUI_H */ |