diff 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
line wrap: on
line diff
--- a/src/include/ui_utils.h	Tue Aug 08 19:49:15 2023 -0400
+++ b/src/include/ui_utils.h	Sat Aug 12 03:16:26 2023 -0400
@@ -1,14 +1,16 @@
-#ifndef __ui_utils_h
-#define __ui_utils_h
-namespace UiUtils {
-	/* Creates a text paragraph with a title header.
-	   Note: the `height` parameters for both of these functions is actually
-	   the height of the data on its own.
-	   Returns a pointer to the data wxStaticText element. */
-	wxStaticText* CreateTextParagraph(wxWindow* parent, const wchar_t* title, const wchar_t* data, int width, int height, int x = 0, int y = 0);
-
-	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);
-	wxTextCtrl* CreateSelectableTextParagraph(wxWindow* parent, const wchar_t* title, const wchar_t* data, int width, int height, int x = 0, int y = 0);
-	void CreateTextHeader(wxWindow* parent, const wchar_t* title, int width, int x = 0, int y = 0);
-};
+#ifndef __ui_utils_h
+#define __ui_utils_h
+#include <QWidget>
+#include <QString>
+#include <QPoint>
+#include <QSize>
+#include <QDateTime>
+namespace UiUtils {
+	bool IsInDarkMode();
+	std::string GetLengthFromQDateTime(QDateTime stamp);
+	QPlainTextEdit* CreateTextParagraph(QWidget* parent, QString title, QString data, QPoint point, QSize size);
+	QPlainTextEdit* CreateTextParagraphWithLabels(QWidget* parent, QString title, QString label, QString data, QPoint point, QSize size);
+	QPlainTextEdit* CreateSelectableTextParagraph(QWidget* parent, QString title, QString data, QPoint point, QSize size);
+	void CreateTextHeader(QWidget* parent, QString title, QPoint point, QSize size);
+};
 #endif // __ui_utils_h
\ No newline at end of file