Switched to individual start/stop buttons and added icons

parent 23ba1a40
<RCC>
<qresource prefix="/icons">
<file>play_icon.png</file>
<file>stop_icon.png</file>
<file>VA_start_button.png</file>
<file>VA_stop_button.png</file>
</qresource>
<qresource prefix="/banners">
<file>../logo/BlackRedstartM.png</file>
......
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="68.79689mm"
height="31.38105mm"
viewBox="0 0 243.76849 111.1927"
id="svg4169"
version="1.1"
inkscape:version="0.91 r13725"
sodipodi:docname="VA_start_button.svg"
inkscape:export-filename="C:\dev\VA\Redstart\res\VA_start_button.png"
inkscape:export-xdpi="119.79204"
inkscape:export-ydpi="119.79204">
<defs
id="defs4171" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="1.4342832"
inkscape:cx="-3.9785654"
inkscape:cy="-13.715472"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1600"
inkscape:window-height="837"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0" />
<metadata
id="metadata4174">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Ebene 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-255.31892,-422.40279)">
<rect
style="fill:#239e16;fill-opacity:1;stroke:#000000;stroke-width:1.5559752;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect4252-2"
width="109.6367"
height="242.21252"
x="-532.8175"
y="256.09689"
ry="7.8018618"
transform="matrix(0,-1,1,0,0,0)" />
<path
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:1.5559752;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
d="m 352.64946,423.18078 137.47046,0 c 4.32223,0 7.80186,3.47963 7.80186,7.80186 l 0,94.03298 c 0,4.32223 -3.47963,7.80186 -7.80186,7.80186 l -137.47046,0 z"
id="rect4252-2-1"
inkscape:connector-curvature="0"
sodipodi:nodetypes="csssscc" />
<path
sodipodi:type="star"
style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:#ffffff;stroke-width:0.97941643;stroke-linecap:round;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="path3349"
sodipodi:sides="3"
sodipodi:cx="291.03522"
sodipodi:cy="477.99915"
sodipodi:r1="50.605503"
sodipodi:r2="25.302752"
sodipodi:arg1="0"
sodipodi:arg2="1.0471976"
inkscape:flatsided="false"
inkscape:rounded="0"
inkscape:randomized="0"
d="m 341.64072,477.99915 -37.95413,21.91282 -37.95412,21.91283 0,-43.82566 0,-43.82565 37.95412,21.91283 z"
inkscape:transform-center-x="-12.65138" />
<g
id="g4254-8"
style="opacity:0.097;fill:#000000;fill-opacity:1;stroke:none;stroke-opacity:1"
transform="matrix(0.49133956,0,0,0.49133956,230.13936,148.2983)">
<path
sodipodi:nodetypes="cccccccccc"
inkscape:connector-curvature="0"
id="path4173-8-4-6"
d="m 514.27833,739.87152 -67.58609,-137.69426 -68.07575,137.69426 26.01436,0 42.06139,-89.68072 25.23922,51.45609 c 0,0 -17.23695,-5.19296 -27.24777,2.3039 31.79143,7.18761 38.51319,22.64123 38.51319,22.64123 l 7.41859,13.2795 z"
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
sodipodi:nodetypes="cccccccccc"
inkscape:connector-curvature="0"
id="path4173-8-0-8-5"
d="m 280.06543,602.17726 67.58609,137.69431 68.07575,-137.69426 -26.01436,0 -42.06139,89.68071 -25.23922,-51.45609 c 0,0 17.23695,5.19297 27.24777,-2.3039 -31.79143,-7.18765 -38.51319,-22.64123 -38.51319,-22.64123 l -7.41859,-13.27949 z"
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
</g>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:15px;line-height:125%;font-family:sans-serif;text-align:center;letter-spacing:0px;word-spacing:0px;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
x="424.82907"
y="487.99609"
id="text4746"
sodipodi:linespacing="125%"><tspan
sodipodi:role="line"
id="tspan4748"
x="424.82907"
y="487.99609"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:27.5px;font-family:sans-serif;-inkscape-font-specification:'sans-serif Bold';text-align:center;text-anchor:middle">START</tspan></text>
</g>
</svg>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="68.79689mm"
height="31.38105mm"
viewBox="0 0 243.76849 111.1927"
id="svg4169"
version="1.1"
inkscape:version="0.91 r13725"
sodipodi:docname="VA_stop_button.svg"
inkscape:export-filename="C:\dev\VA\Redstart\res\VA_stop_button.png"
inkscape:export-xdpi="120"
inkscape:export-ydpi="120">
<defs
id="defs4171" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="1.4342832"
inkscape:cx="-3.9785654"
inkscape:cy="-13.715472"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1600"
inkscape:window-height="837"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
showguides="false" />
<metadata
id="metadata4174">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Ebene 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-255.31892,-422.40279)">
<rect
style="fill:#9e2416;fill-opacity:1;stroke:#000000;stroke-width:1.5559752;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect4252-2"
width="109.6367"
height="242.21252"
x="-532.8175"
y="256.09689"
ry="7.8018618"
transform="matrix(0,-1,1,0,0,0)" />
<rect
style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect4157"
width="65.537964"
height="65.537964"
x="272.46661"
y="445.23016"
ry="0" />
<path
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:1.5559752;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
d="m 352.64946,423.18078 137.47046,0 c 4.32223,0 7.80186,3.47963 7.80186,7.80186 l 0,94.03298 c 0,4.32223 -3.47963,7.80186 -7.80186,7.80186 l -137.47046,0 z"
id="rect4252-2-1"
inkscape:connector-curvature="0"
sodipodi:nodetypes="csssscc" />
<g
id="g4254-8"
style="fill:#000000;fill-opacity:1;stroke:none;stroke-opacity:1;opacity:0.097"
transform="matrix(0.49133956,0,0,0.49133956,229.8708,148.2983)">
<path
sodipodi:nodetypes="cccccccccc"
inkscape:connector-curvature="0"
id="path4173-8-4-6"
d="m 514.27833,739.87152 -67.58609,-137.69426 -68.07575,137.69426 26.01436,0 42.06139,-89.68072 25.23922,51.45609 c 0,0 -17.23695,-5.19296 -27.24777,2.3039 31.79143,7.18761 38.51319,22.64123 38.51319,22.64123 l 7.41859,13.2795 z"
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
sodipodi:nodetypes="cccccccccc"
inkscape:connector-curvature="0"
id="path4173-8-0-8-5"
d="m 280.06543,602.17726 67.58609,137.69431 68.07575,-137.69426 -26.01436,0 -42.06139,89.68071 -25.23922,-51.45609 c 0,0 17.23695,5.19297 27.24777,-2.3039 -31.79143,-7.18765 -38.51319,-22.64123 -38.51319,-22.64123 l -7.41859,-13.27949 z"
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
</g>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:15px;line-height:125%;font-family:sans-serif;text-align:center;letter-spacing:0px;word-spacing:0px;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
x="424.82907"
y="487.99609"
id="text4746"
sodipodi:linespacing="125%"
inkscape:export-xdpi="120"
inkscape:export-ydpi="120"><tspan
sodipodi:role="line"
id="tspan4748"
x="424.82907"
y="487.99609"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:27.5px;font-family:sans-serif;-inkscape-font-specification:'sans-serif Bold';text-align:center;text-anchor:middle">STOP</tspan></text>
</g>
</svg>
......@@ -58,14 +58,15 @@ RedstartWindow::RedstartWindow( bool bFailSafeMode, bool bAutoStart, bool bSkipC
start_c->setKey( QKeySequence( tr( "CTRL+R" ) ) );
start_c->setContext( Qt::WindowShortcut );
connect( start_b, SIGNAL( activated() ), this, SLOT( on_pushButton_start_stop_clicked() ) );
connect( start_c, SIGNAL( activated() ), this, SLOT( on_pushButton_start_stop_clicked() ) );
connect( start_b, SIGNAL( activated() ), this, SLOT( on_shortcut_start_stop() ) );
connect( start_c, SIGNAL( activated() ), this, SLOT( on_pushButton_start_clicked() ) );
m_pVANetServer = IVANetServer::Create();
m_pVANetClient = IVANetClient::Create();
ui->comboBox_audio_driver->addItem( "ASIO" );
ui->comboBox_audio_driver->addItem( "Portaudio" );
ui->comboBox_audio_driver->addItem( "Virtual" );
ui->comboBox_audio_iface_sampling_rate->addItem( "44.1 kHz", AudioSamplingRate::FS_44kHz );
ui->comboBox_audio_iface_sampling_rate->addItem( "48 kHz", AudioSamplingRate::FS_48kHz );
......@@ -102,7 +103,7 @@ RedstartWindow::RedstartWindow( bool bFailSafeMode, bool bAutoStart, bool bSkipC
ui->groupBox_redstart_audio_iface->setEnabled( false );
if( ( ui->checkBox_redstart_auto_start->isChecked() || bAutoStart ) && !bFailSafeMode )
on_pushButton_start_stop_clicked();
on_pushButton_start_clicked();
m_pCirculatingSourceDialog = new RedstartRunCirculatingSourceDialog( this );
......@@ -289,7 +290,8 @@ void RedstartWindow::on_actionQuit_triggered()
void RedstartWindow::PostCoreStart()
{
ui->pushButton_start_stop->setText( "Stop" );
ui->pushButton_start->setEnabled( false );
ui->pushButton_stop->setEnabled( true );
// Switch UI elements enabled
ui->groupBox_redstart_audio_iface->setEnabled( false );
......@@ -350,7 +352,8 @@ void RedstartWindow::PostCoreStart()
void RedstartWindow::PostCoreStop()
{
ui->pushButton_start_stop->setText( "Start" );
ui->pushButton_start->setEnabled( true );
ui->pushButton_stop->setEnabled( false );
// Switch UI elements enabled
ui->groupBox_redstart_audio_iface->setEnabled( true );
......@@ -604,90 +607,90 @@ void RedstartWindow::AcquirePortaudioDevices()
m_voAudioDevices.push_back( oDevice );
}
void RedstartWindow::on_pushButton_start_stop_clicked()
void RedstartWindow::on_pushButton_start_clicked()
{
try
{
if( ui->checkBox_redstart_network_connect_as_client->isChecked() == false )
{
if( m_pVAInterface )
{
m_pVANetServer->Finalize();
if( m_pVAInterface->GetState() == IVAInterface::VA_CORESTATE_READY )
m_pVAInterface->Finalize();
CVAStruct oVAConfigArgs = ui->listView_redstart_session_list->GetCurrentConfig();
delete m_pVAInterface;
m_pVAInterface = nullptr;
int iBlockLength = -1;
int iOutputChannels = -1;
ui->statusBar->showMessage( "VA core has been stopped." );
PostCoreStop();
// Override configs
std::string sBackend, sDevice;
switch( ui->comboBox_audio_driver->currentIndex() )
{
case AudioBackend::ASIO:
{
sBackend = "ASIO";
sDevice = ui->comboBox_audio_iface_device->currentText().toStdString();
break;
}
else
case AudioBackend::VIRTUAL:
{
sBackend = "Virtual";
sDevice = "Trigger";
iBlockLength = 128;
iOutputChannels = 2;
break;
}
case AudioBackend::PORTAUDIO:
default:
{
CVAStruct oVAConfigArgs = ui->listView_redstart_session_list->GetCurrentConfig();
// Override configs
std::string sBackend, sDevice;
switch( ui->comboBox_audio_driver->currentIndex() )
{
case AudioBackend::ASIO:
{
sBackend = "ASIO";
sDevice = ui->comboBox_audio_iface_device->currentText().toStdString();
break;
}
case AudioBackend::PORTAUDIO:
default:
{
sBackend = "Portaudio";
if( ui->checkBox_portaudio_default_device->isChecked() )
sDevice = "default";
else
sDevice = ui->comboBox_audio_iface_device->currentIndex();
}
}
oVAConfigArgs[ "Audio driver" ] = CVAStruct();
oVAConfigArgs[ "Audio driver" ][ "Driver" ] = sBackend;
oVAConfigArgs[ "Audio driver" ][ "Device" ] = sDevice;
if( !oVAConfigArgs.HasKey( "Paths" ) )
oVAConfigArgs[ "Paths" ] = CVAStruct();
oVAConfigArgs[ "Paths" ][ "redstart_data" ] = "data";
oVAConfigArgs[ "Paths" ][ "redstart_data_dev" ] = "../VACore/data";
m_pVAInterface = VACore::CreateCoreInstance( oVAConfigArgs, ui->plainTextEdit_core_output->GetOutputStream() );
m_pVAInterface->Initialize();
m_pVAInterface->AttachEventHandler( this );
m_pVANetServer->SetCoreInstance( m_pVAInterface );
bool bOK;
int iPort = ui->lineEdit_redstart_network_port->text().toInt( &bOK );
int iStatus = -1;
if( bOK )
iStatus = m_pVANetServer->Initialize( ui->lineEdit_redstart_network_address->text().toStdString(), iPort );
sBackend = "Portaudio";
if( ui->checkBox_portaudio_default_device->isChecked() )
sDevice = "default";
else
iStatus = m_pVANetServer->Initialize( ui->lineEdit_redstart_network_address->text().toStdString() );
sDevice = ui->comboBox_audio_iface_device->currentIndex();
}
}
if( m_pVAInterface->GetState() == IVAInterface::VA_CORESTATE_READY && iStatus == IVANetServer::VA_NO_ERROR )
{
ui->statusBar->showMessage( "VA core successfully initialized and network server started. Running session " + ui->listView_redstart_session_list->GetCurrentSessionID() + "." );
oVAConfigArgs[ "Audio driver" ] = CVAStruct();
oVAConfigArgs[ "Audio driver" ][ "Driver" ] = sBackend;
oVAConfigArgs[ "Audio driver" ][ "Device" ] = sDevice;
if( iBlockLength > 0 )
oVAConfigArgs[ "Audio driver" ][ "BufferSize" ] = iBlockLength;
if( iOutputChannels > 0 )
oVAConfigArgs[ "Audio driver" ][ "OutputChannels" ] = iOutputChannels;
ui->pushButton_add_local_path->setEnabled( true );
if( !oVAConfigArgs.HasKey( "Paths" ) )
oVAConfigArgs[ "Paths" ] = CVAStruct();
oVAConfigArgs[ "Paths" ][ "redstart_data" ] = "data";
oVAConfigArgs[ "Paths" ][ "redstart_data_dev" ] = "../VACore/data";
PostCoreStart();
}
else
{
ui->statusBar->showMessage( "VA core initialization failed." );
m_pVANetServer->Finalize();
m_pVAInterface = VACore::CreateCoreInstance( oVAConfigArgs, ui->plainTextEdit_core_output->GetOutputStream() );
m_pVAInterface->Initialize();
m_pVAInterface->AttachEventHandler( this );
m_pVANetServer->SetCoreInstance( m_pVAInterface );
bool bOK;
int iPort = ui->lineEdit_redstart_network_port->text().toInt( &bOK );
int iStatus = -1;
if( bOK )
iStatus = m_pVANetServer->Initialize( ui->lineEdit_redstart_network_address->text().toStdString(), iPort );
else
iStatus = m_pVANetServer->Initialize( ui->lineEdit_redstart_network_address->text().toStdString() );
if( m_pVAInterface->GetState() == IVAInterface::VA_CORESTATE_READY && iStatus == IVANetServer::VA_NO_ERROR )
{
ui->statusBar->showMessage( "VA core successfully initialized and network server started. Running session " + ui->listView_redstart_session_list->GetCurrentSessionID() + "." );
ui->pushButton_add_local_path->setEnabled( true );
PostCoreStart();
}
else
{
ui->statusBar->showMessage( "VA core initialization failed." );
m_pVANetServer->Finalize();
delete m_pVAInterface;
m_pVAInterface = NULL;
}
delete m_pVAInterface;
m_pVAInterface = NULL;
}
}
else
{
......@@ -730,6 +733,57 @@ void RedstartWindow::on_pushButton_start_stop_clicked()
}
}
void RedstartWindow::on_pushButton_stop_clicked()
{
try
{
if( ui->checkBox_redstart_network_connect_as_client->isChecked() == false )
{
if( m_pVAInterface )
{
m_pVANetServer->Finalize();
if( m_pVAInterface->GetState() == IVAInterface::VA_CORESTATE_READY )
m_pVAInterface->Finalize();
delete m_pVAInterface;
m_pVAInterface = nullptr;
ui->statusBar->showMessage( "VA core has been stopped." );
PostCoreStop();
}
}
else
{
// Client mode
if( m_pVANetClient->IsConnected() )
m_pVANetClient->Disconnect();
m_pVAInterface = nullptr;
}
}
catch( const CVAException& ex )
{
if( m_pVAInterface && ui->checkBox_redstart_network_connect_as_client->isChecked() == false )
{
delete m_pVAInterface;
m_pVAInterface = NULL;
}
ui->statusBar->showMessage( QString::fromStdString( ex.ToString() ) + ". Will deactivate auto-start checkbox." );
ui->checkBox_redstart_auto_start->setChecked( false );
}
}
void RedstartWindow::on_shortcut_start_stop()
{
if( m_pVAInterface )
on_pushButton_stop_clicked();
else
on_pushButton_start_clicked();
}
void RedstartWindow::on_pushButton_refresh_clicked()
{
const int iAudioBackend = ui->comboBox_audio_driver->currentIndex();
......@@ -824,7 +878,7 @@ void RedstartWindow::on_actionBinauralHeadphones_triggered()
ui->treeView_session_details->SetStruct( oStruct );
if( d.GetStartImmediately() )
on_pushButton_start_stop_clicked();
on_pushButton_start_clicked();
}
}
......@@ -842,7 +896,7 @@ void RedstartWindow::on_actionImport_session_triggered()
ui->treeView_session_details->SetStruct( oStruct );
if( d.GetStartImmediately() )
on_pushButton_start_stop_clicked();
on_pushButton_start_clicked();
}
}
......@@ -861,7 +915,7 @@ void RedstartWindow::on_actionDefault_experimental_session_triggered()
ui->treeView_session_details->SetStruct( oStruct );
if( d.GetStartImmediately() )
on_pushButton_start_stop_clicked();
on_pushButton_start_clicked();
}
}
......
......@@ -52,6 +52,7 @@ public:
{
ASIO = 0,
PORTAUDIO = 1,
VIRTUAL = 2,
};
enum AudioSamplingRate
......@@ -116,7 +117,9 @@ public:
private slots:
void on_actionQuit_triggered();
void on_pushButton_start_stop_clicked();
void on_pushButton_start_clicked();
void on_pushButton_stop_clicked();
void on_shortcut_start_stop();
void on_pushButton_refresh_clicked();
......
......@@ -208,7 +208,23 @@ background-color: rgb(254, 228, 255);</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2" stretch="0">
<item>
<layout class="QGridLayout" name="gridLayout_Settings_redstart_vaserver_audio_iface" columnstretch="0,1,0" columnminimumwidth="0,1,0">
<layout class="QGridLayout" name="gridLayout_Settings_redstart_vaserver_audio_iface" columnstretch="0,0,0">
<item row="0" column="1">
<widget class="QComboBox" name="comboBox_audio_driver">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_8">
<property name="text">
......@@ -232,13 +248,6 @@ background-color: rgb(254, 228, 255);</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_6">
<property name="text">
<string>Device</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label_5">
<property name="text">
......@@ -246,12 +255,19 @@ background-color: rgb(254, 228, 255);</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QComboBox" name="comboBox_audio_driver"/>
<item row="1" column="0">
<widget class="QLabel" name="label_6">
<property name="text">
<string>Device</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QComboBox" name="comboBox_audio_iface_sampling_rate"/>
</item>
<item row="3" column="1">
<widget class="QComboBox" name="comboBox_audio_iface_buffer_size"/>
</item>
<item row="4" column="0">
<widget class="QLabel" name="label_16">
<property name="text">
......@@ -259,9 +275,6 @@ background-color: rgb(254, 228, 255);</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QComboBox" name="comboBox_audio_iface_buffer_size"/>
</item>
<item row="0" column="2">
<widget class="QPushButton" name="pushButton_refresh">
<property name="text">
......@@ -298,9 +311,9 @@ background-color: rgb(254, 228, 255);</string>
<property name="title">
<string>Redstart</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout" stretch="1,1,0">
<layout class="QHBoxLayout" name="horizontalLayout" stretch="1,0,1">
<item>
<widget class="QPushButton" name="pushButton_start_stop">
<widget class="QPushButton" name="pushButton_start">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
......@@ -309,8 +322,8 @@ background-color: rgb(254, 228, 255);</string>
</property>
<property name="minimumSize">
<size>
<width>90</width>
<height>90</height>
<width>150</width>
<height>70</height>
</size>
</property>
<property name="text">
......@@ -318,13 +331,13 @@ background-color: rgb(254, 228, 255);</string>
</property>
<property name="icon">
<iconset>
<normalon>:/icons/play_icon.png</normalon>
<normalon>:/icons/VA_start_button.png</normalon>
</iconset>
</property>
<property name="iconSize">
<size>
<width>90</width>
<height>90</height>
<width>300</width>
<height>70</height>
</size>
</property>
<property name="autoDefault">
......@@ -334,19 +347,26 @@ background-color: rgb(254, 228, 255);</string>
<bool>true</bool>
</property>
<property name="flat">
<bool>false</bool>
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton">
<widget class="QCheckBox" name="checkBox_redstart_auto_start">
<property name="text">
<string>auto-start</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_stop">
<property name="enabled">
<bool>false</bool>
</property>
<property name="minimumSize">
<size>
<width>90</width>
<height>90</height>
<width>150</width>
<height>70</height>
</size>
</property>
<property name="text">
......@@ -354,21 +374,20 @@ background-color: rgb(254, 228, 255);</string>
</property>
<property name="icon">
<iconset>
<normalon>:/icons/stop_icon.png</normalon>
<normalon>:/icons/VA_stop_button.png</normalon>
</iconset>
</property>
<property name="iconSize">
<size>
<width>90</width>
<height>90</height>
<width>300</width>
<height>70</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox_redstart_auto_start">
<property name="text">
<string>auto-start</string>
<property name="default">
<bool>false</bool>
</property>
<property name="flat">
<bool>true</bool>
</property>
</widget>
</item>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment