comparison src/include/ui_utils.h @ 2:23d0d9319a00

Update Also converted everything to LF from CRLF
author Paper <mrpapersonic@gmail.com>
date Sat, 12 Aug 2023 03:16:26 -0400
parents 1ae666fdf9e2
children 1d82f6e04d7d
comparison
equal deleted inserted replaced
1:1ae666fdf9e2 2:23d0d9319a00
1 #ifndef __ui_utils_h 1 #ifndef __ui_utils_h
2 #define __ui_utils_h 2 #define __ui_utils_h
3 #include <QWidget>
4 #include <QString>
5 #include <QPoint>
6 #include <QSize>
7 #include <QDateTime>
3 namespace UiUtils { 8 namespace UiUtils {
4 /* Creates a text paragraph with a title header. 9 bool IsInDarkMode();
5 Note: the `height` parameters for both of these functions is actually 10 std::string GetLengthFromQDateTime(QDateTime stamp);
6 the height of the data on its own. 11 QPlainTextEdit* CreateTextParagraph(QWidget* parent, QString title, QString data, QPoint point, QSize size);
7 Returns a pointer to the data wxStaticText element. */ 12 QPlainTextEdit* CreateTextParagraphWithLabels(QWidget* parent, QString title, QString label, QString data, QPoint point, QSize size);
8 wxStaticText* CreateTextParagraph(wxWindow* parent, const wchar_t* title, const wchar_t* data, int width, int height, int x = 0, int y = 0); 13 QPlainTextEdit* CreateSelectableTextParagraph(QWidget* parent, QString title, QString data, QPoint point, QSize size);
9 14 void CreateTextHeader(QWidget* parent, QString title, QPoint point, QSize size);
10 wxStaticText* CreateTextParagraphWithLabels(wxWindow* parent, const wchar_t* title, const wchar_t* label, const wchar_t* data, int width, int height, int x = 0, int y = 0);
11 wxTextCtrl* CreateSelectableTextParagraph(wxWindow* parent, const wchar_t* title, const wchar_t* data, int width, int height, int x = 0, int y = 0);
12 void CreateTextHeader(wxWindow* parent, const wchar_t* title, int width, int x = 0, int y = 0);
13 }; 15 };
14 #endif // __ui_utils_h 16 #endif // __ui_utils_h