Add audiotest to gui
This commit is contained in:
parent
7d044eee09
commit
e3c055984a
@ -61,6 +61,7 @@ private slots:
|
|||||||
void onStopHotspot();
|
void onStopHotspot();
|
||||||
void syncNTPTime();
|
void syncNTPTime();
|
||||||
void on_pushButtonRescan_clicked();
|
void on_pushButtonRescan_clicked();
|
||||||
|
void on_pushButtonAudioTest_clicked();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void show_tab1();
|
void show_tab1();
|
||||||
|
@ -96,6 +96,7 @@ SettingsWindow::SettingsWindow(configuration::IConfiguration::Pointer configurat
|
|||||||
ui_->spinBoxHour->setValue((time_text_hour).toInt());
|
ui_->spinBoxHour->setValue((time_text_hour).toInt());
|
||||||
ui_->spinBoxMinute->setValue((time_text_minute).toInt());
|
ui_->spinBoxMinute->setValue((time_text_minute).toInt());
|
||||||
SettingsWindow::on_pushButtonRescan_clicked();
|
SettingsWindow::on_pushButtonRescan_clicked();
|
||||||
|
ui_->labelTestInProgress->hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
SettingsWindow::~SettingsWindow()
|
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 mountfulldevicepath = selected.split(" ")[0];
|
||||||
QString mountdevice = mountfulldevicepath.split("/")[2];
|
QString mountdevice = mountfulldevicepath.split("/")[2];
|
||||||
system(qPrintable("sudo umount -f " + mountfulldevicepath));
|
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 mkdir -p /media/USBDRIVES/" + mountdevice));
|
||||||
system(qPrintable("sudo chmod 777 /media/USBDRIVES/" + mountdevice));
|
system(qPrintable("sudo chmod 777 /media/USBDRIVES/" + mountdevice));
|
||||||
system(qPrintable("sudo mount " + mountfulldevicepath + " /media/USBDRIVES/" + mountdevice));
|
system(qPrintable("sudo mount " + mountfulldevicepath + " /media/USBDRIVES/" + mountdevice));
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>800</width>
|
<width>800</width>
|
||||||
<height>3096</height>
|
<height>3156</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
@ -1488,6 +1488,108 @@ QSlider::groove:horizontal { background: #6d6d6d; height: 32px;}</string>
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</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>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -1617,6 +1719,19 @@ QSlider::groove:horizontal { background: #6d6d6d; height: 32px;}</string>
|
|||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</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>
|
<item>
|
||||||
<layout class="QFormLayout" name="formLayout_4">
|
<layout class="QFormLayout" name="formLayout_4">
|
||||||
<property name="leftMargin">
|
<property name="leftMargin">
|
||||||
@ -1670,19 +1785,6 @@ QSlider::groove:horizontal { background: #6d6d6d; height: 32px;}</string>
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</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>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user