quill/apps.h
2022-06-19 00:14:42 -04:00

65 lines
1.6 KiB
C++

#ifndef APPS_H
#define APPS_H
#include <QWidget>
#include <savedwords.h>
#include <calendarapp.h>
#include <koboxappsdialog.h>
#include <generaldialog.h>
#include <QJsonDocument>
namespace Ui {
class apps;
}
class apps : public QWidget
{
Q_OBJECT
public:
QString className = this->metaObject()->className();
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();
void on_calculatorLaunchBtn_clicked();
void on_koboxAppsOpenButton_clicked();
void on_vncLaunchBtn_clicked();
void on_reversiLaunchBtn_clicked();
void on_editUserAppsBtn_clicked();
void refreshScreenNative();
void on_g2048LaunchBtn_clicked();
void showToastNative(QString messageToDisplay);
bool parseJson();
void showUserApps(bool showDisabledJson);
void updateJsonFileSlot(QJsonDocument jsonDocument);
void showFailedToParseMainUserAppsJsonFile();
private:
Ui::apps *ui;
savedwords *savedWordsWindow;
calendarApp *calendarWindow;
koboxAppsDialog *koboxAppsDialogWindow;
generalDialog *generalDialogWindow;
QFile jsonFile;
QJsonDocument jsonDocument;
bool jsonParseSuccess = false;
bool userAppsSecondPage = false;
bool userAppsAvailable = false;
signals:
void refreshScreen();
void showToast(QString messageToDisplay);
void updateJsonFileSignal(QJsonDocument jsonDocument);
void clearAppsLayout();
void showUserAppsEdit(bool show);
};
#endif // APPS_H