yacos/client/src/main_window.h

40 lines
764 B
C
Raw Normal View History

2019-07-20 23:50:50 +02:00
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <gtk/gtk.h>
2019-07-24 20:22:10 +02:00
#include "scanner.h"
#include "cart_item.h"
2019-07-28 12:35:22 +02:00
#include "yacos_api.h"
2019-07-20 23:50:50 +02:00
2019-12-13 16:16:23 +01:00
enum yacos_state {STATE_COLLECT, STATE_PROCESS, STATE_REVIEW};
2019-07-20 23:50:50 +02:00
struct mainWindow {
2019-12-13 16:16:23 +01:00
enum yacos_state state;
GtkWidget *main_window;
2019-07-20 23:50:50 +02:00
2019-12-13 16:16:23 +01:00
YacosApi *api;
GtkStack *stack_main;
2019-07-20 23:50:50 +02:00
2019-12-13 16:16:23 +01:00
struct page_intro {
GtkWidget *box;
} page_intro;
2019-07-20 23:50:50 +02:00
2019-12-13 16:16:23 +01:00
struct page_cart {
GtkWidget *box;
GtkListBox *list;
} page_cart;
2019-07-20 23:50:50 +02:00
2019-12-13 16:16:23 +01:00
struct page_processing {
GtkWidget *box;
GtkStack *stack_loading_confirmation;
} page_processing;
2019-07-20 23:50:50 +02:00
};
struct mainWindow *mainWindow_new();
2019-07-28 12:35:22 +02:00
void mainWindow_set_yacos_api(struct mainWindow *mainWindow, YacosApi *api);
2019-07-24 20:22:10 +02:00
void mainWindow_scan_tags(YacosScanner *scanner, struct mainWindow *mainWindow);
2019-07-20 23:50:50 +02:00
#endif // MAINWINDOW_H