Add audiotest to gui
This commit is contained in:
parent
7d044eee09
commit
e3c055984a
@ -61,6 +61,7 @@ private slots:
|
||||
void onStopHotspot();
|
||||
void syncNTPTime();
|
||||
void on_pushButtonRescan_clicked();
|
||||
void on_pushButtonAudioTest_clicked();
|
||||
|
||||
private slots:
|
||||
void show_tab1();
|
||||
|
@ -96,6 +96,7 @@ SettingsWindow::SettingsWindow(configuration::IConfiguration::Pointer configurat
|
||||
ui_->spinBoxHour->setValue((time_text_hour).toInt());
|
||||
ui_->spinBoxMinute->setValue((time_text_minute).toInt());
|
||||
SettingsWindow::on_pushButtonRescan_clicked();
|
||||
ui_->labelTestInProgress->hide();
|
||||
}
|
||||
|
||||
SettingsWindow::~SettingsWindow()
|
||||
@ -851,3 +852,13 @@ void f1x::openauto::autoapp::ui::SettingsWindow::on_pushButtonRescan_clicked()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void f1x::openauto::autoapp::ui::SettingsWindow::on_pushButtonAudioTest_clicked()
|
||||
{
|
||||
ui_->labelTestInProgress->show();
|
||||
ui_->pushButtonAudioTest->hide();
|
||||
qApp->processEvents();
|
||||
system("/usr/local/bin/crankshaft audio test");
|
||||
ui_->pushButtonAudioTest->show();
|
||||
ui_->labelTestInProgress->hide();
|
||||
}
|
||||
|
@ -105,7 +105,7 @@ void f1x::openauto::autoapp::ui::USBDialog::on_pushButtonMount_clicked()
|
||||
QString mountfulldevicepath = selected.split(" ")[0];
|
||||
QString mountdevice = mountfulldevicepath.split("/")[2];
|
||||
system(qPrintable("sudo umount -f " + mountfulldevicepath));
|
||||
//system(qPrintable("sudo fuser -km /media/USBDRIVES/" + mountdevice));
|
||||
system(qPrintable("sudo fuser -km /media/USBDRIVES/" + mountdevice));
|
||||
system(qPrintable("sudo mkdir -p /media/USBDRIVES/" + mountdevice));
|
||||
system(qPrintable("sudo chmod 777 /media/USBDRIVES/" + mountdevice));
|
||||
system(qPrintable("sudo mount " + mountfulldevicepath + " /media/USBDRIVES/" + mountdevice));
|
||||
|
@ -7,7 +7,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>800</width>
|
||||
<height>3096</height>
|
||||
<height>3156</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
@ -1488,6 +1488,108 @@ QSlider::groove:horizontal { background: #6d6d6d; height: 32px;}</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QWidget" name="horizontalWidget" native="true">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>24</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>16777215</width>
|
||||
<height>24</height>
|
||||
</size>
|
||||
</property>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
||||
<property name="spacing">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="leftMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pushButtonAudioTest">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>24</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>16777215</width>
|
||||
<height>24</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="font">
|
||||
<font>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color: rgb(78, 154, 6);
|
||||
color: rgb(255, 255, 255);</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Execute Audio Test - Record 5 secs via mic and playpack</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="labelTestInProgress">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>24</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>16777215</width>
|
||||
<height>24</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="font">
|
||||
<font>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Test in progresss...</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
@ -1617,6 +1719,19 @@ QSlider::groove:horizontal { background: #6d6d6d; height: 32px;}</string>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="autofill_space_tab3">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QFormLayout" name="formLayout_4">
|
||||
<property name="leftMargin">
|
||||
@ -1670,19 +1785,6 @@ QSlider::groove:horizontal { background: #6d6d6d; height: 32px;}</string>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="autofill_space_tab3">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
|
Loading…
x
Reference in New Issue
Block a user