Debian Codegraph @

src/playerwidget.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 PLAYERWIDGET_H
19 #define PLAYERWIDGET_Hcxx . . $ `src/playerwidget.h:19:9`!
20
21 #include <QLabel>
22 #include <QStyle>
23 #include <QToolButton>
24 #include <QVBoxLayout>
25 #include <QWidget>
26 #include <QtCore/QTimer>
27
28 #include "player.h"cxx . . $ `<file>/src/player.h`/
29 #include "vumeter.h"cxx . . $ `<file>/src/vumeter.h`/
30
31 #include "playlistitem.h"cxx . . $ `<file>/src/playlistitem.h`/
32 #include "trackanalyser.h"cxx . . $ `<file>/src/trackanalyser.h`/
33
34 namespace Uicxx . . $ Ui/ {
35 class PlayerWidgetcxx . . $ Ui/PlayerWidget#;
36 }
37
38 class PlayerWidgetcxx . . $ PlayerWidget# : public QWidgetcxx . . $ QWidget# {
39 Q_OBJECTcxx . . $ PlayerWidget#tr(75d9f1c324b4579d).
40 public:
41 explicit PlayerWidgetcxx . . $ PlayerWidget#PlayerWidget(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget#* parent = 0);
42 ~cxx . . $ PlayerWidget#`~PlayerWidget`(ced63f7c635d850d).PlayerWidgetcxx . . $ PlayerWidget#();
43
44 enum EqBandcxx . . $ PlayerWidget#EqBand# { EQ_Lowcxx . . $ PlayerWidget#EQ_Low. = 0,
45 EQ_Midcxx . . $ PlayerWidget#EQ_Mid. = 1,
46 EQ_Highcxx . . $ PlayerWidget#EQ_High. = 2
47 };
48
49 float currentLevelLeftcxx . . $ PlayerWidget#currentLevelLeft(9b8c9e39889c762c).();
50 float currentLevelRightcxx . . $ PlayerWidget#currentLevelRight(9b8c9e39889c762c).();
51 void loadFilecxx . . $ PlayerWidget#loadFile(fe09fe9c2ffe9947).(QUrlcxx . . $ QUrl#);
52
53 void playcxx . . $ PlayerWidget#play(49f6e7a06ebc5aa8).();
54 void stopcxx . . $ PlayerWidget#stop(49f6e7a06ebc5aa8).();
55 void pausecxx . . $ PlayerWidget#pause(49f6e7a06ebc5aa8).();
56 bool isStartedcxx . . $ PlayerWidget#isStarted(c9857a73d68e59ba).() { return m_isStartedcxx . . $ PlayerWidget#m_isStarted.; }
57
58 void setTrackFinishEmitTimecxx . . $ PlayerWidget#setTrackFinishEmitTime(d4f767463ce0a6b3).(const int sec);
59 int TrackFinishEmitTimecxx . . $ PlayerWidget#TrackFinishEmitTime(b126dc7c1de90089).() { return mTrackFinishEmitTimecxx . . $ PlayerWidget#mTrackFinishEmitTime.; }
60 void setVolumecxx . . $ PlayerWidget#setVolume(ba8836b59fb42830).(double volume);
61 void setGaincxx . . $ PlayerWidget#setGain(ba8836b59fb42830).(double gain);
62 void setSkipSilentEndcxx . . $ PlayerWidget#setSkipSilentEnd(b45ddcbc8423892c).(bool checked)
63 {
64 m_skipSilentEndcxx . . $ PlayerWidget#m_skipSilentEnd. = checked;
65 setPositionMarkerscxx . . $ PlayerWidget#setPositionMarkers(49f6e7a06ebc5aa8).();
66 }
67 void setSkipSilentBegincxx . . $ PlayerWidget#setSkipSilentBegin(b45ddcbc8423892c).(bool checked)
68 {
69 m_skipSilentBegincxx . . $ PlayerWidget#m_skipSilentBegin. = checked;
70 setPositionMarkerscxx . . $ PlayerWidget#setPositionMarkers(49f6e7a06ebc5aa8).();
71 }
72
73 public Q_SLOTScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:92:10`!:
74 void loadTrackcxx . . $ PlayerWidget#loadTrack(c7ced298c7283c1a).(Trackcxx . . $ Track#*);
75 void analyseGainFinishedcxx . . $ PlayerWidget#analyseGainFinished(49f6e7a06ebc5aa8).();
76 void setEqualizercxx . . $ PlayerWidget#setEqualizer(67250ef987684b33).(EqBandcxx . . $ PlayerWidget#EqBand#, int);
77 void setInfocxx . . $ PlayerWidget#setInfo(6119850a8ae4b19).(QPaircxx . . $ QPair#<int, int> info);
78
79 Q_SIGNALScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:93:10`!:
80 void trackFinishedcxx . . $ PlayerWidget#trackFinished(49f6e7a06ebc5aa8).();
81 void aboutFinishedcxx . . $ PlayerWidget#aboutFinished(49f6e7a06ebc5aa8).();
82 void trackDroppedcxx . . $ PlayerWidget#trackDropped(c7ced298c7283c1a).(Trackcxx . . $ Track#*);
83 void trackPlayedcxx . . $ PlayerWidget#trackPlayed(c7ced298c7283c1a).(Trackcxx . . $ Track#*);
84 void forwardPressedcxx . . $ PlayerWidget#forwardPressed(49f6e7a06ebc5aa8).();
85 void rewindPressedcxx . . $ PlayerWidget#rewindPressed(49f6e7a06ebc5aa8).();
86 void statusChangedcxx . . $ PlayerWidget#statusChanged(b45ddcbc8423892c).(bool);
87 void gainChangedcxx . . $ PlayerWidget#gainChanged(ba8836b59fb42830).(double);
88 void levelChangedcxx . . $ PlayerWidget#levelChanged(bc12c9ec15586e6a).(double, double);
89
90 private Q_SLOTScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:92:10`!:
91
92 void on_butCue_clickedcxx . . $ PlayerWidget#on_butCue_clicked(49f6e7a06ebc5aa8).();
93 void on_sliPosition_actionTriggeredcxx . . $ PlayerWidget#on_sliPosition_actionTriggered(d4f767463ce0a6b3).(int action);
94 void updateTimeAndPositionDisplaycxx . . $ PlayerWidget#updateTimeAndPositionDisplay(b45ddcbc8423892c).(bool isPassive = true);
95 void playerFinishedcxx . . $ PlayerWidget#playerFinished(49f6e7a06ebc5aa8).();
96 void playerErrorcxx . . $ PlayerWidget#playerError(49f6e7a06ebc5aa8).();
97 void playerLoadedcxx . . $ PlayerWidget#playerLoaded(49f6e7a06ebc5aa8).();
98 void timerLevel_timeOutcxx . . $ PlayerWidget#timerLevel_timeOut(49f6e7a06ebc5aa8).();
99 void timerPosition_timeOutcxx . . $ PlayerWidget#timerPosition_timeOut(49f6e7a06ebc5aa8).();
100 void on_sliPosition_sliderMovedcxx . . $ PlayerWidget#on_sliPosition_sliderMoved(d4f767463ce0a6b3).(int);
101
102 void on_butPlay_clickedcxx . . $ PlayerWidget#on_butPlay_clicked(49f6e7a06ebc5aa8).();
103 void on_butRew_clickedcxx . . $ PlayerWidget#on_butRew_clicked(49f6e7a06ebc5aa8).();
104 void on_butFwd_clickedcxx . . $ PlayerWidget#on_butFwd_clicked(49f6e7a06ebc5aa8).();
105
106 protected:
107 VUMetercxx . . $ VUMeter#* vuMetercxx . . $ PlayerWidget#vuMeter.;
108
109 long songTimecxx . . $ PlayerWidget#songTime.;
110
111 private:
112 //ToDo: move privates to struct Private
113 Uicxx . . $ Ui/::PlayerWidgetcxx . . $ Ui/PlayerWidget#* uicxx . . $ PlayerWidget#ui.;
114 QToolButtoncxx . . $ QToolButton#* initButtoncxx . . $ PlayerWidget#initButton(89f730459e357e6a).(QStylecxx . . $ QStyle#::StandardPixmapcxx . . $ QStyle#StandardPixmap# icon, const QStringcxx . . $ QString#& tip,
115 QObjectcxx . . $ QObject#* dstobj, const char* slot_method, QLayoutcxx . . $ QLayout#* layout);
116
117 void createUIcxx . . $ PlayerWidget#createUI(f55ea20d066d7905).(QBoxLayoutcxx . . $ QBoxLayout#* appLayout);
118 void resizeEventcxx . . $ PlayerWidget#resizeEvent(eeeec21cf8dc0387).(QResizeEventcxx . . $ QResizeEvent#* e);
119 void drawTitlecxx . . $ PlayerWidget#drawTitle(49f6e7a06ebc5aa8).();
120
121 Playercxx . . $ Player#* playercxx . . $ PlayerWidget#player.;
122 TrackAnalysercxx . . $ TrackAnalyser#* trackanalysercxx . . $ PlayerWidget#trackanalyser.;
123 float m_levelcxx . . $ PlayerWidget#m_level.;
124 QLabelcxx . . $ QLabel#* m_positionLabelcxx . . $ PlayerWidget#m_positionLabel.;
125 QLabelcxx . . $ QLabel#* m_volumeLabelcxx . . $ PlayerWidget#m_volumeLabel.;
126
127 QTimercxx . . $ QTimer#* timerLevelcxx . . $ PlayerWidget#timerLevel.;
128 QTimercxx . . $ QTimer#* timerPositioncxx . . $ PlayerWidget#timerPosition.;
129 void dropEventcxx . . $ PlayerWidget#dropEvent(163a41ccaa120447).(QDropEventcxx . . $ QDropEvent#*);
130 void dragEnterEventcxx . . $ PlayerWidget#dragEnterEvent(f87bde08e579de69).(QDragEnterEventcxx . . $ QDragEnterEvent#*);
131 void dragMoveEventcxx . . $ PlayerWidget#dragMoveEvent(211fc5550e6ec45c).(QDragMoveEventcxx . . $ QDragMoveEvent#*);
132 void setPositionMarkerscxx . . $ PlayerWidget#setPositionMarkers(49f6e7a06ebc5aa8).();
133 int mTrackFinishEmitTimecxx . . $ PlayerWidget#mTrackFinishEmitTime.;
134 Trackcxx . . $ Track#* m_CurrentTrackcxx . . $ PlayerWidget#m_CurrentTrack.;
135 long remainCueTimecxx . . $ PlayerWidget#remainCueTime.;
136 bool m_isStartedcxx . . $ PlayerWidget#m_isStarted.;
137 bool m_isHangingcxx . . $ PlayerWidget#m_isHanging.;
138 bool m_skipSilentEndcxx . . $ PlayerWidget#m_skipSilentEnd.;
139 bool m_skipSilentBegincxx . . $ PlayerWidget#m_skipSilentBegin.;
140
141 struct PlayerWidgetPrivatecxx . . $ PlayerWidgetPrivate#* pcxx . . $ PlayerWidget#p.;
142 };
143
144 #endif // PLAYERWIDGET_H