|
Lines 1264-1272
void XinePart::slotFinalize()
Link Here
|
| 1264 |
TDEAction* action = NULL; |
1264 |
TDEAction* action = NULL; |
| 1265 |
m_embeddedContext = new TDEPopupMenu(0); |
1265 |
m_embeddedContext = new TDEPopupMenu(0); |
| 1266 |
m_embeddedContext->insertTitle(instance()->iconLoader()->loadIcon("kaffeine", TDEIcon::Small), i18n("Kaffeine Player")); |
1266 |
m_embeddedContext->insertTitle(instance()->iconLoader()->loadIcon("kaffeine", TDEIcon::Small), i18n("Kaffeine Player")); |
| 1267 |
actionCollection()->action("media-playback-start")->plug(m_embeddedContext); |
1267 |
actionCollection()->action("player_play")->plug(m_embeddedContext); |
| 1268 |
actionCollection()->action("media-playback-pause")->plug(m_embeddedContext); |
1268 |
actionCollection()->action("player_pause")->plug(m_embeddedContext); |
| 1269 |
actionCollection()->action("media-playback-stop")->plug(m_embeddedContext); |
1269 |
actionCollection()->action("player_stop")->plug(m_embeddedContext); |
| 1270 |
actionCollection()->action("volume_increase")->plug(m_embeddedContext); |
1270 |
actionCollection()->action("volume_increase")->plug(m_embeddedContext); |
| 1271 |
actionCollection()->action("volume_decrease")->plug(m_embeddedContext); |
1271 |
actionCollection()->action("volume_decrease")->plug(m_embeddedContext); |
| 1272 |
actionCollection()->action("audio_mute")->plug(m_embeddedContext); |
1272 |
actionCollection()->action("audio_mute")->plug(m_embeddedContext); |
|
Lines 1330-1336
void XinePart::initActions()
Link Here
|
| 1330 |
new TDEAction(i18n("Toggle Minimal Mode"), 0, 0, this, TQT_SIGNAL(signalToggleMinimalMode()), actionCollection(), "player_minimal_mode"); |
1330 |
new TDEAction(i18n("Toggle Minimal Mode"), 0, 0, this, TQT_SIGNAL(signalToggleMinimalMode()), actionCollection(), "player_minimal_mode"); |
| 1331 |
|
1331 |
|
| 1332 |
new TDEAction(i18n("Play"), "media-playback-start", 0, TQT_TQOBJECT(this), TQT_SLOT(slotPlay()), actionCollection(), "player_play"); |
1332 |
new TDEAction(i18n("Play"), "media-playback-start", 0, TQT_TQOBJECT(this), TQT_SLOT(slotPlay()), actionCollection(), "player_play"); |
| 1333 |
m_pauseButton = new TDEToggleAction(i18n("Pause"), "media-playback-pause", Key_Space, TQT_TQOBJECT(this), TQT_SLOT(slotTogglePause()), actionCollection(), "media-playback-pause"); |
1333 |
m_pauseButton = new TDEToggleAction(i18n("Pause"), "media-playback-pause", Key_Space, TQT_TQOBJECT(this), TQT_SLOT(slotTogglePause()), actionCollection(), "player_pause"); |
| 1334 |
new TDEAction(i18n("&Next"), "media-skip-forward", Key_PageDown, TQT_TQOBJECT(this), TQT_SLOT(slotNext()), actionCollection(), "player_next"); |
1334 |
new TDEAction(i18n("&Next"), "media-skip-forward", Key_PageDown, TQT_TQOBJECT(this), TQT_SLOT(slotNext()), actionCollection(), "player_next"); |
| 1335 |
new TDEAction(i18n("&Previous"), "media-skip-backward", Key_PageUp, TQT_TQOBJECT(this), TQT_SLOT(slotPrevious()), actionCollection(), "player_previous"); |
1335 |
new TDEAction(i18n("&Previous"), "media-skip-backward", Key_PageUp, TQT_TQOBJECT(this), TQT_SLOT(slotPrevious()), actionCollection(), "player_previous"); |
| 1336 |
new TDEAction(i18n("Stop"), "media-playback-stop", Key_Backspace, TQT_TQOBJECT(this), TQT_SLOT(slotStop()), actionCollection(), "player_stop"); |
1336 |
new TDEAction(i18n("Stop"), "media-playback-stop", Key_Backspace, TQT_TQOBJECT(this), TQT_SLOT(slotStop()), actionCollection(), "player_stop"); |