[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 104508] Show OSD when (un)pausing
From:       Seb Ruiz <seb100 () optusnet ! com ! au>
Date:       2005-07-01 7:19:26
Message-ID: 20050701071926.17663.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
http://bugs.kde.org/show_bug.cgi?id=104508         
seb100 optusnet com au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From seb100 optusnet com au  2005-07-01 09:19 -------
SVN commit 430400 by seb:

Show osd when pausing/unpausing

BUG:104508


 M  +10 -0     app.cpp  
 M  +1 -0      app.h  
 M  +1 -1      osd.h  


--- trunk/extragear/multimedia/amarok/src/app.cpp #430399:430400
 @ -716,10 +716,18  @
         else m_pPlaylistWindow->setCaption( "amaroK" );
         QToolTip::add( m_pTray, i18n( "amaroK - Audio Player" ) );
         break;
+
     case Engine::Playing:
+        if ( m_oldState == Engine::Paused )
+            amaroK::OSD::instance()->OSDWidget::show( i18n("Unpaused" ) );
         if ( !bundle.prettyTitle().isEmpty() )
             m_pPlaylistWindow->setCaption( "amaroK - " + bundle.veryNiceTitle() );
         break;
+
+    case Engine::Paused:
+        amaroK::OSD::instance()->OSDWidget::show( i18n("Paused") );
+        break;
+
     case Engine::Idle:
         if ( AmarokConfig::showPlayerWindow() )
             m_pPlaylistWindow->setCaption( kapp->makeStdCaption( i18n("Playlist") ) );
 @ -729,6 +737,8  @
     default:
         ;
     }
+
+    m_oldState = state;
 }
 
 
--- trunk/extragear/multimedia/amarok/src/app.h #430399:430400
 @ -80,6 +80,7  @
         PlayerWidget        *m_pPlayerWindow;
         PlaylistWindow      *m_pPlaylistWindow;
         amaroK::TrayIcon    *m_pTray;
+        Engine::State        m_oldState;
 };
 
 #define pApp static_cast<App*>(kapp)
--- trunk/extragear/multimedia/amarok/src/osd.h #430399:430400
 @ -41,7 +41,7  @
         virtual void show();
 
         /**
-         * For the sake of somplicity, when these settings are
+         * For the sake of simplicity, when these settings are
          * changed they do not take effect until the next time
          * the OSD is shown!
          *
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic