Sayonara Player
GUI_ControlsNew.h
1/* GUI_ControlsNew.h */
2
3/* Copyright (C) 2011-2020 Michael Lugmair (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_CONTROLSNEW_H
22#define GUI_CONTROLSNEW_H
23
24#include "GUI_ControlsBase.h"
25
26UI_FWD(GUI_ControlsNew)
27
28class MetaData;
29class MetaDataList;
30class PlayManager;
31
33 public GUI_ControlsBase
34{
35 Q_OBJECT
36 PIMPL(GUI_ControlsNew)
37 UI_CLASS_SHARED_PTR(GUI_ControlsNew)
38
39 public:
40 explicit GUI_ControlsNew(PlayManager* playManager, CoverDataProvider* coverProvider, QWidget* parent = nullptr);
41 ~GUI_ControlsNew() override;
42
43 [[nodiscard]] QLabel* labSayonara() const override;
44 [[nodiscard]] QLabel* labTitle() const override;
45 [[nodiscard]] QLabel* labVersion() const override;
46 [[nodiscard]] QLabel* labAlbum() const override;
47 [[nodiscard]] QLabel* labArtist() const override;
48 [[nodiscard]] QLabel* labWrittenBy() const override;
49 [[nodiscard]] QLabel* labBitrate() const override;
50 [[nodiscard]] QLabel* labFilesize() const override;
51 [[nodiscard]] QLabel* labCopyright() const override;
52 [[nodiscard]] QLabel* labCurrentTime() const override;
53 [[nodiscard]] QLabel* labMaxTime() const override;
54 [[nodiscard]] QWidget* widgetDetails() const override;
55 [[nodiscard]] Gui::SearchSlider* sliProgress() const override;
56 [[nodiscard]] Gui::SearchSlider* sliVolume() const override;
57 [[nodiscard]] QPushButton* btnMute() const override;
58 [[nodiscard]] QPushButton* btnPlay() const override;
59 [[nodiscard]] QPushButton* btnRecord() const override;
60 [[nodiscard]] QPushButton* btnPrevious() const override;
61 [[nodiscard]] QPushButton* btnNext() const override;
62 [[nodiscard]] QPushButton* btnStop() const override;
63 [[nodiscard]] Gui::CoverButton* btnCover() const override;
64 [[nodiscard]] Gui::RatingEditor* labRating() const override;
65
66 [[nodiscard]] bool isExternResizeAllowed() const override;
67
68 void ratingChangedHere(bool save);
69
70 protected:
71 void languageChanged() override;
72};
73
74#endif // GUI_CONTROLSNEW_H
Definition: CoverDataProvider.h:28
Definition: GUI_ControlsBase.h:52
Definition: GUI_ControlsNew.h:34
The CoverButton class.
Definition: CoverButton.h:40
This class is used for the actual editing of a RatingLabel While the RatingLabel class is used in pai...
Definition: RatingLabel.h:97
Definition: SearchSlider.h:35
The MetaDataList class.
Definition: MetaDataList.h:39
The MetaData class.
Definition: MetaData.h:47
Global handler for current playback state (Singleton)
Definition: PlayManager.h:36