-
Notifications
You must be signed in to change notification settings - Fork 0
/
taglistwidget.h
57 lines (46 loc) · 1.2 KB
/
taglistwidget.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
#ifndef TAGLISTWIDGET_H
#define TAGLISTWIDGET_H
#include <QWidget>
#include <QVBoxLayout>
#include <QListView>
#include <QLineEdit>
#include <QMenuBar>
#include <QAction>
#include <QMap>
#include <qsortfilterproxymodelfixed.h>
#include <QIdentityProxyModel>
#include <QAbstractItemModel>
#include <QDebug>
#include <QPushButton>
#include "taglistmodeldropcheckable.h"
class TagListWidget : public QWidget
{
Q_OBJECT
private:
// The model to be displayed and its proxy to filter
TagListModelDropCheckable *_model;
QAbstractProxyModel *_proxyModel;
QVBoxLayout *_layout;
QLineEdit *_searchBox;
QListView *_view;
QPushButton *_filterValidateButton;
bool filterIsOn = false;
public:
explicit TagListWidget(QWidget *parent=0);
~TagListWidget();
void connectActions(QMap<QString, QAction *> *);
void setModel(TagListModelDropCheckable *);
signals:
void viewFileList(QModelIndexList *);
public slots:
void addElement();
void deleteElement();
void copyElement();
void pasteElement();
void activateFind();
void filterTags();
void requestedFilter();
void renameElement();
void doubleClicked(QModelIndex);
};
#endif // TAGLISTWIDGET_H