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 Library::TableView
34  {
35  PIMPL(ArtistView)
36  public:
37  explicit ArtistView(QWidget* parent=nullptr);
38  ~ArtistView();
39 
40  // ItemView interface
41  protected:
42  void selection_changed(const IndexSet& indexes) override;
43  void merge_action_triggered() override;
44  void play_next_clicked() override;
45  void middle_clicked() override;
46  void append_clicked() override;
47  void refresh_clicked() override;
48  void play_clicked() override;
49  void play_new_tab_clicked() override;
50 
51  // TableView interface
52  protected:
53  void init_view(AbstractLibrary* library) override;
54  ColumnHeaderList column_headers() const override;
55  BoolList shown_columns() const override;
56  Library::SortOrder sortorder() const override;
57 
58  void columns_changed() override;
59  void sortorder_changed(SortOrder s) override;
60 
61  private slots:
62  void double_clicked(const QModelIndex& index);
63  void artists_ready();
64  void use_clear_button_changed();
65  };
66 }
67 
68 #endif // ARTISTVIEW_H
Definition: AbstractLibrary.h:47
Definition: ArtistView.h:32
Definition: ColumnHeader.h:90
Definition: TableView.h:32
An interface class needed when implementing a library plugin.
Definition: LibraryManager.h:36
A set structure. Inherited from std::set with some useful methods. For integer and String this set is...
Definition: AbstractPlaylist.h:36