Remove commented out code.
[geeqie.git] / src / utilops.h
1 /*
2  * Geeqie
3  * (C) 2006 John Ellis
4  * Copyright (C) 2008 - 2012 The Geeqie Team
5  *
6  * Author: John Ellis
7  *
8  * This software is released under the GNU General Public License (GNU GPL).
9  * Please read the included file COPYING for more information.
10  * This software comes with no warranty of any kind, use at your own risk!
11  */
12
13
14 #ifndef UTILOPS_H
15 #define UTILOPS_H
16
17
18 #include "ui_utildlg.h"
19
20 void file_maint_renamed(FileData *fd);
21 void file_maint_moved(FileData *fd, GList *ignore_list);
22 void file_maint_copied(FileData *fd);
23
24 GenericDialog *file_util_gen_dlg(const gchar *title,
25                                  const gchar *role,
26                                  GtkWidget *parent, gint auto_close,
27                                  void (*cancel_cb)(GenericDialog *, gpointer), gpointer data);
28 FileDialog *file_util_file_dlg(const gchar *title,
29                                const gchar *role,
30                                GtkWidget *parent,
31                                void (*cancel_cb)(FileDialog *, gpointer), gpointer data);
32 GenericDialog *file_util_warning_dialog(const gchar *heading, const gchar *message,
33                                         const gchar *icon_stock_id, GtkWidget *parent);
34
35 /* all functions takes over the filelist and frees it when done */
36
37 void file_util_delete(FileData *source_fd, GList *source_list, GtkWidget *parent);
38 void file_util_move(FileData *source_fd, GList *source_list, const gchar *dest_path, GtkWidget *parent);
39 void file_util_copy(FileData *source_fd, GList *source_list, const gchar *dest_path, GtkWidget *parent);
40 void file_util_rename(FileData *source_fd, GList *source_list, GtkWidget *parent);
41 void file_util_write_metadata(FileData *source_fd, GList *source_list, GtkWidget *parent, gboolean force_dialog, FileUtilDoneFunc done_func, gpointer done_data);
42
43 void file_util_create_dir(FileData *dir_fd, GtkWidget *parent, FileUtilDoneFunc done_func, gpointer done_data);
44
45 void file_util_rename_dir(FileData *source_fd, const gchar *new_path, GtkWidget *parent, FileUtilDoneFunc done_func, gpointer done_data);
46
47 /* these avoid the location entry dialog, list must be files only and
48  * dest_path must be a valid directory path
49 */
50 void file_util_move_simple(GList *list, const gchar *dest_path, GtkWidget *parent);
51 void file_util_copy_simple(GList *list, const gchar *dest_path, GtkWidget *parent);
52 void file_util_rename_simple(FileData *fd, const gchar *dest_path, GtkWidget *parent);
53
54 void file_util_start_editor_from_file(const gchar *key, FileData *fd, GtkWidget *parent);
55
56 /* working directory is used only as a fallback when the filelist is empty */
57 void file_util_start_editor_from_filelist(const gchar *key, GList *list, const gchar *working_directory, GtkWidget *parent);
58 void file_util_start_filter_from_file(const gchar *key, FileData *fd, const gchar *dest_path, GtkWidget *parent);
59 void file_util_start_filter_from_filelist(const gchar *key, GList *list, const gchar *dest_path, GtkWidget *parent);
60
61 void file_util_delete_dir(FileData *source_fd, GtkWidget *parent);
62
63 void file_util_copy_path_to_clipboard(FileData *fd);
64 void file_util_copy_path_list_to_clipboard(GList *list);
65
66 #endif
67 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */