Sayonara Player
GUI_Bookmarks.h
1 /* GUI_Bookmarks.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 #ifndef GUI_BOOKMARKS_H
22 #define GUI_BOOKMARKS_H
23 
24 #include "Interfaces/PlayerPlugin/PlayerPlugin.h"
25 
26 class Bookmarks;
27 class Bookmark;
28 
29 namespace Ui { class GUI_Bookmarks; }
30 
37 {
38  Q_OBJECT
39 
40 private:
41  Bookmarks* _bookmarks=nullptr;
42  Ui::GUI_Bookmarks* ui=nullptr;
43 
44 
45 public:
46  explicit GUI_Bookmarks(QWidget *parent=nullptr);
47  virtual ~GUI_Bookmarks();
48 
49  QString get_name() const override;
50  QString get_display_name() const override;
51 
52 
53 private:
54  void retranslate_ui() override;
55  void init_ui() override;
56 
57 
58 private slots:
59  void combo_changed(int new_idx);
60  void next_clicked();
61  void prev_clicked();
62  void new_clicked();
63  void del_clicked();
64  void loop_clicked(bool);
65 
66  void prev_changed(const Bookmark& bookmark);
67  void next_changed(const Bookmark& bookmark);
68 
69  void disable_prev();
70  void disable_next();
71 
72  void bookmarks_changed();
73 };
74 
75 #endif // GUI_BOOKMARKS_H
Definition: Bookmark.h:32
Definition: ui_GUI_SomaFM.h:216
The GUI_Bookmarks class.
Definition: GUI_Bookmarks.h:35
Interface for PlayerPlugin classes. get_name() and language_changed() must be overwritten.
Definition: PlayerPlugin.h:38
The Bookmarks logic class.
Definition: Bookmarks.h:37
Definition: ui_GUI_Bookmarks.h:187