X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=src%2Fgtk%2Fapp-config.h;fp=src%2Fgtk%2Fapp-config.h;h=1c418b5680e4828e7679819b01da8046f498da3e;hb=1eb382f72510d50b3636fb88c4bfaf17183672b6;hp=0000000000000000000000000000000000000000;hpb=b8e00ae8a17b9531e3e8b8740687f0767767b995;p=emu8051.git diff --git a/src/gtk/app-config.h b/src/gtk/app-config.h new file mode 100644 index 0000000..1c418b5 --- /dev/null +++ b/src/gtk/app-config.h @@ -0,0 +1,64 @@ +/* + * app_config.h + * + * Copyright (C) 1999 Hugo Villeneuve + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +#ifndef APP_CONFIG_H +#define APP_CONFIG_H 1 + +/* + * Layout1: Layout2: + * + * REGS | PROGRAM | | IRAM + * -------------- REGS | PROGRAM | ---- + * IRAM | | XRAM + * -------------- + * XRAM + */ +enum layout_t { + UI_LAYOUT1 = 1, + UI_LAYOUT2, +}; + +struct app_config_t +{ + /* Emulation options */ + int clear_ram_on_file_load; + + /* UI settings */ + int win_width; + int win_height; + int hpane_pos; /* For registers and program windows. */ + int vpane_pos; /* For internal and external memory windows. */ + int main_pane_pos; /* Between hpane and vpane. */ + + /* View menu options */ + int layout; /* UI Layout 1 or 2 */ + int view_int_memory; + int view_sfr_memory; + int view_ext_memory; + int bits_per_row; /* 8 or 16 */ +}; + +int +app_config_load(void); + +int +app_config_save(void); + +#endif /* APP_CONFIG_H */