summaryrefslogtreecommitdiff
path: root/src/ui/ui_setup.cpp
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@mailbox.org>2026-01-08 17:40:15 +0100
committerAldrik Ramaekers <aldrik@mailbox.org>2026-01-08 17:40:15 +0100
commit0d70098dd5b704f2953c63f0c827b46b11935b81 (patch)
tree05efcc8cfac52672b147c2a32a66f87a05f881e7 /src/ui/ui_setup.cpp
parent9b87e0d3123bbc533c2e4d452b16fe82de0e5cd4 (diff)
setup window
Diffstat (limited to 'src/ui/ui_setup.cpp')
-rw-r--r--src/ui/ui_setup.cpp41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/ui/ui_setup.cpp b/src/ui/ui_setup.cpp
new file mode 100644
index 0000000..4f4a120
--- /dev/null
+++ b/src/ui/ui_setup.cpp
@@ -0,0 +1,41 @@
+/*
+* 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 "ui.hpp"
+#include "imgui.h"
+#include "locales.hpp"
+#include "administration_writer.hpp"
+#include "administration_reader.hpp"
+
+void ui::draw_setup()
+{
+ if (ImGui::Button("Load administration")) {
+ if (administration_reader::open_existing(NULL)) {
+ ui::set_state(ui::main_state::UI_SETTINGS);
+ ui::recreate_window_for_main_views();
+ }
+ }
+}
+
+void ui::setup_setup()
+{
+
+}
+
+void ui::destroy_setup()
+{
+
+} \ No newline at end of file