Fix visibility of public slots in PartBase. This resolves issue #24

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/25/head
Michele Calgaro 2 months ago
parent 6550e667c3
commit 3f58dcfa4d
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -149,7 +149,7 @@ void PartBase::showConfigDialog () {
m_settings->show ("URLPage"); m_settings->show ("URLPage");
} }
TDE_NO_EXPORT void PartBase::showPlayListWindow () { void PartBase::showPlayListWindow () {
// note, this is also the slot of application's view_playlist action, but // note, this is also the slot of application's view_playlist action, but
// anyhow, actions don't work for the fullscreen out-of-the-box, so ... // anyhow, actions don't work for the fullscreen out-of-the-box, so ...
if (m_view->viewArea ()->isFullScreen ()) if (m_view->viewArea ()->isFullScreen ())
@ -160,7 +160,7 @@ TDE_NO_EXPORT void PartBase::showPlayListWindow () {
m_view->toggleShowPlaylist (); m_view->toggleShowPlaylist ();
} }
TDE_NO_EXPORT void PartBase::addBookMark (const TQString & t, const TQString & url) { void PartBase::addBookMark (const TQString & t, const TQString & url) {
KBookmarkGroup b = m_bookmark_manager->root (); KBookmarkGroup b = m_bookmark_manager->root ();
b.addBookmark (m_bookmark_manager, t, KURL (url)); b.addBookmark (m_bookmark_manager, t, KURL (url));
m_bookmark_manager->emitChanged (b); m_bookmark_manager->emitChanged (b);
@ -360,7 +360,7 @@ void PartBase::setRecorder (const char * name) {
m_recorder = recorder; m_recorder = recorder;
} }
TDE_NO_EXPORT void PartBase::slotPlayerMenu (int id) { void PartBase::slotPlayerMenu (int id) {
bool playing = m_process->playing (); bool playing = m_process->playing ();
const char * srcname = m_source->name (); const char * srcname = m_source->name ();
TQPopupMenu * menu = m_view->controlPanel ()->playerMenu (); TQPopupMenu * menu = m_view->controlPanel ()->playerMenu ();
@ -586,7 +586,7 @@ void PartBase::playingStopped () {
m_bPosSliderPressed = false; m_bPosSliderPressed = false;
} }
TDE_NO_EXPORT void PartBase::setPosition (int position, int length) { void PartBase::setPosition (int position, int length) {
if (m_view && !m_bPosSliderPressed) if (m_view && !m_bPosSliderPressed)
emit positioned (position, length); emit positioned (position, length);
} }
@ -821,7 +821,7 @@ TDE_NO_EXPORT void PartBase::posSliderReleased () {
m_process->seek (posSlider->value(), true); m_process->seek (posSlider->value(), true);
} }
TDE_NO_EXPORT void PartBase::volumeChanged (int val) { void PartBase::volumeChanged (int val) {
if (m_process) { if (m_process) {
m_settings->volume = val; m_settings->volume = val;
m_process->volume (val, true); m_process->volume (val, true);
@ -868,7 +868,7 @@ TDE_NO_EXPORT void PartBase::fullScreen () {
m_view->fullScreen (); m_view->fullScreen ();
} }
TDE_NO_EXPORT void PartBase::toggleFullScreen () { void PartBase::toggleFullScreen () {
m_view->fullScreen (); m_view->fullScreen ();
} }
@ -876,11 +876,11 @@ TDE_NO_EXPORT void PartBase::minimalMode () {
emit toggleMinimalMode (); emit toggleMinimalMode ();
} }
TDE_NO_EXPORT bool PartBase::isPlaying () { bool PartBase::isPlaying () {
return playing (); return playing ();
} }
TDE_NO_EXPORT bool PartBase::isPaused () { bool PartBase::isPaused () {
NodePtr doc = m_source ? m_source->document () : 0L; NodePtr doc = m_source ? m_source->document () : 0L;
return doc && doc->state == Node::state_deferred; return doc && doc->state == Node::state_deferred;
} }

Loading…
Cancel
Save