/* Hey EMACS -*- linux-c -*- */ /* $Id: struct.h 2709 2007-12-13 17:37:31Z roms $ */ /* TiEmu - a TI emulator * Copyright (c) 2000-2001, Thomas Corvazier, Romain Lievin * Copyright (c) 2001-2003, Romain Lievin * Copyright (c) 2003, Julien Blache * Copyright (c) 2004, Romain Li�vin * Copyright (c) 2005, Romain Li�vin * * 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 Street - Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef STRUCT_H #define STRUCT_H #ifdef HAVE_CONFIG_H #include #endif #include "paths.h" /* Constants */ #define MAXCHARS 256 #define VIEW_NORMAL 1 #define VIEW_LARGE 2 #define VIEW_FULL 3 #define VIEW_CUSTOM 4 /* General options */ typedef struct { char *skin_file; int skin; int view; float scale; char *keys_file; int kbd_dbg; int console; int fs_type; char *qs_file; int qs_enabled; char *kp_rec_file; int kp_rec_enabled; char *kp_ply_file; int kp_ply_enabled; } TieOptions; /* Screen capture options */ typedef struct { int format; int type; int size; char *file; int counter; char *folder; int shots; int skips; int clipboard; } ScrOptions; /* Debugger options for windows size and placement */ typedef struct { int x; int y; int w; int h; } GdkRect; typedef struct { GdkRect rect; int minimized; int closed; } WinState; typedef struct { WinState bkpts; WinState code; WinState mem; WinState regs; WinState pclog; WinState stack; WinState heap; WinState iop; WinState dock; int transient; WinState calc; int dbg_font_type; char *dbg_font_name; int dbg_dock; } DbgOptions; extern TieOptions options; extern ScrOptions options2; extern DbgOptions options3; #endif