diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-03-01 18:37:05 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-03-01 18:37:05 +0000 |
commit | 145364a8af6a1fec06556221e66d4b724a62fc9a (patch) | |
tree | 53bd71a544008c518034f208d64c932dc2883f50 /src/gui/general/GUIPalette.h | |
download | rosegarden-145364a8af6a1fec06556221e66d4b724a62fc9a.tar.gz rosegarden-145364a8af6a1fec06556221e66d4b724a62fc9a.zip |
Added old abandoned KDE3 version of the RoseGarden MIDI tool
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1097595 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gui/general/GUIPalette.h')
-rw-r--r-- | src/gui/general/GUIPalette.h | 185 |
1 files changed, 185 insertions, 0 deletions
diff --git a/src/gui/general/GUIPalette.h b/src/gui/general/GUIPalette.h new file mode 100644 index 0000000..c8760fb --- /dev/null +++ b/src/gui/general/GUIPalette.h @@ -0,0 +1,185 @@ + +/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ + +/* + 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 <qcolor.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 QColor getColour(const char* const colourName); + + static Colour convertColour(const QColor &input); + static QColor 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(); + QColor getDefaultColour(const char* const colourName); + + //--------------- Data members --------------------------------- + static GUIPalette* getInstance(); + static GUIPalette* m_instance; + + typedef std::map<const char* const, QColor> colourmap; + + colourmap m_defaultsMap; +}; + + + +} + +#endif |