Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
JuK
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Multimedia
JuK
Commits
8237fe93
Commit
8237fe93
authored
Apr 18, 2004
by
Scott Wheeler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update the system tray when chaning the playing status via the DCOP interface.
svn path=/trunk/kdemultimedia/juk/; revision=304647
parent
b101b77e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
4 deletions
+17
-4
playermanager.cpp
playermanager.cpp
+6
-0
playermanager.h
playermanager.h
+5
-0
systemtray.cpp
systemtray.cpp
+6
-4
No files found.
playermanager.cpp
View file @
8237fe93
...
...
@@ -215,6 +215,8 @@ void PlayerManager::play(const FileHandle &file)
m_sliderAction
->
trackPositionSlider
()
->
setEnabled
(
true
);
m_timer
->
start
(
m_pollInterval
);
emit
signalPlay
();
}
void
PlayerManager
::
play
()
...
...
@@ -236,6 +238,8 @@ void PlayerManager::pause()
action
(
"pause"
)
->
setEnabled
(
false
);
player
()
->
pause
();
emit
signalPause
();
}
void
PlayerManager
::
stop
()
...
...
@@ -256,6 +260,8 @@ void PlayerManager::stop()
m_statusLabel
->
clear
();
player
()
->
stop
();
emit
signalStop
();
}
void
PlayerManager
::
setVolume
(
float
volume
)
...
...
playermanager.h
View file @
8237fe93
...
...
@@ -74,6 +74,11 @@ public slots:
void
volumeDown
();
void
mute
();
signals:
void
signalPlay
();
void
signalPause
();
void
signalStop
();
private:
Player
*
player
()
const
;
void
setup
();
...
...
systemtray.cpp
View file @
8237fe93
...
...
@@ -17,6 +17,8 @@
#include <kiconloader.h>
#include <kpassivepopup.h>
#include <kiconeffect.h>
#include <kaction.h>
#include <kpopupmenu.h>
#include <kdebug.h>
#include <qhbox.h>
...
...
@@ -25,7 +27,7 @@
#include "systemtray.h"
#include "actioncollection.h"
#include "
juk
.h"
#include "
playermanager
.h"
using
namespace
ActionCollection
;
...
...
@@ -53,9 +55,9 @@ SystemTray::SystemTray(QWidget *parent, const char *name) : KSystemTray(parent,
KPopupMenu
*
cm
=
contextMenu
();
connect
(
action
(
"play"
),
SIGNAL
(
activated
()),
this
,
SLOT
(
slotPlay
()));
connect
(
action
(
"pause"
),
SIGNAL
(
activated
()),
this
,
SLOT
(
slotPause
()));
connect
(
action
(
"stop"
),
SIGNAL
(
activated
()),
this
,
SLOT
(
slotStop
()));
connect
(
PlayerManager
::
instance
(),
SIGNAL
(
signalPlay
()),
this
,
SLOT
(
slotPlay
()));
connect
(
PlayerManager
::
instance
(),
SIGNAL
(
signalPause
()),
this
,
SLOT
(
slotPause
()));
connect
(
PlayerManager
::
instance
(),
SIGNAL
(
signalStop
()),
this
,
SLOT
(
slotStop
()));
action
(
"play"
)
->
plug
(
cm
);
action
(
"pause"
)
->
plug
(
cm
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment