SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
titlenotespage.h
Go to the documentation of this file.
1
14#ifndef TITLENOTESPAGE_H
15#define TITLENOTESPAGE_H
16
18
19class QAction;
20class QTextEdit;
21
22namespace openswmmvis::ui
23{
24
26{
27 Q_OBJECT
28
29public:
30 explicit TitleNotesPage(SimOptionsContext &ctx, QWidget *parent = nullptr);
31
32 [[nodiscard]] QString title() const override;
33 void read() override;
34 int write() override;
35
36private:
37 void buildUi();
38
39 QTextEdit *m_notesEdit = nullptr;
40 QAction *m_boldAction = nullptr;
41 QAction *m_italicAction = nullptr;
42 QAction *m_underlineAction = nullptr;
43
45 QString m_initialHtml;
46};
47
48} // namespace openswmmvis::ui
49
50#endif // TITLENOTESPAGE_H
Definition simoptionscontext.h:31
Definition simoptionspage.h:25
Definition titlenotespage.h:26
void read() override
engine → widgets. Block signals while setting.
Definition titlenotespage.cpp:113
int write() override
widgets → engine via ctx_.writeIfChanged; returns the sum.
Definition titlenotespage.cpp:141
QString title() const override
Sidebar row text, already tr()'d.
Definition titlenotespage.cpp:32
Definition openswmmvislayer.h:43
QVector< int > parent
union-find
Definition pslgminsize.cpp:176