Debian Codegraph @

src/knowthelist.h

raw symbols SCIP
1 /*
2 Copyright (C) 2005-2017 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 KNOWTHELIST_H
19 #define KNOWTHELIST_H
20
21 #include "collectionwidget.h"
22 #include "djbrowser.h"
23 #include "djsession.h"
24 #include "filebrowser.h"
25 #include "monitorplayer.h"
26 #include "playerwidget.h"
27 #include "playlist.h"
28 #include "playlistbrowser.h"
29 #include "settingsdialog.h"
30 #include "vumeter.h"
31
32 #include <QMainWindow>
33 #include <QSplitter>
34
35 namespace Ui {
36 class Knowthelist;
37 }
38
39 class Knowthelist : public QMainWindow {
40 Q_OBJECT
41
42 public:
43 explicit Knowthelist(QWidget* parent = 0);
44 ~Knowthelist();
45
46 private Q_SLOTS:
47 //Auto connect slots
48 void on_potHigh_1_valueChanged(int value);
49 void on_potMid_1_valueChanged(int value);
50 void on_potLow_1_valueChanged(int value);
51 void on_potHigh_2_valueChanged(int value);
52 void on_potMid_2_valueChanged(int value);
53 void on_potLow_2_valueChanged(int value);
54 void on_toggleAutoFade_toggled(bool checked);
55 void on_toggleAutoDJ_toggled(bool checked);
56 void on_toggleAGC_toggled(bool checked);
57 void on_potGain_2_valueChanged(int value);
58 void on_potGain_1_valueChanged(int value);
59 void on_sliMonitor_sliderMoved(int position);
60 void on_cmdMonitorPlay_clicked();
61 void on_cmdMonitorStop_clicked();
62 void on_cmdFade_clicked();
63
64 void timerMonitor_timeOut();
65 void timerAutoFader_timerOut();
66
67 void player_aboutTrackFinished();
68 void player1_gainChanged(double newGain);
69 void player2_gainChanged(double gainValue);
70 void player1_trackFinished();
71 void player2_trackFinished();
72 void player1_levelChanged(double left, double right);
73 void player2_levelChanged(double left, double right);
74
75 void slider1_valueChanged(int);
76 void slider2_valueChanged(int);
77 void sliFader_valueChanged(int);
78
79 void savePlaylists();
80 void monitorPlayer_trackTimeChanged(qint64, qint64);
81 void timerMonitor_loadFinished();
82 void startAutoDj();
83 void currentDjChanged(Dj*);
84
85 void timerGain1_timeOut();
86 void timerGain2_timeOut();
87 void Track_doubleClicked(Track*);
88 void trackList_wantLoad(Track*, QString target);
89 void Track_selectionChanged(Track*);
90 bool initMonitorPlayer();
91 void editSettings();
92 void on_cmdOptions_clicked();
93 void showCollectionSetup();
94 void onWantLoad(QList<Track*>, QString);
95 void on_lblSoundcard_linkActivated(const QString& link);
96
97 void on_sliMonitor_actionTriggered(int action);
98
99 void on_sliMonitorVolume_valueChanged(int value);
100
101 private:
102 Ui::Knowthelist* ui;
103 void createUI();
104 void fadeNow();
105 void setFaderModeToPlayer();
106 QTimer* timerAutoFader;
107 int m_xfadeDir;
108 int gain1Target;
109 int gain2Target;
110 bool isFading;
111 VUMeter* vuMeter1;
112 VUMeter* vuMeter2;
113 VUMeter* monitorMeter;
114 QTimer* timerMeter;
115 QTimer* timerMonitor;
116 QTimer* timerGain1;
117 QTimer* timerGain2;
118 Playlist* playList1;
119 Playlist* playList2;
120 Playlist* trackList;
121 Playlist* trackList2;
122
123 QSplitter* splitter;
124 QSplitter* splitterPlaylist;
125
126 CollectionWidget* collectionBrowser;
127 MonitorPlayer* monitorPlayer;
128 DjSession* djSession;
129 DjBrowser* djBrowser;
130
131 PlayerWidget* player1;
132 PlayerWidget* player2;
133 FileBrowser* filetree;
134 PlaylistBrowser* playlistBrowser;
135
136 SettingsDialog* preferences;
137
138 bool autoFadeOn;
139
140 QString m_AutoDJGenre;
141 int mAutofadeLength;
142 int mAboutFinishTime;
143 int mMinTracks;
144 bool wantSeek;
145 Track* m_MonitorTrack;
146
147 protected:
148 virtual void closeEvent(QCloseEvent*);
149
150 void changeVolumes();
151 void loadStartSettings();
152 void loadCurrentSettings();
153 };
154
155 #endif // KNOWTHELIST_H