File indexing completed on 2024-05-12 05:40:39
0001 /* 0002 Cahoots is a crossplatform real-time collaborative text editor. 0003 0004 Copyright (C) 2010 Chris Dimpfl, Anandi Hira, David Vega 0005 0006 This program is free software: you can redistribute it and/or modify 0007 it under the terms of the GNU General Public License as published by 0008 the Free Software Foundation, either version 3 of the License, or 0009 (at your option) any later version. 0010 0011 This program is distributed in the hope that it will be useful, 0012 but WITHOUT ANY WARRANTY; without even the implied warranty of 0013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0014 GNU General Public License for more details. 0015 0016 You should have received a copy of the GNU General Public License 0017 along with this program. If not, see <http://www.gnu.org/licenses/>. 0018 */ 0019 #include "utilities.h" 0020 0021 #include <QString> 0022 0023 // Fonts 0024 QString Utilities::s_codeFont; // = getSystem() == "Windows" ? "Courier New" : (getSystem() == "Mac" ? "Monaco" : 0025 // "Courier 10 Pitch"); 0026 int Utilities::s_codeFontSize= 8; // = getSystem() == "Mac" ? 11 : 9; 0027 QString Utilities::s_labelFont; // = getSystem() == "Mac" ? "Lucida Grande" : "Verdana"; 0028 int Utilities::s_labelFontSize= 8; // = getSystem() == "Mac" ? 11 : 8; 0029 QString Utilities::s_chatFont; // = getSystem() == "Mac" ? "Lucida Grande" : "Verdana"; 0030 int Utilities::s_chatFontSize= 8; // = getSystem() == "Mac" ? 11 : 8; 0031 0032 Utilities::Utilities() 0033 { 0034 getSystem(); 0035 } 0036 0037 QString Utilities::getSystem() 0038 { 0039 s_codeFont= QStringLiteral("Courier 10 Pitch"); 0040 s_codeFontSize= 9; 0041 s_labelFont= QStringLiteral("Verdana"); 0042 s_labelFontSize= 8; 0043 s_chatFont= QStringLiteral("Verdana"); 0044 s_chatFontSize= 8; 0045 return QStringLiteral("Windows"); 0046 }