quill/apps.h

66 lines
1.6 KiB
C
Raw Normal View History

2021-03-25 05:00:19 -07:00
#ifndef APPS_H
#define APPS_H
#include <QWidget>
#include <savedwords.h>
#include <calendarapp.h>
#include <koboxappsdialog.h>
#include <generaldialog.h>
2021-03-25 05:00:19 -07:00
#include <QJsonDocument>
2021-03-25 05:00:19 -07:00
namespace Ui {
class apps;
}
class apps : public QWidget
{
Q_OBJECT
public:
QString className = this->metaObject()->className();
2021-03-25 05:00:19 -07:00
explicit apps(QWidget *parent = nullptr);
~apps();
private slots:
void on_scribbleLaunchBtn_clicked();
void exitSlot();
void on_lightmapsLaunchBtn_clicked();
void on_savedWordsLaunchBtn_clicked();
void on_calendarLaunchBtn_clicked();
2021-04-13 07:23:12 -07:00
void on_calculatorLaunchBtn_clicked();
void on_koboxAppsOpenButton_clicked();
2021-07-05 13:01:32 -07:00
void on_vncLaunchBtn_clicked();
2022-03-26 20:17:14 -07:00
void on_reversiLaunchBtn_clicked();
void on_editUserAppsBtn_clicked();
2021-07-05 21:13:11 -07:00
void refreshScreenNative();
2022-03-27 20:17:02 -07:00
void on_g2048LaunchBtn_clicked();
void showToastNative(QString messageToDisplay);
bool parseJson();
void showUserApps(bool showDisabledJson);
void updateJsonFileSlot(QJsonDocument jsonDocument);
2022-06-18 07:05:03 -07:00
void showFailedToParseMainUserAppsJsonFile();
2021-07-05 13:01:32 -07:00
2021-03-25 05:00:19 -07:00
private:
Ui::apps *ui;
savedwords *savedWordsWindow;
calendarApp *calendarWindow;
koboxAppsDialog *koboxAppsDialogWindow;
2021-07-05 21:13:11 -07:00
generalDialog *generalDialogWindow;
QFile jsonFile;
QJsonDocument jsonDocument;
bool jsonParseSuccess = false;
bool userAppsSecondPage = false;
bool userAppsAvailable = false;
2021-07-05 21:13:11 -07:00
signals:
void refreshScreen();
void showToast(QString messageToDisplay);
void updateJsonFileSignal(QJsonDocument jsonDocument);
void clearAppsLayout();
void showUserAppsEdit(bool show);
2021-03-25 05:00:19 -07:00
};
#endif // APPS_H