Icons: Move debug run/interrupt/continue/exit from core to elsewhere
Core contains the small variants of debug run/interrupt/continue/exit while the bigger icon variants are in projectexplorer or debugger. That does not seem to have aany reason, at least in today's state of Qt Creator architecture. But above all, it stands in the way when changing debugger icons as planned due to user feedback. This change moves: Core::Icons::DEBUG_START_SMALL to ProjectExplorer::Icons::DEBUG_START_SMALL Core::Icons::DEBUG_EXIT_SMALL to Debugger::Icons::DEBUG_EXIT_SMALL Core::Icons::DEBUG_INTERRUPT_SMALL to Debugger::Icons::DEBUG_INTERRUPT_SMALL Core::Icons::DEBUG_CONTINUE_SMALL to Debugger::Icons::DEBUG_CONTINUE_SMALL This change just moves icons across modules but does not change anything in the UI. Change-Id: I859b901c312d4d16b6c2f687395a7b48c90aab84 Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
@@ -101,16 +101,6 @@
|
||||
<file>images/dark_fileicon.png</file>
|
||||
<file>images/dark_foldericon.png</file>
|
||||
<file>images/Desktop.png</file>
|
||||
<file>images/run_overlay_small.png</file>
|
||||
<file>images/run_overlay_small@2x.png</file>
|
||||
<file>images/stop_overlay_small.png</file>
|
||||
<file>images/stop_overlay_small@2x.png</file>
|
||||
<file>images/debugger_overlay_small.png</file>
|
||||
<file>images/debugger_overlay_small@2x.png</file>
|
||||
<file>images/interrupt_overlay_small.png</file>
|
||||
<file>images/interrupt_overlay_small@2x.png</file>
|
||||
<file>images/continue_overlay_small.png</file>
|
||||
<file>images/continue_overlay_small@2x.png</file>
|
||||
<file>images/zoom.png</file>
|
||||
<file>images/zoom@2x.png</file>
|
||||
</qresource>
|
||||
|
@@ -132,18 +132,6 @@ const Icon INFO_TOOLBAR({
|
||||
{QLatin1String(":/core/images/info.png"), Theme::IconsInfoToolBarColor}});
|
||||
const Icon EXPAND({
|
||||
{QLatin1String(":/find/images/expand.png"), Theme::IconsBaseColor}});
|
||||
const Icon DEBUG_START_SMALL({
|
||||
{QLatin1String(":/core/images/debugger_overlay_small.png"), Theme::IconsDebugColor},
|
||||
{QLatin1String(":/core/images/run_overlay_small.png"), Theme::IconsRunColor}});
|
||||
const Icon DEBUG_EXIT_SMALL({
|
||||
{QLatin1String(":/core/images/debugger_overlay_small.png"), Theme::IconsDebugColor},
|
||||
{QLatin1String(":/core/images/stop_overlay_small.png"), Theme::IconsStopColor}});
|
||||
const Icon DEBUG_INTERRUPT_SMALL({
|
||||
{QLatin1String(":/core/images/debugger_overlay_small.png"), Theme::IconsDebugColor},
|
||||
{QLatin1String(":/core/images/interrupt_overlay_small.png"), Theme::IconsInterruptColor}});
|
||||
const Icon DEBUG_CONTINUE_SMALL({
|
||||
{QLatin1String(":/core/images/debugger_overlay_small.png"), Theme::IconsDebugColor},
|
||||
{QLatin1String(":/core/images/continue_overlay_small.png"), Theme::IconsRunColor}});
|
||||
const Icon ZOOM({
|
||||
{QLatin1String(":/core/images/zoom.png"), Theme::IconsBaseColor}});
|
||||
const Icon TOOLBAR_EXTENSION({
|
||||
|
@@ -83,10 +83,6 @@ CORE_EXPORT extern const Utils::Icon ERROR_TASKBAR;
|
||||
CORE_EXPORT extern const Utils::Icon INFO;
|
||||
CORE_EXPORT extern const Utils::Icon INFO_TOOLBAR;
|
||||
CORE_EXPORT extern const Utils::Icon EXPAND;
|
||||
CORE_EXPORT extern const Utils::Icon DEBUG_START_SMALL;
|
||||
CORE_EXPORT extern const Utils::Icon DEBUG_EXIT_SMALL;
|
||||
CORE_EXPORT extern const Utils::Icon DEBUG_INTERRUPT_SMALL;
|
||||
CORE_EXPORT extern const Utils::Icon DEBUG_CONTINUE_SMALL;
|
||||
CORE_EXPORT extern const Utils::Icon ZOOM;
|
||||
CORE_EXPORT extern const Utils::Icon TOOLBAR_EXTENSION;
|
||||
|
||||
|
@@ -6,6 +6,12 @@
|
||||
<file>images/debugger_continue@2x.png</file>
|
||||
<file>images/debugger_continue_mask.png</file>
|
||||
<file>images/debugger_continue_mask@2x.png</file>
|
||||
<file>images/stop_overlay_small.png</file>
|
||||
<file>images/stop_overlay_small@2x.png</file>
|
||||
<file>images/interrupt_overlay_small.png</file>
|
||||
<file>images/interrupt_overlay_small@2x.png</file>
|
||||
<file>images/continue_overlay_small.png</file>
|
||||
<file>images/continue_overlay_small@2x.png</file>
|
||||
<file>images/debugger_empty_14.png</file>
|
||||
<file>images/debugger_interrupt.png</file>
|
||||
<file>images/debugger_interrupt@2x.png</file>
|
||||
|
@@ -48,11 +48,20 @@ const Utils::Icon CONTINUE(
|
||||
const Utils::Icon CONTINUE_FLAT({
|
||||
{QLatin1String(":/projectexplorer/images/debugger_beetle_mask.png"), Utils::Theme::IconsDebugColor},
|
||||
{QLatin1String(":/debugger/images/debugger_continue_mask.png"), Utils::Theme::IconsRunColor}});
|
||||
const Utils::Icon DEBUG_CONTINUE_SMALL({
|
||||
{QLatin1String(":/projectexplorer/images/debugger_overlay_small.png"), Utils::Theme::IconsDebugColor},
|
||||
{QLatin1String(":/debugger/images/continue_overlay_small.png"), Utils::Theme::IconsRunColor}});
|
||||
const Utils::Icon INTERRUPT(
|
||||
QLatin1String(":/debugger/images/debugger_interrupt.png"));
|
||||
const Utils::Icon INTERRUPT_FLAT({
|
||||
{QLatin1String(":/projectexplorer/images/debugger_beetle_mask.png"), Utils::Theme::IconsDebugColor},
|
||||
{QLatin1String(":/debugger/images/debugger_interrupt_mask.png"), Utils::Theme::IconsInterruptColor}});
|
||||
const Utils::Icon DEBUG_INTERRUPT_SMALL({
|
||||
{QLatin1String(":/projectexplorer/images/debugger_overlay_small.png"), Utils::Theme::IconsDebugColor},
|
||||
{QLatin1String(":/debugger/images/interrupt_overlay_small.png"), Utils::Theme::IconsInterruptColor}});
|
||||
const Utils::Icon DEBUG_EXIT_SMALL({
|
||||
{QLatin1String(":/projectexplorer/images/debugger_overlay_small.png"), Utils::Theme::IconsDebugColor},
|
||||
{QLatin1String(":/debugger/images/stop_overlay_small.png"), Utils::Theme::IconsStopColor}});
|
||||
const Utils::Icon LOCATION(
|
||||
QLatin1String(":/debugger/images/location_16.png"));
|
||||
const Utils::Icon SNAPSHOT(
|
||||
|
@@ -1345,14 +1345,14 @@ bool DebuggerPluginPrivate::initialize(const QStringList &arguments,
|
||||
this, &DebuggerPluginPrivate::updateWatchersHeader, Qt::QueuedConnection);
|
||||
|
||||
auto act = m_continueAction = new QAction(tr("Continue"), this);
|
||||
act->setIcon(Icon::combinedIcon({Core::Icons::DEBUG_CONTINUE_SMALL.icon(), continueSideBarIcon}));
|
||||
act->setIcon(Icon::combinedIcon({Icons::DEBUG_CONTINUE_SMALL.icon(), continueSideBarIcon}));
|
||||
connect(act, &QAction::triggered, this, &DebuggerPluginPrivate::handleExecContinue);
|
||||
|
||||
act = m_exitAction = new QAction(tr("Stop Debugger"), this);
|
||||
act->setIcon(Core::Icons::DEBUG_EXIT_SMALL.icon());
|
||||
act->setIcon(Icons::DEBUG_EXIT_SMALL.icon());
|
||||
connect(act, &QAction::triggered, this, &DebuggerPluginPrivate::handleExecExit);
|
||||
|
||||
auto interruptIcon = Icon::combinedIcon({Core::Icons::DEBUG_INTERRUPT_SMALL.icon(), interruptSideBarIcon});
|
||||
auto interruptIcon = Icon::combinedIcon({Icons::DEBUG_INTERRUPT_SMALL.icon(), interruptSideBarIcon});
|
||||
act = m_interruptAction = new QAction(tr("Interrupt"), this);
|
||||
act->setIcon(interruptIcon);
|
||||
connect(act, &QAction::triggered, this, &DebuggerPluginPrivate::handleExecInterrupt);
|
||||
@@ -1439,7 +1439,7 @@ bool DebuggerPluginPrivate::initialize(const QStringList &arguments,
|
||||
act = m_startAction = new QAction(this);
|
||||
const QIcon sideBarIcon =
|
||||
Icon::sideBarIcon(ProjectExplorer::Icons::DEBUG_START, ProjectExplorer::Icons::DEBUG_START_FLAT);
|
||||
const QIcon debuggerIcon = Icon::combinedIcon({Core::Icons::DEBUG_START_SMALL.icon(), sideBarIcon});
|
||||
const QIcon debuggerIcon = Icon::combinedIcon({ProjectExplorer::Icons::DEBUG_START_SMALL.icon(), sideBarIcon});
|
||||
act->setIcon(debuggerIcon);
|
||||
act->setText(tr("Start Debugging"));
|
||||
connect(act, &QAction::triggered, [] { ProjectExplorerPlugin::runStartupProject(ProjectExplorer::Constants::DEBUG_RUN_MODE); });
|
||||
@@ -3524,7 +3524,7 @@ void registerToolbar(const QByteArray &perspectiveId, const ToolbarDescription &
|
||||
QAction *createStartAction()
|
||||
{
|
||||
auto action = new QAction(DebuggerMainWindow::tr("Start"), DebuggerPlugin::instance());
|
||||
action->setIcon(Debugger::Icons::ANALYZER_CONTROL_START.icon());
|
||||
action->setIcon(Icons::ANALYZER_CONTROL_START.icon());
|
||||
action->setEnabled(true);
|
||||
return action;
|
||||
}
|
||||
|
@@ -43,6 +43,7 @@
|
||||
#include <projectexplorer/environmentaspect.h> // For the environment
|
||||
#include <projectexplorer/project.h>
|
||||
#include <projectexplorer/projectexplorer.h>
|
||||
#include <projectexplorer/projectexplorericons.h>
|
||||
#include <projectexplorer/runnables.h>
|
||||
#include <projectexplorer/target.h>
|
||||
#include <projectexplorer/taskhub.h>
|
||||
@@ -54,7 +55,6 @@
|
||||
#include <utils/qtcprocess.h>
|
||||
#include <coreplugin/icore.h>
|
||||
#include <coreplugin/coreconstants.h>
|
||||
#include <coreplugin/coreicons.h>
|
||||
#include <qmldebug/qmldebugcommandlinearguments.h>
|
||||
|
||||
#include <qtsupport/qtkitinformation.h>
|
||||
@@ -111,7 +111,7 @@ DebuggerRunControl::DebuggerRunControl(RunConfiguration *runConfig, DebuggerEngi
|
||||
m_engine(engine),
|
||||
m_running(false)
|
||||
{
|
||||
setIcon(Core::Icons::DEBUG_START_SMALL);
|
||||
setIcon(ProjectExplorer::Icons::DEBUG_START_SMALL);
|
||||
connect(this, &RunControl::finished, this, &DebuggerRunControl::handleFinished);
|
||||
|
||||
connect(engine, &DebuggerEngine::requestRemoteSetup,
|
||||
|
Before Width: | Height: | Size: 163 B After Width: | Height: | Size: 163 B |
Before Width: | Height: | Size: 277 B After Width: | Height: | Size: 277 B |
Before Width: | Height: | Size: 94 B After Width: | Height: | Size: 94 B |
Before Width: | Height: | Size: 97 B After Width: | Height: | Size: 97 B |
Before Width: | Height: | Size: 94 B After Width: | Height: | Size: 94 B |
Before Width: | Height: | Size: 97 B After Width: | Height: | Size: 97 B |
@@ -181,7 +181,7 @@ AppOutputPane::AppOutputPane() :
|
||||
// Attach
|
||||
m_attachButton->setToolTip(msgAttachDebuggerTooltip());
|
||||
m_attachButton->setEnabled(false);
|
||||
m_attachButton->setIcon(Core::Icons::DEBUG_START_SMALL.icon());
|
||||
m_attachButton->setIcon(Icons::DEBUG_START_SMALL.icon());
|
||||
m_attachButton->setAutoRaise(true);
|
||||
|
||||
connect(m_attachButton, &QAbstractButton::clicked,
|
||||
|
Before Width: | Height: | Size: 169 B After Width: | Height: | Size: 169 B |
Before Width: | Height: | Size: 290 B After Width: | Height: | Size: 290 B |
Before Width: | Height: | Size: 163 B After Width: | Height: | Size: 163 B |
Before Width: | Height: | Size: 156 B After Width: | Height: | Size: 156 B |
@@ -24,6 +24,10 @@
|
||||
<file>images/run_mask@2x.png</file>
|
||||
<file>images/run_small.png</file>
|
||||
<file>images/run_small@2x.png</file>
|
||||
<file>images/debugger_overlay_small.png</file>
|
||||
<file>images/debugger_overlay_small@2x.png</file>
|
||||
<file>images/run_overlay_small.png</file>
|
||||
<file>images/run_overlay_small@2x.png</file>
|
||||
<file>images/session.png</file>
|
||||
<file>images/targetrunselected.png</file>
|
||||
<file>images/targetrunselected@2x.png</file>
|
||||
|
@@ -57,6 +57,9 @@ const Utils::Icon DEBUG_START(
|
||||
const Utils::Icon DEBUG_START_FLAT({
|
||||
{QLatin1String(":/projectexplorer/images/debugger_beetle_mask.png"), Utils::Theme::IconsDebugColor},
|
||||
{QLatin1String(":/projectexplorer/images/debugger_run_mask.png"), Utils::Theme::IconsRunColor}});
|
||||
const Utils::Icon DEBUG_START_SMALL({
|
||||
{QLatin1String(":/projectexplorer/images/debugger_overlay_small.png"), Utils::Theme::IconsDebugColor},
|
||||
{QLatin1String(":/projectexplorer/images/run_overlay_small.png"), Utils::Theme::IconsRunColor}});
|
||||
|
||||
const Utils::Icon BUILDSTEP_MOVEUP({
|
||||
{QLatin1String(":/projectexplorer/images/buildstepmoveup.png"), Utils::Theme::PanelTextColorDark}}, Utils::Icon::Tint);
|
||||
|
@@ -2231,7 +2231,7 @@
|
||||
y="570" />
|
||||
</g>
|
||||
<g
|
||||
id="src/plugins/coreplugin/images/run_overlay_small"
|
||||
id="src/plugins/projectexplorer/images/run_overlay_small"
|
||||
transform="translate(-16,0)">
|
||||
<rect
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:none"
|
||||
@@ -2247,7 +2247,7 @@
|
||||
transform="matrix(1.3333333,0,0,1.125,-381.33331,283.75)" />
|
||||
</g>
|
||||
<g
|
||||
id="src/plugins/coreplugin/images/stop_overlay_small"
|
||||
id="src/plugins/debugger/images/stop_overlay_small"
|
||||
transform="translate(-16,0)">
|
||||
<rect
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:none"
|
||||
@@ -2265,7 +2265,7 @@
|
||||
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
</g>
|
||||
<g
|
||||
id="src/plugins/coreplugin/images/interrupt_overlay_small"
|
||||
id="src/plugins/debugger/images/interrupt_overlay_small"
|
||||
transform="translate(-16,0)">
|
||||
<rect
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:none"
|
||||
@@ -2290,7 +2290,7 @@
|
||||
y="575" />
|
||||
</g>
|
||||
<g
|
||||
id="src/plugins/coreplugin/images/continue_overlay_small"
|
||||
id="src/plugins/debugger/images/continue_overlay_small"
|
||||
transform="translate(16,0)">
|
||||
<rect
|
||||
id="rect4959-4-0-0-6-5"
|
||||
@@ -2320,7 +2320,7 @@
|
||||
sodipodi:nodetypes="cccc" />
|
||||
</g>
|
||||
<g
|
||||
id="src/plugins/coreplugin/images/debugger_overlay_small"
|
||||
id="src/plugins/projectexplorer/images/debugger_overlay_small"
|
||||
transform="translate(16,0)">
|
||||
<rect
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:none"
|
||||
|
Before Width: | Height: | Size: 143 KiB After Width: | Height: | Size: 143 KiB |