GUI::GUI() - added dic_input->take_focus()
[aoi.git] / src / gui_settings.hxx
blob18af8d1ec70622cc32858f42c0013546305916f1
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
21 // function usleep()
22 #ifdef WINDOWS
23 #include <windows.h>
24 // Sleep(v) causes too slow GUI redraw
25 #define usleep(v) Sleep(v/100)
26 #else
27 #include <unistd.h>
28 #endif
30 #define WIN_TITLE "Aoi (alpha.02, Build: " __DATE__ ")"
32 /*! \file gui_settings.hxx
33 * Defines the OS dependant usleep() macro and main window title.
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