blob: 52b978b543c2d62bc94989be8b2960508abb5822 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
|
/*
Rosegarden
A MIDI and audio sequencer and musical notation editor.
This program is Copyright 2000-2008
Guillaume Laurent <[email protected]>,
Chris Cannam <[email protected]>,
Richard Bown <[email protected]>
The moral rights of Guillaume Laurent, Chris Cannam, and Richard
Bown to claim authorship of this work have been asserted.
Other copyrights also apply to some parts of this work. Please
see the AUTHORS file and individual file headers for details.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version. See the file
COPYING included with this distribution for more information.
*/
#ifndef _RG_GUIPALETTE_H_
#define _RG_GUIPALETTE_H_
#include "base/Colour.h"
#include <map>
#include <tqcolor.h>
namespace Rosegarden
{
/**
* Definitions of colours to be used throughout the Rosegarden GUI.
*
* They're in this file not so much to allow them to be easily
* changed, as to ensure a certain amount of consistency between
* colours for different functions that might end up being seen
* at the same time.
*/
class GUIPalette
{
public:
static TQColor getColour(const char* const colourName);
static Colour convertColour(const TQColor &input);
static TQColor convertColour(const Colour &input);
static const char* const ActiveRecordTrack;
static const char* const SegmentCanvas;
static const char* const SegmentBorder;
static const char* const RecordingInternalSegmentBlock;
static const char* const RecordingAudioSegmentBlock;
static const char* const RecordingSegmentBorder;
static const char* const RepeatSegmentBorder;
static const char* const SegmentAudioPreview;
static const char* const SegmentInternalPreview;
static const char* const SegmentLabel;
static const char* const SegmentSplitLine;
static const char* const MatrixElementBorder;
static const char* const MatrixElementBlock;
static const char* const MatrixOverlapBlock;
static const char* const LoopRulerBackground;
static const char* const LoopRulerForeground;
static const char* const LoopHighlight;
static const char* const TempoBase;
static const char* const TextRulerBackground;
static const char* const TextRulerForeground;
static const char* const ChordNameRulerBackground;
static const char* const ChordNameRulerForeground;
static const char* const RawNoteRulerBackground;
static const char* const RawNoteRulerForeground;
static const char* const LevelMeterGreen;
static const char* const LevelMeterOrange;
static const char* const LevelMeterRed;
static const char* const LevelMeterSolidGreen;
static const char* const LevelMeterSolidOrange;
static const char* const LevelMeterSolidRed;
static const char* const BarLine;
static const char* const BarLineIncorrect;
static const char* const BeatLine;
static const char* const SubBeatLine;
static const char* const StaffConnectingLine;
static const char* const StaffConnectingTerminatingLine;
static const char* const Pointer;
static const char* const PointerRuler;
static const char* const InsertCursor;
static const char* const InsertCursorRuler;
static const char* const TrackDivider;
static const char* const MovementGuide;
static const char* const SelectionRectangle;
static const char* const SelectedElement;
static const int SelectedElementHue;
static const int SelectedElementMinValue;
static const int HighlightedElementHue;
static const int HighlightedElementMinValue;
static const int QuantizedNoteHue;
static const int QuantizedNoteMinValue;
static const int TriggerNoteHue;
static const int TriggerNoteMinValue;
static const int OutRangeNoteHue;
static const int OutRangeNoteMinValue;
static const int CollisionHaloHue;
static const int CollisionHaloSaturation;
static const char* const TextAnnotationBackground;
static const char* const TextLilyPondDirectiveBackground;
static const char* const AudioCountdownBackground;
static const char* const AudioCountdownForeground;
static const char* const RotaryFloatBackground;
static const char* const RotaryFloatForeground;
static const char* const RotaryPastelBlue;
static const char* const RotaryPastelRed;
static const char* const RotaryPastelGreen;
static const char* const RotaryPastelOrange;
static const char* const RotaryPastelYellow;
static const char* const MatrixKeyboardFocus;
static const char* const RotaryPlugin;
static const char* const RotaryMeter;
static const char* const MarkerBackground;
static const char* const QuickMarker;
static const char* const MuteTrackLED;
static const char* const RecordMIDITrackLED;
static const char* const RecordAudioTrackLED;
static const char* const PlaybackFaderOutline;
static const char* const RecordFaderOutline;
static const int AudioDefaultIndex;
protected:
GUIPalette();
TQColor getDefaultColour(const char* const colourName);
//--------------- Data members ---------------------------------
static GUIPalette* getInstance();
static GUIPalette* m_instance;
typedef std::map<const char* const, TQColor> colourmap;
colourmap m_defaultsMap;
};
}
#endif
|