21 #ifndef LINEINPUTDIALOG_H
22 #define LINEINPUTDIALOG_H
24 #include "Gui/Utils/Widgets/Dialog.h"
25 #include "Utils/Pimpl.h"
27 UI_FWD(LineInputDialog)
53 LineInputDialog(
const QString& title,
const QString& infoText,
const QString& inputText, QWidget* parent=
nullptr);
54 LineInputDialog(
const QString& title,
const QString& infoText, QWidget* parent=
nullptr);
57 void setHeaderText(
const QString&
text);
58 void setInfoText(
const QString&
text);
59 void setCompleterText(
const QStringList& lst);
79 void setPlaceholderText(
const QString&
text);
81 void showInfo(
bool b,
const QString& infoPrefix=QString());
93 void textEdited(
const QString&
text);
96 void showEvent(QShowEvent* e)
override;
97 void closeEvent(QCloseEvent* e)
override;
100 static QString getRenameFilename(QWidget* parent,
const QString& oldName,
const QString& parentPath=QString());
101 static QString getNewFilename(QWidget* parent,
const QString& info,
const QString& parentPath=QString());
105 #endif // LINEINPUTDIALOG_H