MySQL Workbench  6.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
uistyle.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License as
6  * published by the Free Software Foundation; version 2 of the
7  * License.
8  *
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.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
17  * 02110-1301 USA
18  */
19 
20 #ifndef __UISTYLE_H__
21 #define __UISTYLE_H__
22 
23 // Various constants for platform specific look & feel
24 
25 // See related utility functions in utilities.h (such as add_ok_cancel_buttons())
26 
27 #ifdef _WIN32
28 
29 # define MF_WINDOW_PADDING 12
30 # define MF_PANEL_PADDING 12
31 # define MF_BUTTON_SPACING 8
32 # define MF_TABLE_COLUMN_SPACING 8
33 # define MF_TABLE_ROW_SPACING 12
34 
35 #define MF_TEXT_SECTION_PADDING 4
36 #define MF_PANEL_SMALL_PADDING 6
37 
38 #elif defined(__APPLE__)
39 
40 # define MF_WINDOW_PADDING 20
41 # define MF_PANEL_PADDING 12
42 # define MF_BUTTON_SPACING 12
43 # define MF_TABLE_COLUMN_SPACING 8
44 # define MF_TABLE_ROW_SPACING 12
45 
46 #define MF_TEXT_SECTION_PADDING 4
47 #define MF_PANEL_SMALL_PADDING 6
48 
49 #else
50 
51 # define MF_WINDOW_PADDING 12
52 # define MF_PANEL_PADDING 12
53 # define MF_BUTTON_SPACING 12
54 # define MF_TABLE_COLUMN_SPACING 8
55 # define MF_TABLE_ROW_SPACING 12
56 
57 #define MF_TEXT_SECTION_PADDING 4
58 #define MF_PANEL_SMALL_PADDING 6
59 
60 #endif
61 
62 #endif
63 
64 
65 
MySQL Workbench 6.1 documentation