| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
#ifndef H_FREAC_JOBLIST |
| 14 |
#define H_FREAC_JOBLIST |
| 15 |
|
| 16 |
#include <smooth.h> |
| 17 |
#include <boca.h> |
| 18 |
|
| 19 |
using namespace smooth; |
| 20 |
using namespace smooth::GUI; |
| 21 |
|
| 22 |
namespace freac |
| 23 |
{ |
| 24 |
class JobList : public ListBox |
| 25 |
{ |
| 26 |
private: |
| 27 |
DropArea *droparea; |
| 28 |
Text *text; |
| 29 |
|
| 30 |
Button *button_sel_all; |
| 31 |
Button *button_sel_none; |
| 32 |
Button *button_sel_toggle; |
| 33 |
|
| 34 |
Array<BoCA::Track> tracks; |
| 35 |
|
| 36 |
UnsignedInt32 headerTabsHash; |
| 37 |
|
| 38 |
Bool AddTrack(const BoCA::Track &); |
| 39 |
Bool RemoveTrack(const BoCA::Track &); |
| 40 |
|
| 41 |
Void FindTracksByPattern(Array<String> &, const String &, const String &, Bool) const; |
| 42 |
|
| 43 |
Bool LoadFromPlaylist(const String &); |
| 44 |
Bool SaveToPlaylist(const String &) const; |
| 45 |
|
| 46 |
Void AddHeaderTabs(); |
| 47 |
Void UpdateTextLine(); |
| 48 |
|
| 49 |
static Bool SortsAfter(const String &, const String &); |
| 50 |
static String GetEntryText(const BoCA::Track &); |
| 51 |
public: |
| 52 |
JobList(const Point &, const Size &); |
| 53 |
virtual ~JobList(); |
| 54 |
|
| 55 |
Int GetNOfTracks() const; |
| 56 |
const BoCA::Track &GetNthTrack(Int) const; |
| 57 |
|
| 58 |
const Array<BoCA::Track> *GetTrackList(); |
| 59 |
|
| 60 |
Bool RemoveNthTrack(Int); |
| 61 |
Bool RemoveAllTracks(); |
| 62 |
|
| 63 |
const BoCA::Track &GetSelectedTrack() const; |
| 64 |
|
| 65 |
Int SetMetrics(const Point &, const Size &); |
| 66 |
|
| 67 |
Void AddTrackByDialog(); |
| 68 |
Void AddTracksByPattern(const String &, const String &, Bool); |
| 69 |
|
| 70 |
Void UpdateTrackInfo(const BoCA::Track &); |
| 71 |
|
| 72 |
Void RemoveSelectedTrack(); |
| 73 |
|
| 74 |
ListEntry *GetEntryByTrack(const BoCA::Track &) const; |
| 75 |
slots: |
| 76 |
Bool AddTracksByFileNames(const Array<String> &); |
| 77 |
Void AddTracksByDragAndDrop(const Array<String> &); |
| 78 |
|
| 79 |
Void SelectAll(); |
| 80 |
Void SelectNone(); |
| 81 |
Void ToggleSelection(); |
| 82 |
|
| 83 |
Void OpenJobList(); |
| 84 |
Void SaveJobList(); |
| 85 |
|
| 86 |
Void StartJobRemoveAllTracks(); |
| 87 |
|
| 88 |
Void OnRegister(Widget *); |
| 89 |
Void OnUnregister(Widget *); |
| 90 |
|
| 91 |
Void OnSelectEntry(); |
| 92 |
Void OnMarkEntry(ListEntry *); |
| 93 |
|
| 94 |
Void OnClickTab(Int); |
| 95 |
|
| 96 |
Void OnComponentSelectTrack(const BoCA::Track &); |
| 97 |
|
| 98 |
Void OnComponentMarkTrack(const BoCA::Track &); |
| 99 |
Void OnComponentUnmarkTrack(const BoCA::Track &); |
| 100 |
|
| 101 |
Void OnChangeConfigurationSettings(); |
| 102 |
Void OnChangeLanguageSettings(); |
| 103 |
Void OnChangeHeaderColumns(); |
| 104 |
}; |
| 105 |
}; |
| 106 |
|
| 107 |
#endif |