X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=src%2Fgtksizes.h;h=fb483ec6266db8a2a00a4f70719d09485d4dd5f0;hb=47a60dcfbfdb7a29bd933a850292b752970f2af0;hp=462266454972d350da6da2d16c3d984633e07f78;hpb=6a65dca9d597772744524b909f2d89b479b8bf77;p=emu8051.git diff --git a/src/gtksizes.h b/src/gtksizes.h index 4622664..fb483ec 100644 --- a/src/gtksizes.h +++ b/src/gtksizes.h @@ -16,11 +16,17 @@ * * 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., 675 Mass Ave, Cambridge, MA 02139, USA. + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef _GTKSIZES_HPP_ -#define _GTKSIZES_HPP_ +#ifndef _GTKSIZES_H_ +#define _GTKSIZES_H_ + +/* Width, in pixels, of a fixed font symbol. */ +#define FIXED_FONT_SYMBOL_WIDTH 10 + +/* Height, in pixels, of a fixed font symbol. */ +#define FIXED_FONT_SYMBOL_HEIGHT 22 #define NUMBER_OF_BUTTONS 5 #define BUTTON_WIDTH 60 @@ -28,18 +34,19 @@ #define BUTTONS_BAR_WIDTH (NUMBER_OF_BUTTONS * BUTTON_WIDTH) #define BUTTONS_BAR_HEIGHT BUTTON_HEIGHT -#define REG_WIN_WIDTH 100 -#define REG_WIN_HEIGHT 390 +/* 12 symbols + border. */ +#define REG_WIN_WIDTH (FIXED_FONT_SYMBOL_WIDTH * 13) +#define REG_WIN_HEIGHT (FIXED_FONT_SYMBOL_HEIGHT * 24) -#define PGM_WIN_WIDTH 480 -#define PGM_WIN_HEIGHT 390 +#define MEM_WIN_WIDTH (FIXED_FONT_SYMBOL_WIDTH * 68) /* 68 symbols. */ +#define MEM_WIN_HEIGHT (FIXED_FONT_SYMBOL_HEIGHT * 17) -#define MEM_WIN_WIDTH 590 -#define MEM_WIN_HEIGHT 280 +#define PGM_WIN_WIDTH (MEM_WIN_WIDTH - REG_WIN_WIDTH) +#define PGM_WIN_HEIGHT REG_WIN_HEIGHT #define MENU_BAR_HEIGHT 0 -#define MAIN_WIN_WIDTH (REG_WIN_WIDTH + PGM_WIN_WIDTH) +#define MAIN_WIN_WIDTH MEM_WIN_WIDTH #define MAIN_WIN_HEIGHT (BUTTONS_BAR_HEIGHT + REG_WIN_HEIGHT + MEM_WIN_HEIGHT) -#endif +#endif /* _GTKSIZES_H_ */