mirror of
https://github.com/YACReader/yacreader
synced 2025-05-25 09:50:33 -04:00
32 lines
552 B
C++
32 lines
552 B
C++
#ifndef ADD_LABEL_DIALOG_H
|
|
#define ADD_LABEL_DIALOG_H
|
|
|
|
#include <QtWidgets>
|
|
|
|
#include "yacreader_global.h"
|
|
|
|
class AddLabelDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit AddLabelDialog(QWidget *parent = nullptr);
|
|
YACReader::LabelColors selectedColor();
|
|
QString name();
|
|
signals:
|
|
|
|
public slots:
|
|
int exec() override;
|
|
|
|
protected slots:
|
|
void validateName(const QString &name);
|
|
|
|
protected:
|
|
QLineEdit *edit;
|
|
QListWidget *list;
|
|
|
|
QPushButton *acceptButton;
|
|
QPushButton *cancelButton;
|
|
};
|
|
|
|
#endif // ADD_LABEL_DIALOG_H
|