-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaddurl.h
47 lines (40 loc) · 1.05 KB
/
addurl.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
#ifndef ADDURL_H
#define ADDURL_H
#include <QDialog>
#include <QLineEdit>
#include <QDialogButtonBox>
#include <QTextEdit>
#include <QLabel>
#include <QCheckBox>
#include <QMessageBox>
#include <QListWidget>
#include <QPushButton>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include "weburl.h"
#include "mainwindow.h"
#include "linkstructure.h"
class AddUrl : public QDialog
{
Q_OBJECT
public:
AddUrl(QWidget *parent = 0, int editedRow=-1, LinkStructure *linkStructure = 0);
weburl *getUrl();
private slots:
void OkButton();
void addTag();
private:
QDialogButtonBox *buttonBox;
QLineEdit *editWeburl;
QLineEdit *editNewTag;
QPushButton *buttonAddTag;
QTextEdit *infourl;
QCheckBox *chkFavorite;
QListWidget *tagsList;
LinkStructure *linkStructure = nullptr;
int editedRow = -1;
void initTags(QList<QString*> *urltags);
void fillTags(weburl *url);
QListWidgetItem *addTagItem(QString *tag, Qt::CheckState isChecked);
};
#endif