mirror of
https://github.com/Quill-OS/quill.git
synced 2024-10-31 21:33:22 -07:00
763279f1f1
Huge thanks to @Szybet for writing at least 95% of the code in this commit
63 lines
1.5 KiB
C++
63 lines
1.5 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);
|
|
|
|
private:
|
|
Ui::apps *ui;
|
|
savedwords *savedWordsWindow;
|
|
calendarApp *calendarWindow;
|
|
koboxAppsDialog *koboxAppsDialogWindow;
|
|
generalDialog *generalDialogWindow;
|
|
|
|
QFile jsonFile;
|
|
QJsonDocument jsonDocument;
|
|
bool jsonParseSuccess = false;
|
|
bool userAppsSecondPage = false;
|
|
|
|
signals:
|
|
void refreshScreen();
|
|
void showToast(QString messageToDisplay);
|
|
void updateJsonFileSignal(QJsonDocument jsonDocument);
|
|
void clearAppsLayout();
|
|
void showUserAppsEdit(bool show);
|
|
};
|
|
|
|
#endif // APPS_H
|