diff options
author | Vasily_Makarov <danilka.pro@gmail.com> | 2011-06-11 12:04:15 +0400 |
---|---|---|
committer | Vasily_Makarov <danilka.pro@gmail.com> | 2011-06-11 12:04:15 +0400 |
commit | 19f825ee74922fc6bdd7e0f7acea54221a75d257 (patch) | |
tree | 020024769760323ba5f5bfb7599e57b6b50751a7 /saedit/main.h | |
parent | 7c6abc47c5a166e75038fd73a8af5fc0709db4ac (diff) | |
download | evol-tools-19f825ee74922fc6bdd7e0f7acea54221a75d257.tar.gz evol-tools-19f825ee74922fc6bdd7e0f7acea54221a75d257.tar.bz2 evol-tools-19f825ee74922fc6bdd7e0f7acea54221a75d257.tar.xz evol-tools-19f825ee74922fc6bdd7e0f7acea54221a75d257.zip |
saedit: Add show grid toggle possibility and reviewing config structure and functions
Diffstat (limited to 'saedit/main.h')
-rw-r--r-- | saedit/main.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/saedit/main.h b/saedit/main.h index e1d0633..8605e50 100644 --- a/saedit/main.h +++ b/saedit/main.h @@ -29,6 +29,9 @@ const gchar *POSTFIX_FOLDER = "..."; const gchar *SEPARATOR_SLASH = "/"; const gchar *OPTION_SPRITES_DEFAULT = "graphics/sprites/"; +const gboolean KEY_SHOW_GRID_DEFAULT = TRUE; +const gchar *KEY_CLIENTDATA_FOLDER_DEFAULT = ""; + typedef struct { XMLNode *node; @@ -48,6 +51,17 @@ typedef struct { } options; typedef struct { + gchar *clientdata_folder; + gboolean show_grid; +} keys; + +static keys *keys_new() { + keys *res = g_new0(keys, 1); + res->clientdata_folder = KEY_CLIENTDATA_FOLDER_DEFAULT; + res->show_grid = KEY_SHOW_GRID_DEFAULT; +} + +typedef struct { XMLNode *node; int offsetX; int offsetY; @@ -75,6 +89,7 @@ GtkWidget *imagesets_combo_box = NULL; GtkWidget *actions_combo_box = NULL; GtkWidget *animations_combo_box = NULL; GtkWidget *imageset_preview_menu_item = NULL; +GtkWidget *show_grid_menu_item = NULL; GtkSourceBuffer *source_buffer = NULL; @@ -89,6 +104,7 @@ imageset_info *imageset = NULL; sprite_info *current_sprite; guint running_animation = 0; options *paths; +keys *config; static gboolean show_animation_by_sub_nodes (GList *sub_nodes); static gchar *markup_bold(gchar *str); @@ -128,3 +144,4 @@ static void save_config_and_quit(); static void load_options(); static void free_imageset(); static void kill_timeout(int tag); +static void show_grid_menu_item_toggled(GtkCheckMenuItem *checkmenuitem, gpointer user_data); |