几乎完成
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
#pragma once
|
||||
#pragma once
|
||||
|
||||
#include <QWidget>
|
||||
#include "sqlitehelper.h"
|
||||
@ -16,6 +16,8 @@
|
||||
#include "ui_applicationmanager.h"
|
||||
#include <QTabBar>
|
||||
#include <QCheckBox>
|
||||
|
||||
#include "config.h"
|
||||
class ApplicationManagerPage;
|
||||
|
||||
struct Record2
|
||||
@ -24,7 +26,7 @@ struct Record2
|
||||
QLabel *orig_name;
|
||||
QLabel *dev;
|
||||
QLabel *use_time;*/
|
||||
QSvgWidget* icon;
|
||||
QLabel* icon;
|
||||
MiniButton* settings;
|
||||
MiniButton * open;
|
||||
QString op;
|
||||
@ -33,9 +35,10 @@ struct Record2
|
||||
QString orig_name;
|
||||
QString exe_file;
|
||||
QCheckBox *check_box;
|
||||
bool is_locked;
|
||||
int sort;
|
||||
QString url;
|
||||
bool categories[8];
|
||||
bool categories[CATEGORIES_NUM];
|
||||
};
|
||||
|
||||
struct Title
|
||||
@ -52,6 +55,7 @@ class ApplicationManager : public QWidget
|
||||
signals:
|
||||
void changeUrl(QString url);
|
||||
void refresh();
|
||||
void refresh_tab();
|
||||
public:
|
||||
ApplicationManager(QWidget *parent = nullptr);
|
||||
~ApplicationManager();
|
||||
@ -61,6 +65,7 @@ private:
|
||||
QVBoxLayout* layout;
|
||||
QTabBar *tab_bar;
|
||||
QMap<int, ApplicationManagerPage*> map;
|
||||
QMap<int,int> map2;
|
||||
QHBoxLayout* layout_top;
|
||||
QHBoxLayout* layout_bottom;
|
||||
QMiniBlink* miniblink;
|
||||
@ -69,6 +74,8 @@ private:
|
||||
QList<ButtonStruct> button_structs;
|
||||
ApplicationManagerPage* application_manager_page_all;
|
||||
Ui::ApplicationManagerClass ui;
|
||||
QHBoxLayout* layout_top_left;
|
||||
QHBoxLayout* layout_top_right;
|
||||
SQLiteHelper sqlite_helper;
|
||||
QVBoxLayout *layout_bottom_top;
|
||||
QTableWidget *table;
|
||||
|
Reference in New Issue
Block a user