-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
86 lines (74 loc) · 1.88 KB
/
mainwindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include<QMainWindow>
#include"QtHeaderFiles.h"
#include<filterwidget.h>
#include<addfiledialog.h>
#include<filetree.h>
#include<noteswidget.h>
#include<QBoxLayout>
#include<weblist.h>
#include<statchart.h>
#include<recent.h>
#include<introwidget.h>
#include "mypushbotton.h"
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
//class FilterWidget;
class FileTree;
class NotesWidget;
class WebList;
class StatChart;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
private:
Ui::MainWindow *ui;
QHBoxLayout* whole_layout;
QVBoxLayout* left_layout;
QVBoxLayout* middle_layout;
QVBoxLayout* filter_layout;
QHBoxLayout* function_layout;
QStackedLayout* right_layout;
FilterWidget* filter_widget;
FilterWidget* sub_filter_widget = 0;
FileTree* file_tree; //文件树
QWidget* central_widget; //中部组件
QPushButton* transfer_button; //转运按钮
//QPushButton* chart_button;
MyPushButton* chart_button;
//QPushButton* notes_button;
MyPushButton* notes_button;
//QPushButton* website_button;
MyPushButton* website_button;
//QPushButton* recent_button;
MyPushButton* recent_button;
WebList* web_list;
NotesWidget* stikey_notes;
StatChart* charts = 0;
Recent* recent;
QMenuBar* head_menu_bar;
QMenu* settings;
QMenu* help;
IntroWidget* introduction;
int table_num;
void glob_flush();
void trans_files();
void mod_table();
void add_table();
void del_table();
void show_notes();
void del_right_layout();
void show_websites();
void show_charts();
void show_recent();
void init_right();
void action_reflect(QAction* action);
void show_intro();
void paintEvent(QPaintEvent *);
};
#endif // MAINWINDOW_H