| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 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 |