diff options
Diffstat (limited to 'src/gui/general/GUIPalette.cpp')
-rw-r--r-- | src/gui/general/GUIPalette.cpp | 130 |
1 files changed, 65 insertions, 65 deletions
diff --git a/src/gui/general/GUIPalette.cpp b/src/gui/general/GUIPalette.cpp index 4705c21..a58886e 100644 --- a/src/gui/general/GUIPalette.cpp +++ b/src/gui/general/GUIPalette.cpp @@ -29,112 +29,112 @@ #include "base/Colour.h" #include "document/ConfigGroups.h" #include <kconfig.h> -#include <qcolor.h> +#include <tqcolor.h> namespace Rosegarden { -QColor GUIPalette::getColour(const char* const colourName) +TQColor GUIPalette::getColour(const char* const colourName) { KConfig* config = kapp->config(); config->setGroup(ColoursConfigGroup); - QColor res = getInstance()->m_defaultsMap[colourName]; + TQColor res = getInstance()->m_defaultsMap[colourName]; config->readColorEntry(colourName, &res); return res; } -Colour GUIPalette::convertColour(const QColor &input) +Colour GUIPalette::convertColour(const TQColor &input) { int r, g, b; input.rgb(&r, &g, &b); return Colour(r, g, b); } -QColor GUIPalette::convertColour(const Colour& input) +TQColor GUIPalette::convertColour(const Colour& input) { - return QColor(input.getRed(), input.getGreen(), input.getBlue()); + return TQColor(input.getRed(), input.getGreen(), input.getBlue()); } GUIPalette::GUIPalette() { m_defaultsMap[ActiveRecordTrack] = Qt::red; - m_defaultsMap[SegmentCanvas] = QColor(230, 230, 230); + m_defaultsMap[SegmentCanvas] = TQColor(230, 230, 230); m_defaultsMap[SegmentBorder] = Qt::black; // 1.0 colors - // m_defaultsMap[RecordingInternalSegmentBlock] = QColor(255, 182, 193); - // m_defaultsMap[RecordingAudioSegmentBlock] = QColor(182, 222, 255); + // m_defaultsMap[RecordingInternalSegmentBlock] = TQColor(255, 182, 193); + // m_defaultsMap[RecordingAudioSegmentBlock] = TQColor(182, 222, 255); // MIDI recording preview (pale yellow) - m_defaultsMap[RecordingInternalSegmentBlock] = QColor(255, 234, 182); + m_defaultsMap[RecordingInternalSegmentBlock] = TQColor(255, 234, 182); // audio recording preview (pale red) - m_defaultsMap[RecordingAudioSegmentBlock] = QColor(255, 182, 193); + m_defaultsMap[RecordingAudioSegmentBlock] = TQColor(255, 182, 193); m_defaultsMap[RecordingSegmentBorder] = Qt::black; - m_defaultsMap[RepeatSegmentBorder] = QColor(130, 133, 170); + m_defaultsMap[RepeatSegmentBorder] = TQColor(130, 133, 170); - m_defaultsMap[SegmentAudioPreview] = QColor(39, 71, 22); + m_defaultsMap[SegmentAudioPreview] = TQColor(39, 71, 22); m_defaultsMap[SegmentInternalPreview] = Qt::white; m_defaultsMap[SegmentLabel] = Qt::black; m_defaultsMap[SegmentSplitLine] = Qt::black; m_defaultsMap[MatrixElementBorder] = Qt::black; - m_defaultsMap[MatrixElementBlock] = QColor(98, 128, 232); + m_defaultsMap[MatrixElementBlock] = TQColor(98, 128, 232); m_defaultsMap[MatrixOverlapBlock] = Qt::black; - m_defaultsMap[LoopRulerBackground] = QColor(120, 120, 120); + m_defaultsMap[LoopRulerBackground] = TQColor(120, 120, 120); m_defaultsMap[LoopRulerForeground] = Qt::white; m_defaultsMap[LoopHighlight] = Qt::white; - m_defaultsMap[TempoBase] = QColor(197, 211, 125); + m_defaultsMap[TempoBase] = TQColor(197, 211, 125); - //m_defaultsMap[TextRulerBackground] = QColor(60, 205, 230, QColor::Hsv); - // m_defaultsMap[TextRulerBackground] = QColor(120, 90, 238, QColor::Hsv); - // m_defaultsMap[TextRulerBackground] = QColor(210, 220, 140); - m_defaultsMap[TextRulerBackground] = QColor(226, 232, 187); + //m_defaultsMap[TextRulerBackground] = TQColor(60, 205, 230, TQColor::Hsv); + // m_defaultsMap[TextRulerBackground] = TQColor(120, 90, 238, TQColor::Hsv); + // m_defaultsMap[TextRulerBackground] = TQColor(210, 220, 140); + m_defaultsMap[TextRulerBackground] = TQColor(226, 232, 187); m_defaultsMap[TextRulerForeground] = Qt::white; - m_defaultsMap[ChordNameRulerBackground] = QColor(230, 230, 230); + m_defaultsMap[ChordNameRulerBackground] = TQColor(230, 230, 230); m_defaultsMap[ChordNameRulerForeground] = Qt::black; - m_defaultsMap[RawNoteRulerBackground] = QColor(240, 240, 240); + m_defaultsMap[RawNoteRulerBackground] = TQColor(240, 240, 240); m_defaultsMap[RawNoteRulerForeground] = Qt::black; - m_defaultsMap[LevelMeterGreen] = QColor(0, 200, 0); - m_defaultsMap[LevelMeterOrange] = QColor(255, 165, 0); - m_defaultsMap[LevelMeterRed] = QColor(200, 0, 0); + m_defaultsMap[LevelMeterGreen] = TQColor(0, 200, 0); + m_defaultsMap[LevelMeterOrange] = TQColor(255, 165, 0); + m_defaultsMap[LevelMeterRed] = TQColor(200, 0, 0); - // m_defaultsMap[LevelMeterSolidGreen] = QColor(0, 140, 0); - m_defaultsMap[LevelMeterSolidGreen] = QColor(84, 177, 248); // blue! - // m_defaultsMap[LevelMeterSolidOrange] = QColor(220, 120, 0); - m_defaultsMap[LevelMeterSolidOrange] = QColor(255, 225, 0); - // m_defaultsMap[LevelMeterSolidRed] = QColor(255, 50, 50); - m_defaultsMap[LevelMeterSolidRed] = QColor(255, 0, 0); + // m_defaultsMap[LevelMeterSolidGreen] = TQColor(0, 140, 0); + m_defaultsMap[LevelMeterSolidGreen] = TQColor(84, 177, 248); // blue! + // m_defaultsMap[LevelMeterSolidOrange] = TQColor(220, 120, 0); + m_defaultsMap[LevelMeterSolidOrange] = TQColor(255, 225, 0); + // m_defaultsMap[LevelMeterSolidRed] = TQColor(255, 50, 50); + m_defaultsMap[LevelMeterSolidRed] = TQColor(255, 0, 0); m_defaultsMap[BarLine] = Qt::black; - m_defaultsMap[BarLineIncorrect] = QColor(211, 0, 31); - m_defaultsMap[BeatLine] = QColor(100, 100, 100); - m_defaultsMap[SubBeatLine] = QColor(212, 212, 212); - m_defaultsMap[StaffConnectingLine] = QColor(192, 192, 192); - m_defaultsMap[StaffConnectingTerminatingLine] = QColor(128, 128, 128); + m_defaultsMap[BarLineIncorrect] = TQColor(211, 0, 31); + m_defaultsMap[BeatLine] = TQColor(100, 100, 100); + m_defaultsMap[SubBeatLine] = TQColor(212, 212, 212); + m_defaultsMap[StaffConnectingLine] = TQColor(192, 192, 192); + m_defaultsMap[StaffConnectingTerminatingLine] = TQColor(128, 128, 128); m_defaultsMap[Pointer] = Qt::darkBlue; - m_defaultsMap[PointerRuler] = QColor(100, 100, 100); + m_defaultsMap[PointerRuler] = TQColor(100, 100, 100); - m_defaultsMap[InsertCursor] = QColor(160, 104, 186); - m_defaultsMap[InsertCursorRuler] = QColor(160, 136, 170); + m_defaultsMap[InsertCursor] = TQColor(160, 104, 186); + m_defaultsMap[InsertCursorRuler] = TQColor(160, 136, 170); - m_defaultsMap[TrackDivider] = QColor(145, 145, 145); - //m_defaultsMap[MovementGuide] = QColor(172, 230, 139); - m_defaultsMap[MovementGuide] = QColor(62, 161, 194); - //m_defaultsMap[MovementGuide] = QColor(255, 189, 89); - m_defaultsMap[SelectionRectangle] = QColor(103, 128, 211); - m_defaultsMap[SelectedElement] = QColor(0, 54, 232); + m_defaultsMap[TrackDivider] = TQColor(145, 145, 145); + //m_defaultsMap[MovementGuide] = TQColor(172, 230, 139); + m_defaultsMap[MovementGuide] = TQColor(62, 161, 194); + //m_defaultsMap[MovementGuide] = TQColor(255, 189, 89); + m_defaultsMap[SelectionRectangle] = TQColor(103, 128, 211); + m_defaultsMap[SelectedElement] = TQColor(0, 54, 232); const int SelectedElementHue = 225; const int SelectedElementMinValue = 220; @@ -147,42 +147,42 @@ GUIPalette::GUIPalette() const int OutRangeNoteHue = 0; const int OutRangeNoteMinValue = 200; - m_defaultsMap[TextAnnotationBackground] = QColor(255, 255, 180); + m_defaultsMap[TextAnnotationBackground] = TQColor(255, 255, 180); - m_defaultsMap[TextLilyPondDirectiveBackground] = QColor(95, 157, 87); + m_defaultsMap[TextLilyPondDirectiveBackground] = TQColor(95, 157, 87); m_defaultsMap[AudioCountdownBackground] = Qt::darkGray; m_defaultsMap[AudioCountdownForeground] = Qt::red; // m_defaultsMap[RotaryFloatBackground] = Qt::cyan; - m_defaultsMap[RotaryFloatBackground] = QColor(182, 222, 255); + m_defaultsMap[RotaryFloatBackground] = TQColor(182, 222, 255); m_defaultsMap[RotaryFloatForeground] = Qt::black; - m_defaultsMap[RotaryPastelBlue] = QColor(205, 212, 255); - m_defaultsMap[RotaryPastelRed] = QColor(255, 168, 169); - m_defaultsMap[RotaryPastelGreen] = QColor(231, 255, 223); - m_defaultsMap[RotaryPastelOrange] = QColor(255, 233, 208); - m_defaultsMap[RotaryPastelYellow] = QColor(249, 255, 208); + m_defaultsMap[RotaryPastelBlue] = TQColor(205, 212, 255); + m_defaultsMap[RotaryPastelRed] = TQColor(255, 168, 169); + m_defaultsMap[RotaryPastelGreen] = TQColor(231, 255, 223); + m_defaultsMap[RotaryPastelOrange] = TQColor(255, 233, 208); + m_defaultsMap[RotaryPastelYellow] = TQColor(249, 255, 208); - m_defaultsMap[MatrixKeyboardFocus] = QColor(224, 112, 8); + m_defaultsMap[MatrixKeyboardFocus] = TQColor(224, 112, 8); - // m_defaultsMap[RotaryPlugin] = QColor(185, 255, 248); - m_defaultsMap[RotaryPlugin] = QColor(185, 200, 248); - // m_defaultsMap[RotaryPlugin] = QColor(185, 185, 185); + // m_defaultsMap[RotaryPlugin] = TQColor(185, 255, 248); + m_defaultsMap[RotaryPlugin] = TQColor(185, 200, 248); + // m_defaultsMap[RotaryPlugin] = TQColor(185, 185, 185); - m_defaultsMap[RotaryMeter] = QColor(255, 100, 0); + m_defaultsMap[RotaryMeter] = TQColor(255, 100, 0); - m_defaultsMap[MarkerBackground] = QColor(185, 255, 248); + m_defaultsMap[MarkerBackground] = TQColor(185, 255, 248); m_defaultsMap[QuickMarker] = Qt::red; - // m_defaultsMap[MuteTrackLED] = QColor(218, 190, 230, QColor::Hsv); - m_defaultsMap[MuteTrackLED] = QColor(211, 194, 238, QColor::Hsv); - m_defaultsMap[RecordMIDITrackLED] = QColor(45, 250, 225, QColor::Hsv); - m_defaultsMap[RecordAudioTrackLED] = QColor(0, 250, 225, QColor::Hsv); + // m_defaultsMap[MuteTrackLED] = TQColor(218, 190, 230, TQColor::Hsv); + m_defaultsMap[MuteTrackLED] = TQColor(211, 194, 238, TQColor::Hsv); + m_defaultsMap[RecordMIDITrackLED] = TQColor(45, 250, 225, TQColor::Hsv); + m_defaultsMap[RecordAudioTrackLED] = TQColor(0, 250, 225, TQColor::Hsv); - m_defaultsMap[PlaybackFaderOutline] = QColor(211, 194, 238, QColor::Hsv); - m_defaultsMap[RecordFaderOutline] = QColor(0, 250, 225, QColor::Hsv); + m_defaultsMap[PlaybackFaderOutline] = TQColor(211, 194, 238, TQColor::Hsv); + m_defaultsMap[RecordFaderOutline] = TQColor(0, 250, 225, TQColor::Hsv); } GUIPalette* GUIPalette::getInstance() |