Debian Codegraph @

components/extension/tagedit/chooser/chooser_files.h

raw symbols SCIP
1 /* fre:ac - free audio converter
2 * Copyright (C) 2001-2017 Robert Kausch <[email protected]>
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation, either version 2 of
7 * the License, or (at your option) any later version.
8 *
9 * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
10 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
11 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */
12
13 #ifndef H_TAGEDIT_CHOOSER_FILES
14 #define H_TAGEDIT_CHOOSER_FILES
15
16 #include <smooth.h>
17 #include <boca.h>
18
19 using namespace smooth;
20 using namespace smooth::GUI;
21
22 using namespace BoCA;
23
24 #include "chooser.h"
25
26 namespace BoCA
27 {
28 class ChooserFiles : public Chooser
29 {
30 private:
31 Array<Track> tracks;
32 Array<Int> modified;
33
34 Array<String> extensions;
35
36 Array<Tree *, Void *> trees;
37
38 ListBox *list_directories;
39
40 Divider *div_split;
41
42 EditBox *edit_directory;
43 ListBox *list_files;
44 Text *text_nofiles;
45
46 Shortcut *shortcut_previous;
47 Shortcut *shortcut_next;
48 Shortcut *shortcut_first;
49 Shortcut *shortcut_last;
50
51 Button *btn_save;
52 Button *btn_saveall;
53
54 Int SaveFileTag(const Track &);
55
56 Void GetSupportedFileExtensions();
57 slots:
58 Void OnDragDivider(Int);
59
60 Void OnSelectDirectory(const Directory &);
61 Void OnSelectFile(ListEntry *);
62
63 Void OnShortcutPrevious();
64 Void OnShortcutNext();
65 Void OnShortcutFirst();
66 Void OnShortcutLast();
67
68 Void OnModifyTrack(const Track &);
69
70 Void OnSave();
71 Void OnSaveAll();
72
73 Void OnChangeSize(const Size &);
74 Void OnChangeLanguageSettings();
75 public:
76 ChooserFiles();
77 ~ChooserFiles();
78
79 Void ReselectEntry();
80 };
81 };
82
83 #endif