mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-26 23:57:22 -08:00
0cbf1a59e6
We almost have (let's hope!) a working prototype...
74 lines
1.8 KiB
C++
74 lines
1.8 KiB
C++
#ifndef GENERALDIALOG_H
|
|
#define GENERALDIALOG_H
|
|
|
|
#include <QDialog>
|
|
|
|
#include "usbms_splash.h"
|
|
#include "textwidget.h"
|
|
#include "virtualkeyboard.h"
|
|
#include "virtualkeypad.h"
|
|
#include "dictionarywidget.h"
|
|
#include "otamanager.h"
|
|
|
|
using namespace std;
|
|
|
|
namespace Ui {
|
|
class generalDialog;
|
|
}
|
|
|
|
class generalDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit generalDialog(QWidget *parent = nullptr);
|
|
~generalDialog();
|
|
bool resetDialog = false;
|
|
bool updateDialog = false;
|
|
bool settingsRebootDialog = false;
|
|
bool koboxSettingsRebootDialog = false;
|
|
bool lowBatteryDialog = false;
|
|
bool usbmsDialog = false;
|
|
bool textBrowserDialog = false;
|
|
bool resetKoboxDialog = false;
|
|
bool keyboardDialog = false;
|
|
bool keypadDialog = false;
|
|
bool dictionaryResults = false;
|
|
bool vncServerSet = false;
|
|
bool vncPasswordSet = false;
|
|
QString vncServerAddress;
|
|
QString vncServerPassword;
|
|
QString vncServerPort;
|
|
QString wifiEssid;
|
|
QString wifiPassphrase;
|
|
void setupKeyboardDialog();
|
|
void startVNC(QString server, QString password, QString port);
|
|
|
|
private slots:
|
|
void on_cancelBtn_clicked();
|
|
void on_okBtn_clicked();
|
|
void on_acceptBtn_clicked();
|
|
void adjust_size();
|
|
void restartSearchDialog();
|
|
void refreshScreenNative();
|
|
void connectToNetworkSlot();
|
|
void startOtaUpdate(bool wasDownloadSuccessful);
|
|
|
|
private:
|
|
Ui::generalDialog *ui;
|
|
usbms_splash *usbmsWindow;
|
|
textwidget *textwidgetWindow;
|
|
virtualkeyboard *keyboardWidget;
|
|
virtualkeypad *keypadWidget;
|
|
dictionaryWidget *dictionaryWidgetWindow;
|
|
otaManager *otaManagerWindow;
|
|
|
|
signals:
|
|
void gotoPageSelected(int value);
|
|
void refreshScreen();
|
|
void updateWifiIcon(int mode);
|
|
void showToast(QString messageToDisplay);
|
|
void closeIndefiniteToast();
|
|
};
|
|
|
|
#endif // GENERALDIALOG_H
|