mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-06 06:19:52 +08:00
39 lines
749 B
C++
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
|