Sayonara Player
ArtistView.h
1 /* ArtistView.h */
2 
3 /* Copyright (C) 2011-2017 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 
22 
23 #ifndef ARTISTVIEW_H
24 #define ARTISTVIEW_H
25 
26 #include "TableView.h"
27 #include "Utils/Pimpl.h"
28 #include "Utils/Library/Sortorder.h"
29 
30 namespace Library
31 {
32  class ArtistView :
33  public TableView
34  {
35  PIMPL(ArtistView)
36  public:
37  explicit ArtistView(QWidget* parent=nullptr);
38  ~ArtistView();
39 
40  // ItemView interface
41  protected:
42  AbstractLibrary* library() const override;
43  void selection_changed(const IndexSet& indexes) override;
44  void play_next_clicked() override;
45  void append_clicked() override;
46  void refresh_clicked() override;
47  void play_clicked() override;
48  void play_new_tab_clicked() override;
49  void run_merge_operation(const MergeData& mergedata) override;
50 
51  protected:
52  void init_view(AbstractLibrary* library) override;
53  ColumnHeaderList column_headers() const override;
54 
55  void init_context_menu() override;
56 
57  BoolList visible_columns() const override;
58  void save_visible_columns(const BoolList& columns) override;
59 
60  SortOrder sortorder() const override;
61  void save_sortorder(SortOrder s) override;
62 
63  void language_changed() override;
64 
65  private slots:
66  void use_clear_button_changed();
67  void album_artists_changed();
68  void album_artists_triggered(bool b);
69  };
70 }
71 
72 #endif // ARTISTVIEW_H
Definition: ItemView.h:66
Definition: AbstractLibrary.h:47
Definition: ArtistView.h:32
Definition: ColumnHeader.h:95
Definition: TableView.h:32
An interface class needed when implementing a library plugin.
Definition: CachingThread.h:31
A set structure. Inherited from std::set with some useful methods. For integer and String this set is...
Definition: AbstractPlaylist.h:38