You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
764 B
40 lines
764 B
#ifndef MAINWINDOW_H
|
|
#define MAINWINDOW_H
|
|
|
|
#include <gtk/gtk.h>
|
|
#include "scanner.h"
|
|
#include "cart_item.h"
|
|
#include "yacos_api.h"
|
|
|
|
enum yacos_state {STATE_COLLECT, STATE_PROCESS, STATE_REVIEW};
|
|
|
|
struct mainWindow {
|
|
enum yacos_state state;
|
|
|
|
GtkWidget *main_window;
|
|
|
|
YacosApi *api;
|
|
GtkStack *stack_main;
|
|
|
|
struct page_intro {
|
|
GtkWidget *box;
|
|
} page_intro;
|
|
|
|
struct page_cart {
|
|
GtkWidget *box;
|
|
GtkListBox *list;
|
|
} page_cart;
|
|
|
|
struct page_processing {
|
|
GtkWidget *box;
|
|
GtkStack *stack_loading_confirmation;
|
|
} page_processing;
|
|
};
|
|
|
|
struct mainWindow *mainWindow_new();
|
|
|
|
void mainWindow_set_yacos_api(struct mainWindow *mainWindow, YacosApi *api);
|
|
void mainWindow_scan_tags(YacosScanner *scanner, struct mainWindow *mainWindow);
|
|
|
|
#endif // MAINWINDOW_H
|