Changes for recorder status and whatsthis
This commit is contained in:
parent
eef2973ae0
commit
3b93e67f93
3 changed files with 28 additions and 19 deletions
|
@ -5,6 +5,8 @@
|
||||||
|
|
||||||
3.5.9git
|
3.5.9git
|
||||||
|
|
||||||
|
- update server UI to allow setting the jam recorder directory (like -R) (#228, #405)
|
||||||
|
|
||||||
- new app icon for Jamulus, created by geheimerEichkater (#410)
|
- new app icon for Jamulus, created by geheimerEichkater (#410)
|
||||||
|
|
||||||
- bug fix: grouping faders in the client should be proportional (see discussion in #202, #419)
|
- bug fix: grouping faders in the client should be proportional (see discussion in #202, #419)
|
||||||
|
|
|
@ -157,24 +157,25 @@ CServerDlg::CServerDlg ( CServer* pNServP,
|
||||||
// recorder status
|
// recorder status
|
||||||
lblRecorderStatus->setAccessibleName ( tr ( "Recorder status label" ) );
|
lblRecorderStatus->setAccessibleName ( tr ( "Recorder status label" ) );
|
||||||
lblRecorderStatus->setWhatsThis ( "<b>" + tr ( "Recorder Status" ) + ":</b> "
|
lblRecorderStatus->setWhatsThis ( "<b>" + tr ( "Recorder Status" ) + ":</b> "
|
||||||
+ tr ( "Displays the current status of the recorder. The following values are possible:"
|
+ tr ( "Displays the current status of the recorder. The following values are possible:" )
|
||||||
"<dl>"
|
+ "<dl>"
|
||||||
"<dt>Not initialised</dt>"
|
+ "<dt>" + tr ( SREC_NOT_INITIALISED ) + "</dt>"
|
||||||
"<dd>No recording directory has been set or the value is not useable</dd>"
|
+ "<dd>" + tr ( "No recording directory has been set or the value is not useable" ) + "</dd>"
|
||||||
"<dt>Not enabled</dt>"
|
+ "<dt>" + tr ( SREC_NOT_ENABLED ) + "</dt>"
|
||||||
"<dd>Recording has been switched off" )
|
+ "<dd>" + tr ( "Recording has been switched off" )
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
+ tr ( " by the UI checkbox</dd>" )
|
+ tr ( " by the UI checkbox" )
|
||||||
#else
|
#else
|
||||||
+ tr ( ", either by the UI checkbox or SIGUSR2 being received</dd>" )
|
+ tr ( ", either by the UI checkbox or SIGUSR2 being received" )
|
||||||
#endif
|
#endif
|
||||||
+ tr ( "<dt>Not recording</dt>"
|
+ "</dd>"
|
||||||
"<dd>There is no one connected to the server to record</dd>"
|
+ "<dt>" + tr ( SREC_NOT_RECORDING ) + "</dt>"
|
||||||
"<dt>Recording</dt>"
|
+ "<dd>" + tr ( "There is no one connected to the server to record" ) + "</dd>"
|
||||||
"<dd>The performers are being recorded to the specified session directory</dd>"
|
+ "<dt>" + tr ( SREC_RECORDING ) + "</dt>"
|
||||||
"</dl>" )
|
+ "<dd>" + tr ( "The performers are being recorded to the specified session directory" ) + "</dd>"
|
||||||
+ tr ( "<br/><b>NOTE:</b> If the recording directory is not useable, "
|
+ "</dl>"
|
||||||
"the problem will be displayed in place of the directory.") );
|
+ "<br/><b>" + tr ( "NOTE" ) + ":</b> "
|
||||||
|
+ tr ( "If the recording directory is not useable, the problem will be displayed in place of the directory." ) );
|
||||||
|
|
||||||
// new recording
|
// new recording
|
||||||
pbtNewRecording->setAccessibleName ( tr ( "Request new recording button" ) );
|
pbtNewRecording->setAccessibleName ( tr ( "Request new recording button" ) );
|
||||||
|
@ -781,17 +782,17 @@ void CServerDlg::UpdateRecorderStatus ( QString sessionDir )
|
||||||
if ( pServer->IsRunning() )
|
if ( pServer->IsRunning() )
|
||||||
{
|
{
|
||||||
edtCurrentSessionDir->setText ( sessionDir != QString::null ? sessionDir : "" );
|
edtCurrentSessionDir->setText ( sessionDir != QString::null ? sessionDir : "" );
|
||||||
strRecorderStatus = tr ( "Recording" );
|
strRecorderStatus = tr ( SREC_RECORDING );
|
||||||
bIsRecording = true;
|
bIsRecording = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
strRecorderStatus = tr ( "Not recording" );
|
strRecorderStatus = tr ( SREC_NOT_RECORDING );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
strRecorderStatus = tr ( "Not enabled" );
|
strRecorderStatus = tr ( SREC_NOT_ENABLED );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -806,7 +807,7 @@ void CServerDlg::UpdateRecorderStatus ( QString sessionDir )
|
||||||
strRecordingDir = tr ( "ERROR" ) + ": " + strRecordingDir;
|
strRecordingDir = tr ( "ERROR" ) + ": " + strRecordingDir;
|
||||||
}
|
}
|
||||||
chbEnableRecorder->setEnabled ( false );
|
chbEnableRecorder->setEnabled ( false );
|
||||||
strRecorderStatus = tr ( "Not initialised" );
|
strRecorderStatus = tr ( SREC_NOT_INITIALISED );
|
||||||
}
|
}
|
||||||
|
|
||||||
edtRecordingDir->setText( strRecordingDir );
|
edtRecordingDir->setText( strRecordingDir );
|
||||||
|
|
|
@ -46,6 +46,12 @@
|
||||||
// update time for GUI controls
|
// update time for GUI controls
|
||||||
#define GUI_CONTRL_UPDATE_TIME 1000 // ms
|
#define GUI_CONTRL_UPDATE_TIME 1000 // ms
|
||||||
|
|
||||||
|
// Strings used in multiple places
|
||||||
|
#define SREC_NOT_INITIALISED "Not initialised"
|
||||||
|
#define SREC_NOT_ENABLED "Not enabled"
|
||||||
|
#define SREC_NOT_RECORDING "Not recording"
|
||||||
|
#define SREC_RECORDING "Recording"
|
||||||
|
|
||||||
|
|
||||||
/* Classes ********************************************************************/
|
/* Classes ********************************************************************/
|
||||||
class CServerDlg : public QDialog, private Ui_CServerDlgBase
|
class CServerDlg : public QDialog, private Ui_CServerDlgBase
|
||||||
|
|
Loading…
Reference in a new issue