1 /* 2 * EasyTAG - Tag editor for MP3 and Ogg Vorbis files 3 * Copyright (C) 2000-2003 Jerome Couderc <easytag@gmail.com> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18 */ 19 20 21 #ifndef ET_SCAN_DIALOG_H_ 22 #define ET_SCAN_DIALOG_H_ 23 24 #include <gtk/gtk.h> 25 26 G_BEGIN_DECLS 27 28 #include "file.h" 29 #include "setting.h" 30 31 #define ET_TYPE_SCAN_DIALOG (et_scan_dialog_get_type ()) 32 #define ET_SCAN_DIALOG(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), ET_TYPE_SCAN_DIALOG, EtScanDialog)) 33 34 typedef struct _EtScanDialog EtScanDialog; 35 typedef struct _EtScanDialogClass EtScanDialogClass; 36 37 struct _EtScanDialog 38 { 39 /*< private >*/ 40 GtkDialog parent_instance; 41 }; 42 43 struct _EtScanDialogClass 44 { 45 /*< private >*/ 46 GtkDialogClass parent_class; 47 }; 48 49 GType et_scan_dialog_get_type (void); 50 EtScanDialog *et_scan_dialog_new (GtkWindow *parent); 51 void et_scan_dialog_apply_changes (EtScanDialog *self); 52 void et_scan_dialog_scan_selected_files (EtScanDialog *self); 53 void et_scan_dialog_update_previews (EtScanDialog *self); 54 55 void Scan_Select_Mode_And_Run_Scanner (EtScanDialog *self, ET_File *ETFile); 56 gchar * et_scan_generate_new_filename_from_mask (const ET_File *ETFile, const gchar *mask, gboolean no_dir_check_or_conversion); 57 gchar * et_scan_generate_new_directory_name_from_mask (const ET_File *ETFile, const gchar *mask, gboolean no_dir_check_or_conversion); 58 59 void entry_check_rename_file_mask (GtkEntry *entry, gpointer user_data); 60 61 G_END_DECLS 62 63 #endif /* ET_SCAN_DIALOG_H_ */ 64