Sayonara Player
Toggle main menu visibility
Loading...
Searching...
No Matches
src
Gui
Library
TableView
ArtistView.h
1
/* ArtistView.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 ARTISTVIEW_H
22
#define ARTISTVIEW_H
23
24
#include "TableView.h"
25
#include "Utils/Pimpl.h"
26
#include "Utils/Library/Sortorder.h"
27
28
namespace
Library
29
{
30
class
MergeData
;
31
32
class
ArtistView :
33
public
TableView
34
{
35
Q_OBJECT
36
PIMPL(ArtistView)
37
38
public
:
39
explicit
ArtistView(QWidget* parent =
nullptr
);
40
~ArtistView()
override
;
41
42
protected
:
43
void
initView(
AbstractLibrary
* library)
override
;
44
void
initContextMenu()
override
;
45
[[nodiscard]]
ItemModel
* itemModel()
const override
;
46
47
[[nodiscard]] ColumnHeaderList columnHeaders()
const override
;
48
[[nodiscard]] QByteArray columnHeaderState()
const override
;
49
void
saveColumnHeaderState(
const
QByteArray& state)
override
;
50
[[nodiscard]] VariableSortorder sortorder()
const override
;
51
void
applySortorder(VariableSortorder s)
override
;
52
53
[[nodiscard]]
bool
autoResizeState()
const override
;
54
void
saveAutoResizeState(
bool
b)
override
;
55
56
[[nodiscard]]
AbstractLibrary
* library()
const override
;
57
[[nodiscard]] PlayActionEventHandler::TrackSet trackSet()
const override
;
58
void
triggerSelectionChange(
const
IndexSet& indexes)
override
;
59
void
refreshView()
override
;
60
61
[[nodiscard]]
bool
isMergeable()
const override
;
62
void
runMergeOperation(
const
Library::MergeData
& mergedata)
override
;
63
64
[[nodiscard]] MD::Interpretation metadataInterpretation()
const override
;
65
66
void
languageChanged()
override
;
67
68
private
slots:
69
void
useClearButtonChanged();
70
void
showAlbumArtistsChanged();
71
void
albumArtistsTriggered(
bool
b);
72
};
73
}
74
75
#endif
// ARTISTVIEW_H
AbstractLibrary
Definition
AbstractLibrary.h:41
Library::ItemModel
Definition
ItemModel.h:40
Library::MergeData
Definition
MergeData.h:33
Generated on
for Sayonara Player by
1.17.0