X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=src%2Fapp-config.h;h=1c418b5680e4828e7679819b01da8046f498da3e;hb=5905b40585298defb8e4230adfe90dfbccb465b9;hp=22af7338ae462267673e4110db510be1e4c78ede;hpb=9cddfd237c6aff9a7a05c637ef7eac3b57580c31;p=emu8051.git diff --git a/src/app-config.h b/src/app-config.h index 22af733..1c418b5 100644 --- a/src/app-config.h +++ b/src/app-config.h @@ -21,6 +21,20 @@ #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 */ @@ -29,8 +43,16 @@ struct app_config_t /* UI settings */ int win_width; int win_height; - int hpane_pos; - int vpane_pos; + 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