mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-06 14:29:54 +08:00

- Add VLineEdit as a QLineEdit with meta data support; - support custom magic words through [magic_words]; - add %help% for all magic words information;
41 lines
775 B
C++
41 lines
775 B
C++
#ifndef VDIRINFODIALOG_H
|
|
#define VDIRINFODIALOG_H
|
|
|
|
#include <QDialog>
|
|
|
|
class QLabel;
|
|
class VLineEdit;
|
|
class QDialogButtonBox;
|
|
class QString;
|
|
class VDirectory;
|
|
|
|
class VDirInfoDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
VDirInfoDialog(const QString &title,
|
|
const QString &info,
|
|
const VDirectory *directory,
|
|
VDirectory *parentDirectory,
|
|
QWidget *parent = 0);
|
|
|
|
QString getNameInput() const;
|
|
|
|
private slots:
|
|
void handleInputChanged();
|
|
|
|
private:
|
|
void setupUI();
|
|
|
|
VLineEdit *m_nameEdit;
|
|
QLabel *m_warnLabel;
|
|
QDialogButtonBox *m_btnBox;
|
|
|
|
QString title;
|
|
QString info;
|
|
|
|
const VDirectory *m_directory;
|
|
VDirectory *m_parentDirectory;
|
|
};
|
|
#endif // VDIRINFODIALOG_H
|