Kactus2
Kactus2 reference guide
Loading...
Searching...
No Matches
KactusColors.h
Go to the documentation of this file.
1//-----------------------------------------------------------------------------
2// File: KactusColors.h
3//-----------------------------------------------------------------------------
4// Project: Kactus2
5// Author: Joni-Matti Maatta
6// Date: 6.6.2012
7//
8// Description:
9// Common colors used in Kactus2.
10//-----------------------------------------------------------------------------
11
12#ifndef KACTUSCOLORS_H
13#define KACTUSCOLORS_H
14
15#include <KactusAPI/KactusAPIGlobal.h>
16
17#include <QColor>
18#include <QtGlobal>
19
20class QPalette;
21
22namespace KactusColors
23{
25 extern KACTUS2_API QColor KACTUS_BLUE;
26 extern KACTUS2_API QColor KACTUS_GREEN;
27
29 extern KACTUS2_API QColor ERROR_COLOR;
30
32 extern KACTUS2_API QColor DEFAULT_WINDOW_BG;
33
35 extern KACTUS2_API QColor TABLE_GRIDLINE;
36
38 extern KACTUS2_API QColor DOCK_WIDGET_TITLE_BG;
39
41 extern KACTUS2_API QColor WARNING;
42
44 extern KACTUS2_API QColor REGULAR_TEXT; // Regular text.
45 extern KACTUS2_API QColor DISABLED_TEXT; // Text in disabled or uneditable elements.
46 extern KACTUS2_API QColor REGULAR_MESSAGE; // Regular console messages.
47
49 extern KACTUS2_API QColor REGULAR_FIELD; // Backgrounds and regular fields.
50 extern KACTUS2_API QColor MANDATORY_FIELD; // Must be filled.
51 extern KACTUS2_API QColor DISABLED_FIELD; // Has no relevance in current context.
52 extern KACTUS2_API QColor INVALID_FIELD; // The value is not valid.
53 extern KACTUS2_API QColor STRONG_FIELD; // Has more weight than others.
54 extern KACTUS2_API QColor LOGICAL_PORT_FIELD; // Relates to logical ports.
55
57 extern KACTUS2_API QColor TEXT_BODY_HIGHLIGHT; // Background for text bodies such as logic.
58 extern KACTUS2_API QColor FUNCTION_HIGHLIGHT; // Functions().
59 extern KACTUS2_API QColor PREPROCESSOR_HIGHLIGHT; // Preprocessor #macros.
60 extern KACTUS2_API QColor STRING_HIGHLIGHT; // "Character strings."
61
63 extern KACTUS2_API QColor REGULAR_CONNECTION; // Most connections.
64 extern KACTUS2_API QColor BROKEN_CONNECTION; // Broken/invalid connections.
65 extern KACTUS2_API QColor COM_CONNECTION; // COM connections.
66 extern KACTUS2_API QColor CONNECTION_UNDERCROSSING; // Used for crossing interconnections.
67 extern KACTUS2_API QColor UNKNOWN_CONNECTION; // Connections unfitting to other categories.
68
70 extern KACTUS2_API QColor MASTER_INTERFACE;
71 extern KACTUS2_API QColor SLAVE_INTERFACE;
72 extern KACTUS2_API QColor MIRROREDMASTER_INTERFACE;
73 extern KACTUS2_API QColor MIRROREDSLAVE_INTERFACE;
74 extern KACTUS2_API QColor SYSTEM_INTERFACE;
75 extern KACTUS2_API QColor MIRROREDSYSTEM_INTERFACE;
76 extern KACTUS2_API QColor MONITOR_INTERFACE;
77 extern KACTUS2_API QColor INVALID_INTERFACE; // The interface is somehow invalid, eg. lacks a mode or type.
78 extern KACTUS2_API QColor ENDPOINT_TYPE_API; // The interface is for API connections.
79 extern KACTUS2_API QColor ADHOC_PORT;
80
82 extern KACTUS2_API QColor MISSING_COMPONENT; // The component of the instance does not exist.
83 extern KACTUS2_API QColor DRAFT_COMPONENT; // The instance is a draft for a new component.
84 extern KACTUS2_API QColor HW_BUS_COMPONENT; // The component of the instance is a bus or a bridge.
85 extern KACTUS2_API QColor HW_COMPONENT; // The component of the instance is hardware component.
86 extern KACTUS2_API QColor SW_COMPONENT; // The component of the instance is software component.
87
89 extern KACTUS2_API QColor DIAGRAM_SELECTION; // Selections in design diagrams.
90 extern KACTUS2_API QColor DIAGRAM_ALLOWED_INTERFACE; // Highlights allowed interface for a connection.
91 extern KACTUS2_API QColor DIAGRAM_GRID; // Diagram background dot grid color
92 extern KACTUS2_API QColor DIAGRAM_COLUMN_HEADER; // Background color for column headers.
93 extern KACTUS2_API QColor STICKY_NOTE_BACKGROUND; // Sticky note background
94 extern KACTUS2_API QColor STICKY_NOTE_TEXT; // Sticky note text color
95 extern KACTUS2_API QColor ASSOCIATION_LINE; // Association line color
96
98 extern KACTUS2_API QColor MEMORY_BLOCK;
99 extern KACTUS2_API QColor ADDRESS_SEGMENT;
100 extern KACTUS2_API QColor ADDRESS_SEGMENT_UNSEGMENTED;
101
102 extern KACTUS2_API QColor MEM_MAP_COLOR;
103 extern KACTUS2_API QColor ADDR_BLOCK_COLOR;
104 extern KACTUS2_API QColor REGISTER_FILE_COLOR;
105 extern KACTUS2_API QColor REGISTER_COLOR;
106 extern KACTUS2_API QColor FIELD_COLOR;
107 extern KACTUS2_API QColor SUBSPACE_MAP_COLOR;
108 extern KACTUS2_API QColor MEM_ITEM_EXTENSION;
109
110 extern KACTUS2_API QColor MEMORY_DESIGNER_TEXT;
111 extern KACTUS2_API QColor MEM_DESIGNER_CONNECTION;
112 extern KACTUS2_API QColor MEM_DESIGNER_LOCAL_MAP_CONNECTION;
113 extern KACTUS2_API QColor MEM_DESIGNER_ADDR_SPACE_CONNECTION;
114
116 extern KACTUS2_API QColor MEM_GRAPH_ITEM_BORDER;
117
119 extern KACTUS2_API QColor DEPENDECY_ADDED; // Added dependency.
120 extern KACTUS2_API QColor DEPENDECY_COVERAGE; // Used to illustrate the extent of dependencies.
121 extern KACTUS2_API QColor ROW_SEPARATOR; // Used to separate rows on a list.
122
123 // Colors for ribbon
124 extern KACTUS2_API QColor RIBBON_GRADIENT_TOP;
125 extern KACTUS2_API QColor RIBBON_GRADIENT_BOTTOM;
126 extern KACTUS2_API QColor RIBBONGROUP_TITLE_GRADIENT_TOP;
127 extern KACTUS2_API QColor RIBBONGROUP_TITLE_GRADIENT_BOTTOM;
128 extern KACTUS2_API QColor RIBBONGROUP_TITLE_TEXT;
129
131 extern KACTUS2_API QColor PORTMAP_ALT_ROW;
132
134 namespace Importer
135 {
136 extern KACTUS2_API QColor PORT;
137 extern KACTUS2_API QColor MODELPARAMETER;
138 extern KACTUS2_API QColor PARAMETER;
139 extern KACTUS2_API QColor VIEWNAME;
140 extern KACTUS2_API QColor INSTANCECOLOR;
141 }
142}
143
144//-----------------------------------------------------------------------------
145
146#endif // KACTUSCOLORS_H
Colors for importer plugins.
KACTUS2_API QColor PARAMETER
KACTUS2_API QColor MODELPARAMETER
KACTUS2_API QColor PORT
KACTUS2_API QColor INSTANCECOLOR
KACTUS2_API QColor VIEWNAME
KACTUS2_API QColor ADHOC_PORT
KACTUS2_API QColor STRING_HIGHLIGHT
KACTUS2_API QColor MONITOR_INTERFACE
KACTUS2_API QColor ADDRESS_SEGMENT
KACTUS2_API QColor STICKY_NOTE_BACKGROUND
KACTUS2_API QColor REGULAR_MESSAGE
KACTUS2_API QColor WARNING
Warnings.
KACTUS2_API QColor ADDRESS_SEGMENT_UNSEGMENTED
KACTUS2_API QColor MEMORY_DESIGNER_TEXT
KACTUS2_API QColor KACTUS_BLUE
Icon and visual design base colors.
KACTUS2_API QColor SYSTEM_INTERFACE
KACTUS2_API QColor MIRROREDMASTER_INTERFACE
KACTUS2_API QColor KACTUS_GREEN
KACTUS2_API QColor MEM_DESIGNER_LOCAL_MAP_CONNECTION
KACTUS2_API QColor MEM_DESIGNER_ADDR_SPACE_CONNECTION
KACTUS2_API QColor DIAGRAM_ALLOWED_INTERFACE
KACTUS2_API QColor FUNCTION_HIGHLIGHT
KACTUS2_API QColor REGULAR_TEXT
Colors used in text.
KACTUS2_API QColor DOCK_WIDGET_TITLE_BG
Dock widget.
KACTUS2_API QColor LOGICAL_PORT_FIELD
KACTUS2_API QColor DIAGRAM_COLUMN_HEADER
KACTUS2_API QColor STICKY_NOTE_TEXT
KACTUS2_API QColor RIBBONGROUP_TITLE_TEXT
KACTUS2_API QColor INVALID_INTERFACE
KACTUS2_API QColor DEPENDECY_COVERAGE
KACTUS2_API QColor REGULAR_FIELD
Colors used as field backgrounds.
KACTUS2_API QColor MEM_MAP_COLOR
KACTUS2_API QColor RIBBONGROUP_TITLE_GRADIENT_TOP
KACTUS2_API QColor RIBBON_GRADIENT_TOP
KACTUS2_API QColor HW_COMPONENT
KACTUS2_API QColor REGISTER_COLOR
KACTUS2_API QColor ASSOCIATION_LINE
KACTUS2_API QColor REGULAR_CONNECTION
Colors used in design diagram interconnections.
KACTUS2_API QColor UNKNOWN_CONNECTION
KACTUS2_API QColor MASTER_INTERFACE
Colors corresponding each available interface mode.
KACTUS2_API QColor ERROR_COLOR
Errors.
KACTUS2_API QColor DISABLED_FIELD
KACTUS2_API QColor ADDR_BLOCK_COLOR
KACTUS2_API QColor TABLE_GRIDLINE
Table view gridline color.
KACTUS2_API QColor RIBBONGROUP_TITLE_GRADIENT_BOTTOM
KACTUS2_API QColor DISABLED_TEXT
KACTUS2_API QColor DIAGRAM_SELECTION
Other colors used in design.
KACTUS2_API QColor SUBSPACE_MAP_COLOR
KACTUS2_API QColor PORTMAP_ALT_ROW
Portmap editor alternate color.
KACTUS2_API QColor MISSING_COMPONENT
Colors used in component instances.
KACTUS2_API QColor STRONG_FIELD
KACTUS2_API QColor DEPENDECY_ADDED
Colors used in dependency analysis.
KACTUS2_API QColor REGISTER_FILE_COLOR
KACTUS2_API QColor MIRROREDSLAVE_INTERFACE
KACTUS2_API QColor COM_CONNECTION
KACTUS2_API QColor FIELD_COLOR
KACTUS2_API QColor DIAGRAM_GRID
KACTUS2_API QColor SLAVE_INTERFACE
KACTUS2_API QColor MEM_DESIGNER_CONNECTION
KACTUS2_API QColor ROW_SEPARATOR
KACTUS2_API QColor BROKEN_CONNECTION
KACTUS2_API QColor MEMORY_BLOCK
Colors used for memory/address sections in the memory designer.
KACTUS2_API QColor DRAFT_COMPONENT
KACTUS2_API QColor MANDATORY_FIELD
KACTUS2_API QColor CONNECTION_UNDERCROSSING
KACTUS2_API QColor PREPROCESSOR_HIGHLIGHT
KACTUS2_API QColor MEM_GRAPH_ITEM_BORDER
Memory visualizer.
KACTUS2_API QColor DEFAULT_WINDOW_BG
Default window background color assigned by style/theme.
KACTUS2_API QColor ENDPOINT_TYPE_API
KACTUS2_API QColor HW_BUS_COMPONENT
KACTUS2_API QColor TEXT_BODY_HIGHLIGHT
Colors for languages and generated texts.
KACTUS2_API QColor MEM_ITEM_EXTENSION
KACTUS2_API QColor SW_COMPONENT
KACTUS2_API QColor RIBBON_GRADIENT_BOTTOM
KACTUS2_API QColor INVALID_FIELD
KACTUS2_API QColor MIRROREDSYSTEM_INTERFACE