radioapp/radioapplication/src/testwindow_win32.cpp
changeset 28 075425b8d9a4
parent 24 6df133bd92e1
child 32 189d20c34778
child 34 bc10a61bd7d3
equal deleted inserted replaced
24:6df133bd92e1 28:075425b8d9a4
    85     mSongIndex( 0 )
    85     mSongIndex( 0 )
    86 {
    86 {
    87     mThemeBox->setEditable( false );
    87     mThemeBox->setEditable( false );
    88     initThemes();    
    88     initThemes();    
    89 
    89 
    90     connectAndTest( mOrientationButton, SIGNAL(clicked()), this, SLOT(changeOrientation()) );
    90     Radio::connect( mOrientationButton, SIGNAL(clicked()), this, SLOT(changeOrientation()) );
    91     connectAndTest( mVolUpButton, SIGNAL(clicked()), this, SLOT(volumeUp()) );
    91     Radio::connect( mVolUpButton, SIGNAL(clicked()), this, SLOT(volumeUp()) );
    92     connectAndTest( mVolDownButton, SIGNAL(clicked()), this, SLOT(volumeDown()) );
    92     Radio::connect( mVolDownButton, SIGNAL(clicked()), this, SLOT(volumeDown()) );
    93     connectAndTest( mHeadsetButton, SIGNAL(clicked()), this, SLOT(toggleHeadsetStatus()) );
    93     Radio::connect( mHeadsetButton, SIGNAL(clicked()), this, SLOT(toggleHeadsetStatus()) );
    94     connectAndTest( mAddSongButton, SIGNAL(clicked()), this, SLOT(addSong()) );
    94     Radio::connect( mAddSongButton, SIGNAL(clicked()), this, SLOT(addSong()) );
    95     connectAndTest( mClearSongButton, SIGNAL(clicked()), this, SLOT(clearSong()) );
    95     Radio::connect( mClearSongButton, SIGNAL(clicked()), this, SLOT(clearSong()) );
    96     connectAndTest( mOfflineButton, SIGNAL(clicked()), this, SLOT(toggleOffline()) );
    96     Radio::connect( mOfflineButton, SIGNAL(clicked()), this, SLOT(toggleOffline()) );
    97     connectAndTest( mThemeBox, SIGNAL(activated(QString)), this, SLOT(changeTheme(QString)) );
    97     Radio::connect( mThemeBox, SIGNAL(activated(QString)), this, SLOT(changeTheme(QString)) );
    98 
    98 
    99     QTimer::singleShot( 0, this, SLOT(updateWindowSize()) );
    99     QTimer::singleShot( 0, this, SLOT(updateWindowSize()) );
   100 }
   100 }
   101 
   101 
   102 /*!
   102 /*!
   184 /*!
   184 /*!
   185  * Private slot
   185  * Private slot
   186  */
   186  */
   187 void Win32Window::volumeUp()
   187 void Win32Window::volumeUp()
   188 {
   188 {
   189     if ( ++mVolume > KMaximumVolumeLevel ) {
   189     if ( ++mVolume > MAXIMUM_VOLUME_LEVEL ) {
   190         mVolume = KMaximumVolumeLevel;
   190         mVolume = MAXIMUM_VOLUME_LEVEL;
   191     }
   191     }
   192     RadioEngineWrapperPrivate::instance()->setVolume( mVolume );
   192     RadioEngineWrapperPrivate::instance()->setVolume( mVolume );
   193 }
   193 }
   194 
   194 
   195 /*!
   195 /*!