Sayonara Player
TrackView.h
1 /* TrackView.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 TRACKVIEW_H
24 #define TRACKVIEW_H
25 
26 #include "TableView.h"
27 #include "Utils/Pimpl.h"
28 #include "Utils/Library/Sortorder.h"
29 
30 class AbstractLibrary;
31 namespace Library
32 {
33  class TrackView :
34  public TableView
35  {
36  Q_OBJECT
37  PIMPL(TrackView)
38 
39  public:
40  explicit TrackView(QWidget* parent=nullptr);
41  ~TrackView();
42 
43  private:
44  AbstractLibrary* library() const override;
45  //from Library::TableView
46  void init_view(AbstractLibrary* library) override;
47  ColumnHeaderList column_headers() const override;
48 
49  SortOrder sortorder() const override;
50  void save_sortorder(SortOrder s) override;
51 
52  BoolList visible_columns() const override;
53  void save_visible_columns(const BoolList& lst) override;
54 
55  LibraryContextMenu::Entries context_menu_entries() const override;
56 
57  // from Library::ItemView
58  void play_clicked() override;
59  void play_new_tab_clicked() override;
60  void play_next_clicked() override;
61  void append_clicked() override;
62  void selection_changed(const IndexSet& lst) override;
63  void refresh_clicked() override;
64  };
65 }
66 
67 #endif // TRACKVIEW_H
Definition: AbstractLibrary.h:39
Definition: ColumnHeader.h:93
A set structure. Inherited from std::set with some useful methods. For integer and String this set is...
Definition: Set.h:35
Definition: TableView.h:32
An interface class needed when implementing a library plugin.
Definition: CachingThread.h:29
Definition: TrackView.h:33
Definition: org_mpris_media_player2_adaptor.h:20