Wi-Fi dialog draft

This commit is contained in:
Nicolas Mailloux 2021-07-13 12:27:38 -04:00
parent d3097849f1
commit d8dee343a4
8 changed files with 71 additions and 4 deletions

View file

@ -29,7 +29,8 @@ SOURCES += \
textwidget.cpp \
usbms_splash.cpp \
virtualkeyboard.cpp \
virtualkeypad.cpp
virtualkeypad.cpp \
wifidialog.cpp
HEADERS += \
alert.h \
@ -50,7 +51,8 @@ HEADERS += \
textwidget.h \
usbms_splash.h \
virtualkeyboard.h \
virtualkeypad.h
virtualkeypad.h \
wifidialog.h
FORMS += \
alert.ui \
@ -70,7 +72,8 @@ FORMS += \
textwidget.ui \
usbms_splash.ui \
virtualkeyboard.ui \
virtualkeypad.ui
virtualkeypad.ui \
wifidialog.ui
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin

View file

@ -76,5 +76,5 @@ void quit::on_backBtn_clicked()
void quit::on_pushButton_3_clicked()
{
// inotifywait waits for a MODIFY event, so we just do it instead of evtest and the power button
string_writeconfig("/external_root/tmp/power", "state changed");
string_writeconfig("/external_root/tmp/power", "KEY_POWER");
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
resources/wifi-off.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
resources/wifi-standby.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

14
wifidialog.cpp Normal file
View file

@ -0,0 +1,14 @@
#include "wifidialog.h"
#include "ui_wifidialog.h"
wifiDialog::wifiDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::wifiDialog)
{
ui->setupUi(this);
}
wifiDialog::~wifiDialog()
{
delete ui;
}

22
wifidialog.h Normal file
View file

@ -0,0 +1,22 @@
#ifndef WIFIDIALOG_H
#define WIFIDIALOG_H
#include <QDialog>
namespace Ui {
class wifiDialog;
}
class wifiDialog : public QDialog
{
Q_OBJECT
public:
explicit wifiDialog(QWidget *parent = nullptr);
~wifiDialog();
private:
Ui::wifiDialog *ui;
};
#endif // WIFIDIALOG_H

28
wifidialog.ui Normal file
View file

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>wifiDialog</class>
<widget class="QDialog" name="wifiDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle">
<string>Dialog</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QListWidget" name="networksListWidget"/>
</item>
</layout>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>