-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainWindow.h
executable file
·156 lines (132 loc) · 3.21 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
#ifndef FENPRINCIPALE_H
#define FENPRINCIPALE_H
#include<QtWidgets>
#include <QMainWindow>
#include <QCloseEvent>
#include <QKeyEvent>
#include <QContextMenuEvent>
#include <QToolBar>
#include <QToolButton>
#include<QMainWindow>
#include<QFileSystemModel>
#include<QStorageInfo>
#include<QMenuBar>
#include<QToolButton>
#include <QTreeView>
#include<QToolBar>
#include<QPushButton>
#include<QGridLayout>
#include<QTabWidget>
#include <QSplitter>
#include<QLineEdit>
#include<QLabel>
#include<QVBoxLayout>
#include<QProgressBar>
#include<QList>
#include<QListView>
#include<QTableView>
#include <QFlags>
#include <QVariant>
#include <QMenuBar>
#include <QPropertyAnimation>
#include "components/leftWidget.h"
#include "components/CentralWidget.h"
#include "components/Welcome.h"
#include "components/tabwidget.h"
#include "toolbars/toolbarfichiers.h"
class QMainWindow;
QT_BEGIN_NAMESPACE
class QAction;
class QMenu;
class CentralWidget;
class Welcome;
class tabWidget;
class leftWidget;
enum class central{tab,welcome};
Q_DECLARE_FLAGS(Centrals,central);
Q_DECLARE_OPERATORS_FOR_FLAGS(Centrals);
class toolbarfichier;
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow();
CentralWidget *A;
Welcome *w;
//menuoption
QAction *ActionAnalyse;
QAction *ActionRefresh;
QAction *ActionSetting;
/*QClipboard *board;
QString elem;
bool unique= false;
QString currentPath = tabWidget::currentWidget()->fsCurrentPath();
QString currentName = tabWidget::currentWidget()->currentItemName();
QString selected = tabWidget::currentWidget()->view->currentItem()->text(); //l'unique selection*/
public slots:
// void on_picture_clicked();
void onListViewClicked();
void onDownloadsClicked();
void onImageClicked();
void onMusicClicked();
void onVideosClicked();
void onDocumentClicked();
void onDesktopClicked();
private slots :
void setDock(Centrals flags);
void _reculer();
void _avancer();
void onRefreshClicked();
void onHomeClicked();
void onDirChanged(const QString& path);
void onHistoryChanged();
void selecta();
void handleSelect();
void status(int nb);
void configToolbar(Centrals flags);
// void _cut();
// void _paste();
// void _copy();
signals :
void centralChanged(Centrals flags);
protected :
QMainWindow *window;
void setNavBar();
QMenu *Menu;
QMenu *MenuOption;
QMenu *MenuView;
QMenu *MenuNew;
QMenu *MenuSort;
QTreeView *Tree;
toolbarfichier *toolbarFichiers;
QToolBar *Banane;
QToolButton *buton;
QGridLayout *layout;
QTabWidget *onglets;
QWidget *widi;
QLabel *label;
QWidget *page1;
QWidget *page2;
QWidget *page3;
QTabWidget *Tab;
QProgressBar *Bar;
tabWidget *tab;
QVBoxLayout *bayout;
QVBoxLayout *bayout1;
QVBoxLayout *bayout2;
QStorageInfo Storage;
float occupe, Frac;
int index ;
//Dialog *ba;
//les boutons
QToolBar *navig;
QPushButton *home;
// leurs sous menus de menuFichier
QMenuBar *danse;
// QToolButton *view,*New,*sort;
QToolButton *avancer, *reculer, *refresh, *Home;
void connecto();
leftWidget *left;
};
#endif // FENPRINCIPALE_H