annotate include/gui/window.h @ 50:10868c3fb2be

text.cpp: set paragraph width from document, labelled texts are now... dependent on sizeHint()
author Paper <mrpapersonic@gmail.com>
date Mon, 25 Sep 2023 13:50:56 -0400
parents d0adc4aedfc8
children c489dd4434af
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
1 #ifndef __window_h
7
Paper <mrpapersonic@gmail.com>
parents: 6
diff changeset
2 #define __window_h
9
5c0397762b53 INCOMPLETE: megacommit :)
Paper <mrpapersonic@gmail.com>
parents: 7
diff changeset
3 #include "core/config.h"
5c0397762b53 INCOMPLETE: megacommit :)
Paper <mrpapersonic@gmail.com>
parents: 7
diff changeset
4 #include <QCloseEvent>
7
Paper <mrpapersonic@gmail.com>
parents: 6
diff changeset
5 #include <QMainWindow>
Paper <mrpapersonic@gmail.com>
parents: 6
diff changeset
6 #include <QWidget>
2
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
7
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
8 class MainWindow : public QMainWindow {
9
5c0397762b53 INCOMPLETE: megacommit :)
Paper <mrpapersonic@gmail.com>
parents: 7
diff changeset
9 Q_OBJECT
5c0397762b53 INCOMPLETE: megacommit :)
Paper <mrpapersonic@gmail.com>
parents: 7
diff changeset
10
2
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
11 public:
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
12 MainWindow(QWidget* parent = nullptr);
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
13 void SetActivePage(QWidget* page);
4
5af270662505 Set override functions as override
Paper <mrpapersonic@gmail.com>
parents: 2
diff changeset
14 void closeEvent(QCloseEvent* event) override;
2
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
15
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
16 private:
6
1d82f6e04d7d Update: add first parts to the settings dialog
Paper <mrpapersonic@gmail.com>
parents: 4
diff changeset
17 QWidget* main_widget;
2
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
18 };
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
19
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
20 #endif // __window_h