Sayonara Player
SayonaraWidget.h
1 /* SayonaraWidget.h */
2 
3 /* Copyright (C) 2011-2016 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 SAYONARAWIDGET_H
24 #define SAYONARAWIDGET_H
25 
26 #include <QObject>
27 #include <QWidget>
28 #include <QMainWindow>
29 
30 #include "SayonaraWidgetTemplate.h"
31 
32 
33 class SayonaraDialog;
34 
42  public SayonaraWidgetTemplate<QWidget>
43 {
44 
45  Q_OBJECT
46 
47 public:
48  SayonaraWidget(QWidget* parent=nullptr);
49  virtual ~SayonaraWidget();
50 
51  SayonaraDialog* box_into_dialog();
52 
53 
54 protected:
55  SayonaraDialog* _boxed_dialog=nullptr;
56 
57 protected slots:
58  virtual void language_changed();
59  virtual void skin_changed();
60 };
61 
66 class SayonaraMainWindow : public SayonaraWidgetTemplate<QMainWindow> {
67 
68  Q_OBJECT
69 
70 public:
71  SayonaraMainWindow(QWidget* parent=nullptr);
72  virtual ~SayonaraMainWindow();
73 
74  void raise();
75 
76 
77 protected slots:
78  virtual void language_changed();
79  virtual void skin_changed();
80 };
81 
82 
83 #endif // SAYONARAWIDGET_H
Template for Sayonara Widgets. This template is responsible for holding a reference to the settings a...
Definition: SayonaraWidgetTemplate.h:46
Widget with Settings connection. Also contains triggers for language_changed() and skin_changed() wi...
Definition: SayonaraWidget.h:41
Dialog with Settings connection. Also contains triggers for language_changed() and skin_changed()...
Definition: SayonaraDialog.h:38
The SayonaraMainWindow class.
Definition: SayonaraWidget.h:66