-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtaggy.h
104 lines (83 loc) · 2.05 KB
/
taggy.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
#ifndef TAGGY_H
#define TAGGY_H
#define WINDOWS
#include <QUrl>
#include <QDebug>
#include <QMainWindow>
#include <QFileSystemWatcher>
#include <QFileSystemModel>
#include <QCompleter>
#include <QListWidgetItem>
#include <QInputDialog>
#include <QTimer>
#ifdef _MSC_VER
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#define SHMSZ 90000000
#define SHMKEY 1367
#endif //!_MSC_VER
QT_BEGIN_NAMESPACE
class QMimeData;
QT_END_NAMESPACE
#ifdef _MSC_VER
typedef struct
{
char filetaggerdb[10000000];
int filetaggerdb_size;
char history[10000];
int history_size;
}DATA ;
#endif
namespace Ui {
class Taggy;
}
class Taggy : public QMainWindow
{
Q_OBJECT
public:
explicit Taggy(QWidget *parent = 0);
~Taggy();
void SAVEDATABASE();
void OPENDATABASE();
void UPDATE_BROWSELIST();
void UPDATETAGLIST();
void SORTFILELIST();
#ifdef _MSC_VER
void WRITETOSHARED_DB();
bool READFROMSHARED_DB();
#endif
private slots:
void dropEvent(QDropEvent *ev) Q_DECL_OVERRIDE;
void dragEnterEvent(QDragEnterEvent *ev) Q_DECL_OVERRIDE;
void SAVE_TAG_ACTION();
void ADDTODATABASE(QString data );
void UPDATETAGDB(QStringList tags);
void UPDATETAG();
void AUTOCOMPLETETAG();
void REMOVEFROMDATABASE();
void OPEN_FILE();
void exitapp();
void Entertagfind_counterupdate();
void Entertag_counterupdate();
void timeexceeded();
void on_filename_returnPressed();
void on_ENTER_TAG_editingFinished();
void on_ADD_TAG_clicked();
void on_ENTER_TAG_FIND_returnPressed();
void on_ENTER_TAG_FIND_textChanged(const QString &arg1);
void on_REMOVETAG_clicked();
private:
Ui::Taggy *ui;
QFileSystemWatcher *watcher;
QCompleter *completer;
bool stoptagsorting;
QString dbdir;
bool activityover;
int Entertag_counter;
int Entertagfind_counter;
QStringList DATABASE;
QStringList PRESENTDATABASE;
QStringList TAGS;
};
#endif // TAGGY_H