Debian Codegraph @

src/djwidget.h

raw symbols SCIP
1 /*
2 Copyright (C) 2005-2014 Mario Stephan <[email protected]>
3
4 This library is free software; you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as published
6 by the Free Software Foundation; either version 2.1 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18 #ifndef DJWIDGET_H
19 #define DJWIDGET_H
20
21 #include <QWidget>
22 #include "dj.h"
23 #include "track.h"
24
25 namespace Ui {
26 class DjWidget;
27 }
28
29 class DjWidget : public QWidget {
30 Q_OBJECT
31 public:
32 DjWidget(QWidget *parent = 0);
33 ~DjWidget();
34
35 void setDj(Dj *dj);
36 void slideCloseWidget(bool open);
37 Dj* dj();
38
39 public Q_SLOTS:
40 void activateDJ();
41 void deactivateDJ();
42 void updateView();
43 void clicked();
44
45 Q_SIGNALS:
46 void activated();
47 void deleted();
48 void started();
49 void filterCountChanged(int count);
50
51
52 protected:
53 void changeEvent(QEvent *event);
54 void mousePressEvent(QMouseEvent* event);
55 void keyPressEvent(QKeyEvent *e);
56
57 private slots:
58
59 void on_lblName_linkActivated(const QString &link);
60 void timerSlide_timeOut();
61 void on_pushClose_clicked();
62 void on_butPlayWidget_pressed();
63
64 private:
65 Ui::DjWidget *ui;
66 struct DjWidgetPrivate* p;
67 };
68
69 #endif // DJWIDGET_H