summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@mailbox.org>2026-01-09 16:15:27 +0100
committerAldrik Ramaekers <aldrik@mailbox.org>2026-01-09 16:15:27 +0100
commitccacaf0582bcea4a71ec8247ade0fd75e4ca99bf (patch)
treeded2c1096149fee09faa9707aef55fc2af4319f9 /src/ui
parent210404a73706993d197c1290d5a411394e176fbe (diff)
refactor library includes, build file
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/imgui_extensions.cpp18
-rw-r--r--src/ui/ui_contacts.cpp3
-rw-r--r--src/ui/ui_earnings.cpp2
-rw-r--r--src/ui/ui_expenses.cpp2
-rw-r--r--src/ui/ui_invoices.cpp2
-rw-r--r--src/ui/ui_log.cpp3
-rw-r--r--src/ui/ui_main.cpp5
-rw-r--r--src/ui/ui_projects.cpp3
-rw-r--r--src/ui/ui_setup.cpp11
-rw-r--r--src/ui/ui_tax.cpp2
10 files changed, 35 insertions, 16 deletions
diff --git a/src/ui/imgui_extensions.cpp b/src/ui/imgui_extensions.cpp
index 4268746..b3fc748 100644
--- a/src/ui/imgui_extensions.cpp
+++ b/src/ui/imgui_extensions.cpp
@@ -1,4 +1,21 @@
+/*
+* Copyright (c) 2025 Aldrik Ramaekers <aldrik.ramaekers@gmail.com>
+*
+* Permission to use, copy, modify, and/or distribute this software for any
+* purpose with or without fee is hereby granted, provided that the above
+* copyright notice and this permission notice appear in all copies.
+*
+* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+*/
+
#include <time.h>
+#include <tinyfiledialogs/tinyfiledialogs.h>
#include "ui.hpp"
#include "strops.hpp"
@@ -6,7 +23,6 @@
#include "config.hpp"
#include "locales.hpp"
#include "countries.hpp"
-#include "tinyfiledialogs.h"
#include "administration.hpp"
#include "administration_writer.hpp"
diff --git a/src/ui/ui_contacts.cpp b/src/ui/ui_contacts.cpp
index f3581dd..b1fa01b 100644
--- a/src/ui/ui_contacts.cpp
+++ b/src/ui/ui_contacts.cpp
@@ -14,8 +14,9 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include <imgui/imgui.h>
+
#include "ui.hpp"
-#include "imgui.h"
#include "strops.hpp"
#include "config.hpp"
#include "memops.hpp"
diff --git a/src/ui/ui_earnings.cpp b/src/ui/ui_earnings.cpp
index afe0210..b93bd75 100644
--- a/src/ui/ui_earnings.cpp
+++ b/src/ui/ui_earnings.cpp
@@ -14,9 +14,9 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include <imgui/imgui.h>
#include "ui.hpp"
-#include "imgui.h"
#include "memops.hpp"
#include "locales.hpp"
#include "administration.hpp"
diff --git a/src/ui/ui_expenses.cpp b/src/ui/ui_expenses.cpp
index 45a0646..1e74508 100644
--- a/src/ui/ui_expenses.cpp
+++ b/src/ui/ui_expenses.cpp
@@ -15,10 +15,10 @@
*/
#include <time.h>
+#include <imgui/imgui.h>
#include <ImGuiDatePicker/ImGuiDatePicker.hpp>
#include "ui.hpp"
-#include "imgui.h"
#include "memops.hpp"
#include "strops.hpp"
#include "locales.hpp"
diff --git a/src/ui/ui_invoices.cpp b/src/ui/ui_invoices.cpp
index 78e5b31..06f1456 100644
--- a/src/ui/ui_invoices.cpp
+++ b/src/ui/ui_invoices.cpp
@@ -15,10 +15,10 @@
*/
#include <time.h>
+#include <imgui/imgui.h>
#include <ImGuiDatePicker/ImGuiDatePicker.hpp>
#include "ui.hpp"
-#include "imgui.h"
#include "memops.hpp"
#include "config.hpp"
#include "strops.hpp"
diff --git a/src/ui/ui_log.cpp b/src/ui/ui_log.cpp
index 1f4aa84..08cb803 100644
--- a/src/ui/ui_log.cpp
+++ b/src/ui/ui_log.cpp
@@ -14,8 +14,9 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include <imgui/imgui.h>
+
#include "ui.hpp"
-#include "imgui.h"
#include "logger.hpp"
#include "locales.hpp"
diff --git a/src/ui/ui_main.cpp b/src/ui/ui_main.cpp
index ed6fbec..0fff65d 100644
--- a/src/ui/ui_main.cpp
+++ b/src/ui/ui_main.cpp
@@ -14,11 +14,12 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include <imgui/imgui.h>
+#include <tinyfiledialogs/tinyfiledialogs.h>
+
#include "ui.hpp"
-#include "imgui.h"
#include "administration.hpp"
#include "locales.hpp"
-#include "tinyfiledialogs.h"
#include "administration_writer.hpp"
#include "administration_reader.hpp"
diff --git a/src/ui/ui_projects.cpp b/src/ui/ui_projects.cpp
index b3241f4..a43cd9b 100644
--- a/src/ui/ui_projects.cpp
+++ b/src/ui/ui_projects.cpp
@@ -14,8 +14,9 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include <imgui/imgui.h>
+
#include "ui.hpp"
-#include "imgui.h"
#include "administration.hpp"
#include "administration_writer.hpp"
#include "locales.hpp"
diff --git a/src/ui/ui_setup.cpp b/src/ui/ui_setup.cpp
index 8693b60..069c336 100644
--- a/src/ui/ui_setup.cpp
+++ b/src/ui/ui_setup.cpp
@@ -14,19 +14,18 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include <GLFW/glfw3.h>
+#include <imgui/imgui.h>
+#include <IconFontCppHeaders/IconsFontAwesome5.h>
+
#include "ui.hpp"
-#include "imgui.h"
#include "strops.hpp"
#include "config.hpp"
#include "locales.hpp"
#include "administration_writer.hpp"
#include "administration_reader.hpp"
-#include <GLFW/glfw3.h>
-
-#include "stb/stb_image.h"
-
-#include "IconFontCppHeaders/IconsFontAwesome5.h"
+#include <stb/stb_image.h>
int ui::load_image(const char* filename)
{
diff --git a/src/ui/ui_tax.cpp b/src/ui/ui_tax.cpp
index 1b1e374..f4176a6 100644
--- a/src/ui/ui_tax.cpp
+++ b/src/ui/ui_tax.cpp
@@ -14,9 +14,9 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include <imgui/imgui.h>
#include "ui.hpp"
-#include "imgui.h"
#include "memops.hpp"
#include "strops.hpp"
#include "locales.hpp"