Further review comments

This commit is contained in:
Peter L Jones 2020-05-25 21:55:45 +01:00
parent 7977413bb6
commit 62c4fbfb77
3 changed files with 11 additions and 15 deletions

View file

@ -8,6 +8,8 @@
- faster update of musicians list in the server list table - faster update of musicians list in the server list table
- display recorder state and latest recording directory,
allow a new recording to be requested, by pljones (#228)

View file

@ -474,6 +474,12 @@ void CServerDlg::OnCentServAddrTypeActivated ( int iTypeIdx )
UpdateGUIDependencies(); UpdateGUIDependencies();
} }
void CServerDlg::OnServerStopped();
{
UpdateSystemTrayIcon ( false );
UpdateRecorderStatus ( QString::null );
}
void CServerDlg::OnSysTrayActivated ( QSystemTrayIcon::ActivationReason ActReason ) void CServerDlg::OnSysTrayActivated ( QSystemTrayIcon::ActivationReason ActReason )
{ {
// on double click on the icon, show window in fore ground // on double click on the icon, show window in fore ground

View file

@ -92,14 +92,8 @@ public slots:
void OnLocationCountryActivated ( int iCntryListItem ); void OnLocationCountryActivated ( int iCntryListItem );
void OnCentServAddrTypeActivated ( int iTypeIdx ); void OnCentServAddrTypeActivated ( int iTypeIdx );
void OnTimer(); void OnTimer();
void OnServerStarted() { UpdateSystemTrayIcon ( true ); } void OnServerStarted() { UpdateSystemTrayIcon ( true ); }
void OnServerStopped() void OnServerStopped();
{
UpdateSystemTrayIcon ( false );
UpdateRecorderStatus ( QString::null );
}
void OnSvrRegStatusChanged() { UpdateGUIDependencies(); } void OnSvrRegStatusChanged() { UpdateGUIDependencies(); }
void OnSysTrayMenuOpen() { ShowWindowInForeground(); } void OnSysTrayMenuOpen() { ShowWindowInForeground(); }
void OnSysTrayMenuHide() { hide(); } void OnSysTrayMenuHide() { hide(); }
@ -109,13 +103,7 @@ public slots:
void keyPressEvent ( QKeyEvent *e ) // block escape key void keyPressEvent ( QKeyEvent *e ) // block escape key
{ if ( e->key() != Qt::Key_Escape ) QDialog::keyPressEvent ( e ); } { if ( e->key() != Qt::Key_Escape ) QDialog::keyPressEvent ( e ); }
void OnNewRecordingClicked(); void OnNewRecordingClicked(); { pServer->RestartRecorder(); }
{
pServer->RestartRecorder();
}
void OnRecordingSessionStarted ( QString sessionDir ) void OnRecordingSessionStarted ( QString sessionDir )
{ { UpdateRecorderStatus ( sessionDir ); }
UpdateRecorderStatus ( sessionDir );
}
}; };