Files
yacreader/YACReaderLibrary/add_label_dialog.h
2026-03-13 11:06:25 +01:00

38 lines
710 B
C++

#ifndef ADD_LABEL_DIALOG_H
#define ADD_LABEL_DIALOG_H
#include <QDialog>
#include <QLineEdit>
#include <QListWidget>
#include <QPushButton>
#include "yacreader_global.h"
#include "themable.h"
class AddLabelDialog : public QDialog, protected Themable
{
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:
void applyTheme(const Theme &theme) override;
QLineEdit *edit;
QListWidget *list;
QPushButton *acceptButton;
QPushButton *cancelButton;
};
#endif // ADD_LABEL_DIALOG_H