You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
682 B
34 lines
682 B
#ifndef LISTEDITORDIALOG_H
|
|
#define LISTEDITORDIALOG_H
|
|
|
|
#include <QDialog>
|
|
|
|
namespace Ui {
|
|
class ListEditorDialog;
|
|
}
|
|
|
|
class ListEditorDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ListEditorDialog(QWidget *parent = nullptr, QString listStr = "", QChar separator = '\0');
|
|
~ListEditorDialog();
|
|
QString list();
|
|
|
|
private slots:
|
|
void onAddItemButtonClicked();
|
|
void onRemoveItemButtonClicked();
|
|
void onMoveUpItemButtonClicked();
|
|
void onMoveDownItemButtonClicked();
|
|
void onOkButtonClicked();
|
|
void onCancelButtonClicked();
|
|
|
|
private:
|
|
Ui::ListEditorDialog *ui;
|
|
QString origListStr;
|
|
bool listModified;
|
|
};
|
|
|
|
#endif // LISTEDITORDIALOG_H
|