summaryrefslogtreecommitdiffstats
path: root/src/widget_data.h
diff options
context:
space:
mode:
authorOlliver Schinagl <o.schinagl@ultimaker.com>2015-06-25 05:20:54 (GMT)
committerOlliver Schinagl <o.schinagl@ultimaker.com>2015-06-25 05:20:54 (GMT)
commit8777c17ad4278f4e24c7210f827f10408731a55f (patch)
treeda457742e83d15d685491d572abd0200298c2284 /src/widget_data.h
parent1cdb21dfc1e577fb60b6a427aaf04c9b408b5d9d (diff)
downloadeulogium-8777c17ad4278f4e24c7210f827f10408731a55f.zip
eulogium-8777c17ad4278f4e24c7210f827f10408731a55f.tar.gz
eulogium-8777c17ad4278f4e24c7210f827f10408731a55f.tar.bz2
rename generic widget_data to ui_widgets
Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
Diffstat (limited to 'src/widget_data.h')
-rw-r--r--src/widget_data.h75
1 files changed, 0 insertions, 75 deletions
diff --git a/src/widget_data.h b/src/widget_data.h
deleted file mode 100644
index 2cab4bc..0000000
--- a/src/widget_data.h
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * function and data types for widgets
- *
- * Copyright (c) 2015 Ultimaker B.V.
- * Author: Olliver Schinagl <o.schinagl@ultimaker.com>
- *
- * SPDX-License-Identifier: AGPL-3.0+
- */
-
-#ifndef _WIDGET_DATA_H
-#define _WIDGET_DATA_H
-
-#include <Ecore.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <stdint.h>
-
-#include "dbus_common.h"
-#include "eulogium_item_list.h"
-
-struct button_cb {
- void (*func)(void *data, Evas_Object *object, void *event_info);
- void *data;
- const char *info;
-};
-
-struct button_def {
- const char *text;
- struct button_cb cb;
- void *data;
-};
-
-struct dir_entry_def {
- void *data;
- char *path;
-};
-
-struct wifi_entry_def {
- void *data;
- char *ssid;
-};
-
-struct menu_entry_def {
- const char *icon;
- const char *label;
- struct list_item item;
- struct dbus_handle dbus;
- Eina_Bool *end; /* remove me */
- const char *footer; /* Primary footer */
- const char *footer_alt; /* Alternating footer */
- Ecore_Timer *toggle_timer;
- void (*func)(void *data, Evas_Object *object, void *event_info);
- void *data;
-};
-
-enum list_type {
- LIST_MENU,
- LIST_FILE,
- LIST_WIFI,
-};
-
-struct menu_def {
- const char *title;
- enum list_type type;
- void *data;
- struct dir_entry_def dir;
- struct wifi_entry_def wifi; /* TODO see if we can put this into a union somehow */
- struct menu_entry_def entry[];
-};
-
-void eulogium_button_cb_set(struct button_def *button, struct button_cb *cb);
-void eulogium_button_cb_data_set(struct button_def *button, void *data);
-void eulogium_button_data_set(struct button_def *button, void *data);
-
-#endif /* _WIDGET_DATA_H */