File indexing completed on 2024-04-28 07:52:42

0001 /*
0002     SPDX-FileCopyrightText: 2005 Thomas Nagy <tnagyemail-mail@yahoo.fr>
0003     SPDX-FileCopyrightText: 2007-2008 Fela Winkelmolen <fela.kde@gmail.com>
0004 
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 
0008 #ifndef GLOBALS_H
0009 #define GLOBALS_H
0010 
0011 #include <QColor>
0012 
0013 int const MinimumWidth = 400;
0014 int const MinimumHeight = 400;
0015 
0016 // used for the rotation of cables
0017 int const AnimationTime = 400;
0018 
0019 // relative numbers
0020 const qreal BoardBorder = 0.04;
0021 const qreal OverlayBorder = 0.02;
0022 
0023 // ratio of minimum filled cells to total cells
0024 const qreal minCellRatio = 0.8;
0025 
0026 // border of the computer and server sprites inside the cells
0027 const qreal CellForegroundBorder = 0.1;
0028 
0029 const QColor HoveredCellColor(255, 255, 255, 30);
0030 const QColor LockedCellColor(0, 0, 0, 100);
0031 
0032 enum Directions { // bitwise ORed
0033   Up    = 1,
0034   Right = 2,
0035   Down  = 4,
0036   Left  = 8,
0037   
0038   None  = 0
0039 };
0040 
0041 // TODO: use settings??
0042 // easy to convert to bool ("isWrapped = wrapping;")
0043 enum Wrapping {NotWrapped = 0, Wrapped = 1};
0044 
0045 #endif // GLOBALS_H