| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
#ifndef H_TAGEDIT_LAYER |
| 14 |
#define H_TAGEDIT_LAYER |
| 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/chooser.h" |
| 25 |
#include "editor/editor.h" |
| 26 |
|
| 27 |
namespace BoCA |
| 28 |
{ |
| 29 |
class LayerTags : public Layer |
| 30 |
{ |
| 31 |
private: |
| 32 |
Array<Chooser *, Void *> choosers; |
| 33 |
Array<Editor *, Void *> editors; |
| 34 |
|
| 35 |
TabWidget *tab_mode; |
| 36 |
TabWidget *tab_editor; |
| 37 |
signals: |
| 38 |
Signal1<Void, const Track &> onSelectTrack; |
| 39 |
Signal1<Void, const Track &> onSelectAlbum; |
| 40 |
Signal0<Void> onSelectNone; |
| 41 |
callbacks: |
| 42 |
Callback0<Bool> allowTrackChangeByArrowKey; |
| 43 |
Callback0<Bool> allowTrackRemoveByDeleteKey; |
| 44 |
slots: |
| 45 |
Void OnSelectTab(const Widget *); |
| 46 |
|
| 47 |
Void OnModifyTrack(const Track &); |
| 48 |
|
| 49 |
Void OnChangeSize(const Size &); |
| 50 |
Void OnChangeLanguageSettings(); |
| 51 |
|
| 52 |
Bool AllowTrackChangeByArrowKey(); |
| 53 |
Bool AllowTrackRemoveByDeleteKey(); |
| 54 |
public: |
| 55 |
LayerTags(); |
| 56 |
~LayerTags(); |
| 57 |
}; |
| 58 |
}; |
| 59 |
|
| 60 |
#endif |