Sayonara Player
Loading...
Searching...
No Matches
TrackView.h
1/* TrackView.h */
2
3/* Copyright (C) 2011-2024 Michael Lugmair (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 LIBRARYTRACKVIEW_H
22#define LIBRARYTRACKVIEW_H
23
24#include "TableView.h"
25#include "Utils/Pimpl.h"
26#include "Utils/Library/Sortorder.h"
27
28class AbstractLibrary;
29namespace Library
30{
31 class TrackView :
32 public TableView
33 {
34 Q_OBJECT
35 PIMPL(TrackView)
36
37 public:
38 explicit TrackView(QWidget* parent = nullptr);
39 ~TrackView() override;
40
41 protected:
42 void initView(AbstractLibrary* library) override;
43 [[nodiscard]] ItemModel* itemModel() const override;
44
45 [[nodiscard]] ColumnHeaderList columnHeaders() const override;
46 [[nodiscard]] QByteArray columnHeaderState() const override;
47 void saveColumnHeaderState(const QByteArray& state) override;
48 [[nodiscard]] VariableSortorder sortorder() const override;
49 void applySortorder(VariableSortorder s) override;
50
51 [[nodiscard]] bool autoResizeState() const override;
52 void saveAutoResizeState(bool b) override;
53
54 [[nodiscard]] ContextMenu::Entries contextMenuEntries() const override;
55
56 [[nodiscard]] AbstractLibrary* library() const override;
57 [[nodiscard]] PlayActionEventHandler::TrackSet trackSet() const override;
58 void triggerSelectionChange(const IndexSet& lst) override;
59 void refreshView() override;
60
61 [[nodiscard]] bool isMergeable() const override;
62 [[nodiscard]] MD::Interpretation metadataInterpretation() const override;
63 };
64}
65
66#endif // LIBRARYTRACKVIEW_H
Definition AbstractLibrary.h:41
Definition ItemModel.h:40
Definition TableView.h:36
Definition TrackView.h:33
Definition EngineUtils.h:33
A set structure. Inherited from std::set with some useful methods. For integer and String this set is...
Definition Set.h:37