Debian Codegraph @

components/extension/tagedit/layer.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_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