1 /* 2 Copyright (C) 2010-2014 Kristian Duske 3 4 This file is part of TrenchBroom. 5 6 TrenchBroom is free software: you can redistribute it and/or modify 7 it under the terms of the GNU General Public License as published by 8 the Free Software Foundation, either version 3 of the License, or 9 (at your option) any later version. 10 11 TrenchBroom is distributed in the hope that it will be useful, 12 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 GNU General Public License for more details. 15 16 You should have received a copy of the GNU General Public License 17 along with TrenchBroom. If not, see <http://www.gnu.org/licenses/>. 18 */ 19 20 #ifndef TrenchBroom_ViewConstants_h 21 #define TrenchBroom_ViewConstants_h 22 23 class wxColour; 24 25 namespace TrenchBroom { 26 namespace View { 27 namespace LayoutConstants { 28 #if defined _WIN32 29 static const int DialogOuterMargin = 10; 30 static const int DialogButtonTopMargin = 10; 31 static const int DialogButtonSideMargin = 7; 32 static const int DialogButtonBottomMargin = 10; 33 static const int WideHMargin = 8; 34 static const int MediumHMargin = 6; 35 static const int NarrowHMargin = 4; 36 static const int WideVMargin = 4; 37 static const int NarrowVMargin = 2; 38 static const int StaticBoxSideMargin = 15; 39 static const int StaticBoxTopMargin = 20; 40 static const int StaticBoxBottomMargin = 15; 41 static const int ChoiceTopMargin = 1; 42 static const int ChoiceLeftMargin = 0; 43 static const int ChoiceSizeDelta = 0; 44 static const int TextBoxInnerMargin = 5; 45 static const int TabBarBarLeftMargin = 10; 46 static const int ToggleButtonStyle = 0; 47 #elif defined __APPLE__ 48 static const int DialogOuterMargin = 10; 49 static const int DialogButtonTopMargin = 0; 50 static const int DialogButtonSideMargin = 0; 51 static const int DialogButtonBottomMargin = 3; 52 static const int WideHMargin = 8; 53 static const int MediumHMargin = 4; 54 static const int NarrowHMargin = 2; 55 static const int WideVMargin = 4; 56 static const int NarrowVMargin = 2; 57 static const int StaticBoxSideMargin = 10; 58 static const int StaticBoxTopMargin = 10; 59 static const int StaticBoxBottomMargin = 10; 60 static const int ChoiceTopMargin = 1; 61 static const int ChoiceLeftMargin = 1; 62 static const int ChoiceSizeDelta = 1; 63 static const int TextBoxInnerMargin = 0; 64 static const int TabBarBarLeftMargin = 10; 65 static const int ToggleButtonStyle = 0x08000000; // wxBORDER_SUNKEN 66 #elif defined __linux__ || defined __FreeBSD__ 67 static const int DialogOuterMargin = 10; 68 static const int DialogButtonTopMargin = 10; 69 static const int DialogButtonSideMargin = 0; 70 static const int DialogButtonBottomMargin = 10; 71 static const int WideHMargin = 8; 72 static const int MediumHMargin = 4; 73 static const int NarrowHMargin = 2; 74 static const int WideVMargin = 4; 75 static const int NarrowVMargin = 2; 76 static const int StaticBoxSideMargin = 15; 77 static const int StaticBoxTopMargin = 10; 78 static const int StaticBoxBottomMargin = 30; 79 static const int ChoiceTopMargin = 0; 80 static const int ChoiceLeftMargin = 0; 81 static const int ChoiceSizeDelta = 0; 82 static const int TextBoxInnerMargin = 2; 83 static const int TabBarBarLeftMargin = 10; 84 static const int ToggleButtonStyle = 0; 85 #endif 86 static const int MinPreferenceLabelWidth = 100; 87 static const int HighlightBoxMargin = 5; 88 } 89 90 namespace Colors { 91 const wxColour& defaultText(); 92 const wxColour& highlightText(); 93 const wxColour& disabledText(); 94 const wxColour& borderColor(); 95 const wxColour& separatorColor(); 96 } 97 } 98 } 99 100 #endif 101