Sayonara Player
src
Gui
Library
TrackView.h
1
/* TrackView.h */
2
3
/* Copyright (C) 2011-2019 Lucio Carreras
4
*
5
* This file is part of sayonara player
6
*
7
* This program is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
*/
20
21
#ifndef TRACKVIEW_H
22
#define TRACKVIEW_H
23
24
#include "TableView.h"
25
#include "Utils/Pimpl.h"
26
#include "Utils/Library/Sortorder.h"
27
28
class
AbstractLibrary
;
29
namespace
Library
30
{
35
class
TrackView
:
36
public
TableView
37
{
38
Q_OBJECT
39
PIMPL(
TrackView
)
40
41
public
:
42
explicit
TrackView
(QWidget* parent=
nullptr
);
43
~
TrackView
()
override
;
44
45
private
:
46
AbstractLibrary
* library()
const override
;
47
//from Library::TableView
48
void
init_view(
AbstractLibrary
* library)
override
;
49
ColumnHeaderList
column_headers()
const override
;
50
IntList
column_header_sizes()
const override
;
51
void
save_column_header_sizes(
const
IntList
& sizes)
override
;
52
53
SortOrder
sortorder()
const override
;
54
void
save_sortorder(
SortOrder
s)
override
;
55
56
BoolList
visible_columns()
const override
;
57
void
save_visible_columns(
const
BoolList
& lst)
override
;
58
59
ContextMenu::Entries context_menu_entries()
const override
;
60
61
// from Library::ItemView
62
void
play_clicked()
override
;
63
void
play_new_tab_clicked()
override
;
64
void
play_next_clicked()
override
;
65
void
append_clicked()
override
;
66
void
selection_changed(
const
IndexSet
& lst)
override
;
67
void
refresh_clicked()
override
;
68
69
bool
is_mergeable()
const override
;
70
MD::Interpretation metadata_interpretation()
const override
;
71
};
72
}
73
74
#endif // TRACKVIEW_H
Library::TableView
The TableView class.
Definition:
TableView.h:36
Library::TrackView
The TrackView class.
Definition:
TrackView.h:35
Util::Set
A set structure. Inherited from std::set with some useful methods. For integer and String this set is...
Definition:
Set.h:35
QList
Definition:
EngineUtils.h:33
AbstractLibrary
Definition:
AbstractLibrary.h:41
Library
An interface class needed when implementing a library plugin.
Definition:
LocalLibraryWatcher.h:32
Library::SortOrder
SortOrder
The SortOrder enum.
Definition:
Sortorder.h:31
Generated on Thu Jan 30 2020 00:00:00 for Sayonara Player by
1.8.17