Mercurial > minori
annotate include/gui/window.h @ 75:d3e9310598b1
*: refactor some stuff
text: "TextParagraph"s are now called sections, because that's the
actual word for it :P
text: new classes: Line and OneLineSection, solves many problems with
paragraphs that are only one line long (ex. going out of bounds)
http: reworked http stuff to allow threaded get requests, also moved it
to its own file to (hopefully) remove clutter
eventually I'll make a threaded post request method and use that in
the "basic" function
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Wed, 04 Oct 2023 01:42:30 -0400 |
| parents | d0adc4aedfc8 |
| children | c489dd4434af |
| rev | line source |
|---|---|
| 2 | 1 #ifndef __window_h |
| 7 | 2 #define __window_h |
| 9 | 3 #include "core/config.h" |
| 4 #include <QCloseEvent> | |
| 7 | 5 #include <QMainWindow> |
| 6 #include <QWidget> | |
| 2 | 7 |
| 8 class MainWindow : public QMainWindow { | |
| 9 | 9 Q_OBJECT |
| 10 | |
| 2 | 11 public: |
| 12 MainWindow(QWidget* parent = nullptr); | |
| 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 | 15 |
| 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 | 18 }; |
| 19 | |
| 20 #endif // __window_h |
