vnote/src/widgets/dialogs/notepropertiesdialog.h
Le Tan 52702a32e9 hard days for VNoteX project
Never say "refactor" again!!!
2020-11-28 23:10:43 +08:00

39 lines
749 B
C++

#ifndef NOTEPROPERTIESDIALOG_H
#define NOTEPROPERTIESDIALOG_H
#include "scrolldialog.h"
namespace vnotex
{
class Node;
class NodeInfoWidget;
class NotePropertiesDialog : public ScrollDialog
{
Q_OBJECT
public:
NotePropertiesDialog(Node *p_node, QWidget *p_parent = nullptr);
protected:
void acceptedButtonClicked() Q_DECL_OVERRIDE;
private slots:
void validateInputs();
private:
void setupUI();
void setupNodeInfoWidget(QWidget *p_parent);
bool validateNameInput(QString &p_msg);
bool saveNoteProperties();
NodeInfoWidget *m_infoWidget = nullptr;
Node *m_node = nullptr;
};
} // ns vnotex
#endif // NOTEPROPERTIESDIALOG_H