forked from QNnovation/ZBC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zbc_sideframe.h
50 lines (37 loc) · 1.16 KB
/
zbc_sideframe.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
#ifndef ZBCSIDEFRAME_H
#define ZBCSIDEFRAME_H
#include <QFrame>
#include <QSet>
class QLabel;
class ZBC_SideFrame : public QFrame
{
Q_OBJECT
public:
explicit ZBC_SideFrame(const QString path, QWidget *pwgt = 0);
~ZBC_SideFrame();
void clearListOfSelectedItems();
QString getCurrentPath();
QStringList getListOfSelectedItems() const;
const QStringList& getListofPathHistory() const;
private:
QString m_sCurPath;
QStringList stlSelectedItems;
QHash<QString, int> m_hashFiles;
QSet<QString> m_setDirs;
QStringList m_lstPathHistory;
QStringList::const_iterator m_iterPathHistory;
void setListOfItemsInDir();
qint64 getSizeOfFiles(QHash<QString, int>) const;
qint64 getSizeOfSelectedFiles( bool retSum = true );
void setTextForLblDirInfo(QLabel*);
QString formatedSize(int) const;
signals:
void Active();
void DirChanged(const QString&);
void goBack();
void goForward();
public slots:
void savePathHistory(const QString&);
void setPathHistory(const QString&);
};
#endif // ZBCSIDEFRAME_H