mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
* Added Go online/offline to Network menu.
This commit is contained in:
@@ -60,8 +60,6 @@ TopBar::TopBar( QWidget* parent )
|
|||||||
connect( ui->radioDetailed, SIGNAL( clicked() ), SIGNAL( artistMode() ) );
|
connect( ui->radioDetailed, SIGNAL( clicked() ), SIGNAL( artistMode() ) );
|
||||||
connect( ui->radioCloud, SIGNAL( clicked() ), SIGNAL( albumMode() ) );
|
connect( ui->radioCloud, SIGNAL( clicked() ), SIGNAL( albumMode() ) );
|
||||||
|
|
||||||
// ui->widgetRadio->hide(); // FIXME
|
|
||||||
|
|
||||||
setNumSources( 0 );
|
setNumSources( 0 );
|
||||||
setNumTracks( 0 );
|
setNumTracks( 0 );
|
||||||
setNumArtists( 0 );
|
setNumArtists( 0 );
|
||||||
|
@@ -175,6 +175,7 @@ TomahawkWindow::setupSignals()
|
|||||||
|
|
||||||
// <Menu Items>
|
// <Menu Items>
|
||||||
connect( ui->actionPreferences, SIGNAL( triggered() ), SLOT( showSettingsDialog() ) );
|
connect( ui->actionPreferences, SIGNAL( triggered() ), SLOT( showSettingsDialog() ) );
|
||||||
|
connect( ui->actionToggleConnect, SIGNAL( triggered() ), APP->sipHandler(), SLOT( toggleConnect() ) );
|
||||||
connect( ui->actionAddPeerManually, SIGNAL( triggered() ), SLOT( addPeerManually() ) );
|
connect( ui->actionAddPeerManually, SIGNAL( triggered() ), SLOT( addPeerManually() ) );
|
||||||
connect( ui->actionAddFriendManually, SIGNAL( triggered() ), SLOT( addFriendManually() ) );
|
connect( ui->actionAddFriendManually, SIGNAL( triggered() ), SLOT( addFriendManually() ) );
|
||||||
connect( ui->actionRescanCollection, SIGNAL( triggered() ), SLOT( rescanCollectionManually() ) );
|
connect( ui->actionRescanCollection, SIGNAL( triggered() ), SLOT( rescanCollectionManually() ) );
|
||||||
@@ -184,7 +185,6 @@ TomahawkWindow::setupSignals()
|
|||||||
connect( ui->actionCreate_New_Station, SIGNAL( triggered() ), SLOT( createStation() ));
|
connect( ui->actionCreate_New_Station, SIGNAL( triggered() ), SLOT( createStation() ));
|
||||||
connect( ui->actionAboutTomahawk, SIGNAL( triggered() ), SLOT( showAboutTomahawk() ) );
|
connect( ui->actionAboutTomahawk, SIGNAL( triggered() ), SLOT( showAboutTomahawk() ) );
|
||||||
connect( ui->actionExit, SIGNAL( triggered() ), APP, SLOT( quit() ) );
|
connect( ui->actionExit, SIGNAL( triggered() ), APP, SLOT( quit() ) );
|
||||||
// connect( m_statusButton, SIGNAL( clicked() ), APP->sipHandler(), SLOT( toggleConnect() ) );
|
|
||||||
|
|
||||||
// <SipHandler>
|
// <SipHandler>
|
||||||
connect( APP->sipHandler(), SIGNAL( connected() ), SLOT( onSipConnected() ) );
|
connect( APP->sipHandler(), SIGNAL( connected() ), SLOT( onSipConnected() ) );
|
||||||
@@ -383,14 +383,14 @@ TomahawkWindow::onPlaybackLoading( const Tomahawk::result_ptr& result )
|
|||||||
void
|
void
|
||||||
TomahawkWindow::onSipConnected()
|
TomahawkWindow::onSipConnected()
|
||||||
{
|
{
|
||||||
// m_statusButton->setText( tr( "Online" ) );
|
ui->actionToggleConnect->setText( tr( "Go &offline" ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
TomahawkWindow::onSipDisconnected()
|
TomahawkWindow::onSipDisconnected()
|
||||||
{
|
{
|
||||||
// m_statusButton->setText( tr( "Offline" ) );
|
ui->actionToggleConnect->setText( tr( "Go &online" ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -66,6 +66,8 @@
|
|||||||
<property name="title">
|
<property name="title">
|
||||||
<string>&Network</string>
|
<string>&Network</string>
|
||||||
</property>
|
</property>
|
||||||
|
<addaction name="actionToggleConnect"/>
|
||||||
|
<addaction name="separator"/>
|
||||||
<addaction name="actionAddPeerManually"/>
|
<addaction name="actionAddPeerManually"/>
|
||||||
<addaction name="actionAddFriendManually"/>
|
<addaction name="actionAddFriendManually"/>
|
||||||
</widget>
|
</widget>
|
||||||
@@ -93,6 +95,11 @@
|
|||||||
<enum>QAction::QuitRole</enum>
|
<enum>QAction::QuitRole</enum>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
|
<action name="actionToggleConnect">
|
||||||
|
<property name="text">
|
||||||
|
<string>Go &online</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
<action name="actionAddPeerManually">
|
<action name="actionAddPeerManually">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Add &Peer Manually...</string>
|
<string>Add &Peer Manually...</string>
|
||||||
|
Reference in New Issue
Block a user