Sayonara Player
GUI_Stream.h
1 /* GUI_Stream.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_STREAM_H_
22 #define GUI_STREAM_H_
23 
24 #include "GUI_AbstractStream.h"
25 
26 namespace Ui { class GUI_Stream; }
27 
28 class GUI_Stream :
29  public GUI_AbstractStream
30 {
31  Q_OBJECT
32 
33 public:
34  explicit GUI_Stream(QWidget *parent=nullptr);
35  virtual ~GUI_Stream();
36 
37  QString get_name() const override;
38  QString get_display_name() const override;
39 
40 private:
41  Ui::GUI_Stream* ui=nullptr;
42 
43  void init_ui() override;
44  void retranslate_ui() override;
45  QString get_title_fallback_name() const override;
46 
47  // GUI_AbstractStream interface
48  protected:
49  QLineEdit* le_url() override;
50  QComboBox* combo_stream() override;
51  QPushButton* btn_play() override;
52  MenuToolButton* btn_menu() override;
53  QLabel* lab_listen() override;
54 };
55 
56 #endif /* GUI_STREAM_H_ */
Definition: GUI_AbstractStream.h:34
Definition: GUI_SomaFM.h:34
Definition: GUI_Stream.h:28
This is the little button you often see near comboboxes It opens up a menu when clicked. The actions in the menu a configurable.
Definition: MenuTool.h:32
Definition: ui_GUI_Stream.h:113