forked from qt-creator/qt-creator
Debugger: Consolidate icon storage handling
We settled now on global objects being fine for the purpose in Core and ProjectExplorer, so there's no point in using something more fancy in the debugger. Change-Id: I72e45f398c09d22894419c274dfbea77da0fc153 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -25,104 +25,54 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "debugger_global.h"
|
||||
|
||||
#include <utils/icon.h>
|
||||
|
||||
namespace Debugger {
|
||||
namespace Icons {
|
||||
|
||||
const Utils::Icon BREAKPOINT({
|
||||
{QLatin1String(":/debugger/images/breakpoint.png"), Utils::Theme::IconsErrorColor}}, Utils::Icon::Tint);
|
||||
const Utils::Icon BREAKPOINT_DISABLED({
|
||||
{QLatin1String(":/debugger/images/breakpoint_disabled.png"), Utils::Theme::IconsErrorColor}}, Utils::Icon::Tint);
|
||||
const Utils::Icon BREAKPOINT_PENDING({
|
||||
{QLatin1String(":/debugger/images/breakpoint.png"), Utils::Theme::IconsErrorColor},
|
||||
{QLatin1String(":/debugger/images/breakpoint_pending_overlay.png"), Utils::Theme::PanelTextColorDark}}, Utils::Icon::IconStyleOptions(Utils::Icon::Tint | Utils::Icon::PunchEdges));
|
||||
const Utils::Icon BREAKPOINTS(
|
||||
QLatin1String(":/debugger/images/debugger_breakpoints.png"));
|
||||
const Utils::Icon WATCHPOINT({
|
||||
{QLatin1String(":/core/images/eye_open.png"), Utils::Theme::TextColorNormal}}, Utils::Icon::Tint);
|
||||
const Utils::Icon TRACEPOINT({
|
||||
{QLatin1String(":/core/images/eye_open.png"), Utils::Theme::TextColorNormal},
|
||||
{QLatin1String(":/debugger/images/tracepointoverlay.png"), Utils::Theme::TextColorNormal}}, Utils::Icon::Tint | Utils::Icon::PunchEdges);
|
||||
const Utils::Icon CONTINUE(
|
||||
QLatin1String(":/debugger/images/debugger_continue.png"));
|
||||
const Utils::Icon CONTINUE_FLAT({
|
||||
{QLatin1String(":/debugger/images/debugger_continue_1_mask.png"), Utils::Theme::IconsInterruptToolBarColor},
|
||||
{QLatin1String(":/debugger/images/debugger_continue_2_mask.png"), Utils::Theme::IconsRunToolBarColor},
|
||||
{QLatin1String(":/projectexplorer/images/debugger_beetle_mask.png"), Utils::Theme::IconsDebugColor}});
|
||||
const Utils::Icon DEBUG_CONTINUE_SMALL({
|
||||
{QLatin1String(":/projectexplorer/images/continue_1_small.png"), Utils::Theme::IconsInterruptColor},
|
||||
{QLatin1String(":/projectexplorer/images/continue_2_small.png"), Utils::Theme::IconsRunColor},
|
||||
{QLatin1String(":/projectexplorer/images/debugger_overlay_small.png"), Utils::Theme::PanelTextColorMid}}, Utils::Icon::MenuTintedStyle);
|
||||
const Utils::Icon DEBUG_CONTINUE_SMALL_TOOLBAR({
|
||||
{QLatin1String(":/projectexplorer/images/continue_1_small.png"), Utils::Theme::IconsInterruptToolBarColor},
|
||||
{QLatin1String(":/projectexplorer/images/continue_2_small.png"), Utils::Theme::IconsRunToolBarColor},
|
||||
{QLatin1String(":/projectexplorer/images/debugger_overlay_small.png"), Utils::Theme::IconsDebugColor}});
|
||||
const Utils::Icon INTERRUPT(
|
||||
QLatin1String(":/debugger/images/debugger_interrupt.png"));
|
||||
const Utils::Icon INTERRUPT_FLAT({
|
||||
{QLatin1String(":/debugger/images/debugger_interrupt_mask.png"), Utils::Theme::IconsInterruptToolBarColor},
|
||||
{QLatin1String(":/projectexplorer/images/debugger_beetle_mask.png"), Utils::Theme::IconsDebugColor}});
|
||||
const Utils::Icon DEBUG_INTERRUPT_SMALL({
|
||||
{QLatin1String(":/core/images/interrupt_small.png"), Utils::Theme::IconsInterruptColor},
|
||||
{QLatin1String(":/projectexplorer/images/debugger_overlay_small.png"), Utils::Theme::PanelTextColorMid}}, Utils::Icon::MenuTintedStyle);
|
||||
const Utils::Icon DEBUG_INTERRUPT_SMALL_TOOLBAR({
|
||||
{QLatin1String(":/core/images/interrupt_small.png"), Utils::Theme::IconsInterruptToolBarColor},
|
||||
{QLatin1String(":/projectexplorer/images/debugger_overlay_small.png"), Utils::Theme::IconsDebugColor}});
|
||||
const Utils::Icon DEBUG_EXIT_SMALL({
|
||||
{QLatin1String(":/core/images/stop_small.png"), Utils::Theme::IconsStopColor},
|
||||
{QLatin1String(":/projectexplorer/images/debugger_overlay_small.png"), Utils::Theme::PanelTextColorMid}}, Utils::Icon::MenuTintedStyle);
|
||||
const Utils::Icon DEBUG_EXIT_SMALL_TOOLBAR({
|
||||
{QLatin1String(":/core/images/stop_small.png"), Utils::Theme::IconsStopToolBarColor},
|
||||
{QLatin1String(":/projectexplorer/images/debugger_overlay_small.png"), Utils::Theme::IconsDebugColor}});
|
||||
const Utils::Icon LOCATION({
|
||||
{QLatin1String(":/debugger/images/location_background.png"), Utils::Theme::IconsCodeModelOverlayForegroundColor},
|
||||
{QLatin1String(":/debugger/images/location.png"), Utils::Theme::IconsWarningToolBarColor}}, Utils::Icon::Tint);
|
||||
const Utils::Icon REVERSE_MODE({
|
||||
{QLatin1String(":/debugger/images/debugger_reversemode_background.png"), Utils::Theme::IconsCodeModelOverlayForegroundColor},
|
||||
{QLatin1String(":/debugger/images/debugger_reversemode.png"), Utils::Theme::IconsInfoColor}}, Utils::Icon::Tint);
|
||||
const Utils::Icon APP_ON_TOP({
|
||||
{QLatin1String(":/debugger/images/qml/app-on-top.png"), Utils::Theme::PanelTextColorMid}}, Utils::Icon::MenuTintedStyle);
|
||||
const Utils::Icon APP_ON_TOP_TOOLBAR({
|
||||
{QLatin1String(":/debugger/images/qml/app-on-top.png"), Utils::Theme::IconsBaseColor}});
|
||||
const Utils::Icon SELECT({
|
||||
{QLatin1String(":/debugger/images/qml/select.png"), Utils::Theme::PanelTextColorMid}}, Utils::Icon::MenuTintedStyle);
|
||||
const Utils::Icon SELECT_TOOLBAR({
|
||||
{QLatin1String(":/debugger/images/qml/select.png"), Utils::Theme::IconsBaseColor}});
|
||||
const Utils::Icon EMPTY(
|
||||
QLatin1String(":/debugger/images/debugger_empty_14.png"));
|
||||
const Utils::Icon RECORD_ON({
|
||||
{QLatin1String(":/debugger/images/recordfill.png"), Utils::Theme::IconsStopColor},
|
||||
{QLatin1String(":/debugger/images/recordoutline.png"), Utils::Theme::IconsBaseColor}}, Utils::Icon::Tint | Utils::Icon::DropShadow);
|
||||
const Utils::Icon RECORD_OFF({
|
||||
{QLatin1String(":/debugger/images/recordfill.png"), Utils::Theme::IconsDisabledColor},
|
||||
{QLatin1String(":/debugger/images/recordoutline.png"), Utils::Theme::IconsBaseColor}}, Utils::Icon::Tint | Utils::Icon::DropShadow);
|
||||
// Used in QmlProfiler.
|
||||
DEBUGGER_EXPORT extern const Utils::Icon RECORD_ON;
|
||||
DEBUGGER_EXPORT extern const Utils::Icon RECORD_OFF;
|
||||
|
||||
const Utils::Icon STEP_OVER({
|
||||
{QLatin1String(":/debugger/images/debugger_stepover_small.png"), Utils::Theme::PanelTextColorMid}}, Utils::Icon::MenuTintedStyle);
|
||||
const Utils::Icon STEP_OVER_TOOLBAR({
|
||||
{QLatin1String(":/debugger/images/debugger_stepover_small.png"), Utils::Theme::IconsBaseColor}});
|
||||
const Utils::Icon STEP_INTO({
|
||||
{QLatin1String(":/debugger/images/debugger_stepinto_small.png"), Utils::Theme::PanelTextColorMid}}, Utils::Icon::MenuTintedStyle);
|
||||
const Utils::Icon STEP_INTO_TOOLBAR({
|
||||
{QLatin1String(":/debugger/images/debugger_stepinto_small.png"), Utils::Theme::IconsBaseColor}});
|
||||
const Utils::Icon STEP_OUT({
|
||||
{QLatin1String(":/debugger/images/debugger_stepout_small.png"), Utils::Theme::PanelTextColorMid}}, Utils::Icon::MenuTintedStyle);
|
||||
const Utils::Icon STEP_OUT_TOOLBAR({
|
||||
{QLatin1String(":/debugger/images/debugger_stepout_small.png"), Utils::Theme::IconsBaseColor}});
|
||||
const Utils::Icon RESTART({
|
||||
{QLatin1String(":/debugger/images/debugger_restart_small.png"), Utils::Theme::PanelTextColorMid}}, Utils::Icon::MenuTintedStyle);
|
||||
const Utils::Icon RESTART_TOOLBAR({
|
||||
{QLatin1String(":/debugger/images/debugger_restart_small.png"), Utils::Theme::IconsRunToolBarColor}});
|
||||
const Utils::Icon SINGLE_INSTRUCTION_MODE({
|
||||
{QLatin1String(":/debugger/images/debugger_singleinstructionmode.png"), Utils::Theme::IconsBaseColor}});
|
||||
extern const Utils::Icon BREAKPOINT;
|
||||
extern const Utils::Icon BREAKPOINT_DISABLED;
|
||||
extern const Utils::Icon BREAKPOINT_PENDING;
|
||||
extern const Utils::Icon BREAKPOINTS;
|
||||
extern const Utils::Icon WATCHPOINT;
|
||||
extern const Utils::Icon TRACEPOINT;
|
||||
extern const Utils::Icon CONTINUE;
|
||||
extern const Utils::Icon CONTINUE_FLAT;
|
||||
extern const Utils::Icon DEBUG_CONTINUE_SMALL;
|
||||
extern const Utils::Icon DEBUG_CONTINUE_SMALL_TOOLBAR;
|
||||
extern const Utils::Icon INTERRUPT;
|
||||
extern const Utils::Icon INTERRUPT_FLAT;
|
||||
extern const Utils::Icon DEBUG_INTERRUPT_SMALL;
|
||||
extern const Utils::Icon DEBUG_INTERRUPT_SMALL_TOOLBAR;
|
||||
extern const Utils::Icon DEBUG_EXIT_SMALL;
|
||||
extern const Utils::Icon DEBUG_EXIT_SMALL_TOOLBAR;
|
||||
extern const Utils::Icon LOCATION;
|
||||
extern const Utils::Icon REVERSE_MODE;
|
||||
extern const Utils::Icon APP_ON_TOP;
|
||||
extern const Utils::Icon APP_ON_TOP_TOOLBAR;
|
||||
extern const Utils::Icon SELECT;
|
||||
extern const Utils::Icon SELECT_TOOLBAR;
|
||||
extern const Utils::Icon EMPTY;
|
||||
|
||||
const Utils::Icon MODE_DEBUGGER_CLASSIC(
|
||||
QLatin1String(":/debugger/images/mode_debug.png"));
|
||||
const Utils::Icon MODE_DEBUGGER_FLAT({
|
||||
{QLatin1String(":/debugger/images/mode_debug_mask.png"), Utils::Theme::IconsBaseColor}});
|
||||
const Utils::Icon MODE_DEBUGGER_FLAT_ACTIVE({
|
||||
{QLatin1String(":/debugger/images/mode_debug_mask.png"), Utils::Theme::IconsModeDebugActiveColor}});
|
||||
extern const Utils::Icon STEP_OVER;
|
||||
extern const Utils::Icon STEP_OVER_TOOLBAR;
|
||||
extern const Utils::Icon STEP_INTO;
|
||||
extern const Utils::Icon STEP_INTO_TOOLBAR;
|
||||
extern const Utils::Icon STEP_OUT;
|
||||
extern const Utils::Icon STEP_OUT_TOOLBAR;
|
||||
extern const Utils::Icon RESTART;
|
||||
extern const Utils::Icon RESTART_TOOLBAR;
|
||||
extern const Utils::Icon SINGLE_INSTRUCTION_MODE;
|
||||
|
||||
extern const Utils::Icon MODE_DEBUGGER_CLASSIC;
|
||||
extern const Utils::Icon MODE_DEBUGGER_FLAT;
|
||||
extern const Utils::Icon MODE_DEBUGGER_FLAT_ACTIVE;
|
||||
|
||||
} // namespace Icons
|
||||
} // namespace Debugger
|
||||
|
||||
Reference in New Issue
Block a user