-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsyncpage.h
More file actions
42 lines (37 loc) · 963 Bytes
/
syncpage.h
File metadata and controls
42 lines (37 loc) · 963 Bytes
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
#ifndef SYNCPAGE_H
#define SYNCPAGE_H
#include "psynclib.h"
#include "addsyncdialog.h"
#include "settingspage.h"
#include <QWidget>
#include <QTreeWidgetItem>
#include <QIcon>
class PCloudApp;
class PCloudWindow;
class SyncPage : public QWidget // or qmainwin
{
Q_OBJECT
public:
friend class PCloudWindow;
friend class addSyncDialog;
explicit SyncPage(PCloudWindow *w, PCloudApp *a,QWidget *parent = 0);
void load();
void loadSettings(); //prv
private:
PCloudWindow *win;
PCloudApp *app;
QIcon syncIcon, stopIcon, emptyFldrIcon, pFldrIcon;
QString patterns;
void initSyncPage();
public slots:
void openTab(int index);
void refreshTab(int index);
void syncDoubleClicked(QTreeWidgetItem *item,int col);
//void modifySync();
void stopSync(QTreeWidgetItem *item,int col);
void addSync();
void saveSettings();
void cancelSettings();
void enableSaveBtn();
};
#endif // SYNCPAGE_H