Sayonara Player
Toggle main menu visibility
Loading...
Searching...
No Matches
src
Gui
Library
TableView
AlbumView.h
1
/* AlbumView.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 LIBRARYVIEWALBUM_H
22
#define LIBRARYVIEWALBUM_H
23
24
#include "TableView.h"
25
#include "Utils/MetaData/Album.h"
26
27
#include <QList>
28
29
namespace
Library
30
{
31
class
DiscPopupMenu
;
32
class
MergeData
;
33
34
class
AlbumView :
35
public
TableView
36
{
37
Q_OBJECT
38
PIMPL(AlbumView)
39
40
signals:
41
void
sigDiscPressed(Disc d);
42
43
public
:
44
explicit
AlbumView(QWidget* parent =
nullptr
);
45
~AlbumView()
override
;
46
47
protected
:
48
void
initView(
AbstractLibrary
* library)
override
;
49
[[nodiscard]]
ItemModel
* itemModel()
const override
;
50
51
[[nodiscard]] ColumnHeaderList columnHeaders()
const override
;
52
[[nodiscard]] QByteArray columnHeaderState()
const override
;
53
void
saveColumnHeaderState(
const
QByteArray& state)
override
;
54
[[nodiscard]] VariableSortorder sortorder()
const override
;
55
void
applySortorder(VariableSortorder s)
override
;
56
57
[[nodiscard]]
bool
autoResizeState()
const override
;
58
void
saveAutoResizeState(
bool
b)
override
;
59
60
[[nodiscard]]
AbstractLibrary
* library()
const override
;
61
[[nodiscard]] PlayActionEventHandler::TrackSet trackSet()
const override
;
62
void
triggerSelectionChange(
const
IndexSet& indexes)
override
;
63
void
refreshView()
override
;
64
65
[[nodiscard]]
bool
isMergeable()
const override
;
66
void
runMergeOperation(
const
MergeData
& mergedata)
override
;
67
68
[[nodiscard]] MD::Interpretation metadataInterpretation()
const override
;
69
70
void
showContextMenu(
const
QPoint& p)
override
;
71
72
private
slots:
73
void
indexClicked(
const
QModelIndex& idx);
74
void
useClearButtonChanged();
75
76
private
:
// NOLINT(*-redundant-access-specifiers)
77
void
calcDiscmenuPoint(
const
QModelIndex& idx);
78
void
deleteDiscmenu();
79
void
initDiscmenu(
const
QModelIndex& idx);
80
void
showDiscmenu();
81
};
82
}
83
84
#endif
// LIBRARYVIEWALBUM_H
AbstractLibrary
Definition
AbstractLibrary.h:41
Library::DiscPopupMenu
A menu containing various DiscAction objects.
Definition
DiscPopupMenu.h:54
Library::ItemModel
Definition
ItemModel.h:40
Library::MergeData
Definition
MergeData.h:33
Generated on
for Sayonara Player by
1.17.0