-
Notifications
You must be signed in to change notification settings - Fork 1
/
syncing_view.h
50 lines (46 loc) · 1.36 KB
/
syncing_view.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
#ifndef SYNCING_VIEW_H
#define SYNCING_VIEW_H
#include<QDateTime>
#include "ElaProgressBar.h"
#include "ElaScrollPage.h"
#include "ElaScrollPage.h"
#include "filecard.h"
class ElaToggleButton;
class ElaPushButton;
class QVBoxLayout;
class FileCardProxy;
class SyncingPage : public ElaScrollPage
{
Q_OBJECT
public:
SyncingPage(QWidget* parent = nullptr);
~SyncingPage();
void addFile(QString filename, quint64 datasize,double speed,int progress,int syncStatus,int id);
void removeFile(int id);
//void modifyFile(int d,int s,int p,int id);
//void modifyFile(int p,int id);
void modifyFile(quint64 totalSize,quint64 currentSize,int id);
void totalProgress();
void PauseChecked();
void CancelChecked();
FileCardProxy* _filecardProxy;
QDateTime preTime;
QDateTime currentTime;
int preSize=0;
int Size=0;
QWidget* filenameWidget = new QWidget();
private:
ElaProgressBar* _progressBar{nullptr};
ElaPushButton* _pushButton{nullptr};
ElaToggleButton* _toggleButton{nullptr};
ElaPushButton* _PauseButton{nullptr};
ElaPushButton* _CancelButton{nullptr};
ElaPushButton*_selectAllButton{nullptr};
protected:
void resizeEvent(QResizeEvent* event) override;
void showEvent(QShowEvent* event) override;
private slots:
void toggleSelectAll();
void buttonShowHide();
};
#endif // SYNCING_VIEW_H