annotate src/include/ui_utils.h @ 6:1d82f6e04d7d

Update: add first parts to the settings dialog
author Paper <mrpapersonic@gmail.com>
date Wed, 16 Aug 2023 00:49:17 -0400
parents 23d0d9319a00
children 07a9095eaeed
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
1 #ifndef __ui_utils_h
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
2 #define __ui_utils_h
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
3 #include <QWidget>
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
4 #include <QString>
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
5 #include <QPoint>
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
6 #include <QSize>
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
7 #include <QDateTime>
6
1d82f6e04d7d Update: add first parts to the settings dialog
Paper <mrpapersonic@gmail.com>
parents: 2
diff changeset
8 #include <QIcon>
2
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
9 namespace UiUtils {
6
1d82f6e04d7d Update: add first parts to the settings dialog
Paper <mrpapersonic@gmail.com>
parents: 2
diff changeset
10 QIcon CreateSideBarIcon(const char* file);
2
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
11 bool IsInDarkMode();
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
12 std::string GetLengthFromQDateTime(QDateTime stamp);
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
13 QPlainTextEdit* CreateTextParagraph(QWidget* parent, QString title, QString data, QPoint point, QSize size);
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
14 QPlainTextEdit* CreateTextParagraphWithLabels(QWidget* parent, QString title, QString label, QString data, QPoint point, QSize size);
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
15 QPlainTextEdit* CreateSelectableTextParagraph(QWidget* parent, QString title, QString data, QPoint point, QSize size);
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
16 void CreateTextHeader(QWidget* parent, QString title, QPoint point, QSize size);
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
17 };
1
1ae666fdf9e2 *: initial commit
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
18 #endif // __ui_utils_h