OfficeAssistant_Win10/OfficeAssistant_msvc/applicationmanagerpage.h

48 lines
1.2 KiB
C
Raw Permalink Normal View History

2023-08-18 19:09:55 +08:00
#pragma once
2023-08-13 12:16:22 +08:00
#include <QTableWidget>
#include <QVBoxLayout>
#include <QWidget>
#include "minibutton.h"
#include "qminiblink.h"
#include "sqlitehelper.h"
#include "ui_applicationmanagerpage.h"
class ApplicationManager;
struct Title;
struct Record2;
class ApplicationManagerPage : public QWidget
{
Q_OBJECT
2023-08-15 11:17:09 +08:00
signals:
2023-08-18 19:09:55 +08:00
void onclick3(QString orig_name,QString op, QString func, QString url, QString path,QString initial_position="");
2023-08-13 12:16:22 +08:00
public:
ApplicationManagerPage(int category, ApplicationManager *application_manager,QWidget *parent = nullptr);
~ApplicationManagerPage();
QMap<QString, Record2> rows;
private:
Ui::ApplicationManagerPageClass ui;
QVBoxLayout* layout;
QHBoxLayout* layout_top;
QHBoxLayout* layout_bottom;
2023-08-18 19:09:55 +08:00
QList<QMetaObject::Connection> connections;
2023-08-13 12:16:22 +08:00
QMiniBlink* miniblink;
QList<MiniButton*> buttons;
QList<Record> softwares;
QList<ButtonStruct> button_structs;
QHash<QString, bool> checked;
SQLiteHelper sqlite_helper;
QGridLayout* layout_left;
QTableWidget* table;
ApplicationManager* application_manager;
Title *title;
int category;
2023-08-18 19:09:55 +08:00
QWidget *parent;
2023-08-13 12:16:22 +08:00
public slots:
void refresh();
2023-08-18 19:09:55 +08:00
void onclicked(int state);
2023-08-13 12:16:22 +08:00
};