OPT added to MAkefile; KanjiView::Cell constructor: fg,bg changed to int (Fl_Color...
[aoi.git] / src / gui_settings.hxx
blob3aea1c8244dd962302f300270c40d3b26e4cd298
1 /*
2 Copyright 2013 Karel Matas
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 #ifndef _GUI_SETTINGS_HXX
18 #define _GUI_SETTINGS_HXX
20 /*! \file gui_settings.hxx
21 * Defines the OS dependant usleep() macro and main window title.
24 // function usleep()
25 #ifdef WINDOWS
26 #include <windows.h>
27 // Sleep(v) causes too slow GUI redraw
28 #define usleep(v) Sleep(v/100)
29 #else
30 #include <unistd.h>
31 #endif
33 #define WIN_TITLE "Aoi (alpha.03, Build: " __DATE__ ")"
36 namespace aoi_ui {
37 const int WIN_WIDTH = 800;
38 const int WIN_HEIGHT = 600;
39 const int FONT_KANJI = 250;
40 // const int FONT_KANJI_ONLY = 71;
43 #endif // _GUI_SETTINGS_HXX