GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
QTerminalColors.cpp
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 2011-2019 Michael Goffioul
4 
5 This file is part of QConsole.
6 
7 This program is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11 
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16 
17 You should have received a copy of the GNU General Public License
18 along with this program. If not,
19 see <https://www.gnu.org/licenses/>.
20 
21 */
22 
23 #define WIN32_LEAN_AND_MEAN
24 #include <windows.h>
25 
26 #include "QTerminalColors.h"
27 
28 //////////////////////////////////////////////////////////////////////////////
29 
31  : QMap<int, QColor> ()
32 {
33  (*this)[0] = Qt::white;
34  (*this)[1] = Qt::blue;
35  (*this)[2] = Qt::green;
36  (*this)[3] = Qt::cyan;
37  (*this)[4] = Qt::red;
38  (*this)[5] = Qt::magenta;
39  (*this)[6] = Qt::yellow;
40  (*this)[7] = Qt::black;
41  (*this)[8] = Qt::lightGray;
42  (*this)[9] = Qt::darkBlue;
43  (*this)[10] = Qt::darkGreen;
44  (*this)[11] = Qt::darkCyan;
45  (*this)[12] = Qt::darkRed;
46  (*this)[13] = Qt::darkMagenta;
47  (*this)[14] = Qt::darkYellow;
48  (*this)[15] = Qt::darkGray;
49 }