forked from qt-creator/qt-creator
Utils: Move icon construction out-of-line
Saves several k object data per file. Change-Id: Id73c3c88cb2ccd78cce68bd5db04bf0725f99d91 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
@@ -26,160 +26,85 @@
|
||||
#pragma once
|
||||
|
||||
#include "icon.h"
|
||||
#include "utils_global.h"
|
||||
|
||||
namespace Utils {
|
||||
namespace Icons {
|
||||
|
||||
const Icon EDIT_CLEAR({
|
||||
{QLatin1String(":/utils/images/editclear.png"), Utils::Theme::PanelTextColorMid}}, Icon::Tint);
|
||||
const Icon LOCKED_TOOLBAR({
|
||||
{QLatin1String(":/utils/images/locked.png"), Utils::Theme::IconsBaseColor}});
|
||||
const Icon LOCKED({
|
||||
{QLatin1String(":/utils/images/locked.png"), Utils::Theme::PanelTextColorDark}}, Icon::Tint);
|
||||
const Icon UNLOCKED_TOOLBAR({
|
||||
{QLatin1String(":/utils/images/unlocked.png"), Utils::Theme::IconsBaseColor}});
|
||||
const Icon NEXT({
|
||||
{QLatin1String(":/utils/images/next.png"), Utils::Theme::IconsWarningColor}}, Icon::MenuTintedStyle);
|
||||
const Icon NEXT_TOOLBAR({
|
||||
{QLatin1String(":/utils/images/next.png"), Utils::Theme::IconsNavigationArrowsColor}});
|
||||
const Icon PREV({
|
||||
{QLatin1String(":/utils/images/prev.png"), Utils::Theme::IconsWarningColor}}, Icon::MenuTintedStyle);
|
||||
const Icon PREV_TOOLBAR({
|
||||
{QLatin1String(":/utils/images/prev.png"), Utils::Theme::IconsNavigationArrowsColor}});
|
||||
const Icon ZOOM({
|
||||
{QLatin1String(":/utils/images/zoom.png"), Utils::Theme::PanelTextColorMid}}, Icon::Tint);
|
||||
const Icon ZOOM_TOOLBAR({
|
||||
{QLatin1String(":/utils/images/zoom.png"), Utils::Theme::IconsBaseColor}});
|
||||
const Icon OK({
|
||||
{QLatin1String(":/utils/images/ok.png"), Utils::Theme::IconsRunToolBarColor}}, Icon::Tint);
|
||||
const Icon NOTLOADED({
|
||||
{QLatin1String(":/utils/images/notloaded.png"), Utils::Theme::IconsErrorColor}}, Icon::Tint);
|
||||
const Icon BROKEN({
|
||||
{QLatin1String(":/utils/images/broken.png"), Utils::Theme::IconsErrorColor}}, Icon::Tint);
|
||||
const Icon ERROR({
|
||||
{QLatin1String(":/utils/images/warningfill.png"), Theme::BackgroundColorNormal},
|
||||
{QLatin1String(":/utils/images/error.png"), Theme::IconsErrorColor}}, Icon::Tint);
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon EDIT_CLEAR;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon LOCKED_TOOLBAR;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon LOCKED;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon UNLOCKED_TOOLBAR;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon NEXT;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon NEXT_TOOLBAR;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon PREV;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon PREV_TOOLBAR;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon ZOOM;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon ZOOM_TOOLBAR;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon OK;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon NOTLOADED;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon BROKEN;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon ERROR;
|
||||
|
||||
const Icon NEWFILE(
|
||||
QLatin1String(":/utils/images/filenew.png"));
|
||||
const Icon OPENFILE(
|
||||
QLatin1String(":/utils/images/fileopen.png"));
|
||||
const Icon SAVEFILE({
|
||||
{QLatin1String(":/utils/images/filesave.png"), Theme::PanelTextColorMid}}, Icon::Tint);
|
||||
const Icon SAVEFILE_TOOLBAR({
|
||||
{QLatin1String(":/utils/images/filesave.png"), Theme::IconsBaseColor}});
|
||||
const Icon UNDO(
|
||||
QLatin1String(":/utils/images/undo.png"));
|
||||
const Icon REDO(
|
||||
QLatin1String(":/utils/images/redo.png"));
|
||||
const Icon COPY(
|
||||
QLatin1String(":/utils/images/editcopy.png"));
|
||||
const Icon PASTE(
|
||||
QLatin1String(":/utils/images/editpaste.png"));
|
||||
const Icon CUT(
|
||||
QLatin1String(":/utils/images/editcut.png"));
|
||||
const Icon DIR(
|
||||
QLatin1String(":/utils/images/dir.png"));
|
||||
const Icon RESET({
|
||||
{QLatin1String(":/utils/images/reset.png"), Theme::PanelTextColorMid}}, Icon::Tint);
|
||||
const Icon RESET_TOOLBAR({
|
||||
{QLatin1String(":/utils/images/reset.png"), Theme::IconsBaseColor}});
|
||||
const Icon DARK_CLOSE(
|
||||
QLatin1String(":/utils/images/darkclose.png"));
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon NEWFILE;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon OPENFILE;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon SAVEFILE;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon SAVEFILE_TOOLBAR;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon UNDO;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon REDO;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon COPY;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon PASTE;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon CUT;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon DIR;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon RESET;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon RESET_TOOLBAR;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon DARK_CLOSE;
|
||||
|
||||
const Icon ARROW_UP({
|
||||
{QLatin1String(":/utils/images/arrowup.png"), Theme::IconsBaseColor}});
|
||||
const Icon ARROW_DOWN({
|
||||
{QLatin1String(":/utils/images/arrowdown.png"), Theme::IconsBaseColor}});
|
||||
const Icon MINUS({
|
||||
{QLatin1String(":/utils/images/minus.png"), Theme::IconsBaseColor}});
|
||||
const Icon PLUS({
|
||||
{QLatin1String(":/utils/images/plus.png"), Theme::IconsBaseColor}});
|
||||
const Icon MAGNIFIER({
|
||||
{QLatin1String(":/utils/images/magnifier.png"), Theme::PanelTextColorMid}}, Icon::Tint);
|
||||
const Icon CLEAN({
|
||||
{QLatin1String(":/utils/images/clean_pane_small.png"), Theme::PanelTextColorMid}}, Icon::Tint);
|
||||
const Icon CLEAN_TOOLBAR({
|
||||
{QLatin1String(":/utils/images/clean_pane_small.png"), Theme::IconsBaseColor}});
|
||||
const Icon RELOAD({
|
||||
{QLatin1String(":/utils/images/reload_gray.png"), Theme::IconsBaseColor}});
|
||||
const Icon TOGGLE_SIDEBAR({
|
||||
{QLatin1String(":/utils/images/sidebaricon.png"), Theme::PanelTextColorMid}}, Icon::MenuTintedStyle);
|
||||
const Icon TOGGLE_SIDEBAR_TOOLBAR({
|
||||
{QLatin1String(":/utils/images/sidebaricon.png"), Theme::IconsBaseColor}});
|
||||
const Icon CLOSE_TOOLBAR({
|
||||
{QLatin1String(":/utils/images/close.png"), Theme::IconsBaseColor}});
|
||||
const Icon CLOSE_FOREGROUND({
|
||||
{QLatin1String(":/utils/images/close.png"), Theme::PanelTextColorDark}}, Icon::Tint);
|
||||
const Icon CLOSE_BACKGROUND({
|
||||
{QLatin1String(":/utils/images/close.png"), Theme::PanelTextColorLight}}, Icon::Tint);
|
||||
const Icon SPLIT_HORIZONTAL({
|
||||
{QLatin1String(":/utils/images/splitbutton_horizontal.png"), Theme::PanelTextColorMid}}, Icon::MenuTintedStyle);
|
||||
const Icon SPLIT_HORIZONTAL_TOOLBAR({
|
||||
{QLatin1String(":/utils/images/splitbutton_horizontal.png"), Theme::IconsBaseColor}});
|
||||
const Icon SPLIT_VERTICAL({
|
||||
{QLatin1String(":/utils/images/splitbutton_vertical.png"), Theme::PanelTextColorMid}}, Icon::MenuTintedStyle);
|
||||
const Icon SPLIT_VERTICAL_TOOLBAR({
|
||||
{QLatin1String(":/utils/images/splitbutton_vertical.png"), Theme::IconsBaseColor}});
|
||||
const Icon CLOSE_SPLIT_TOP({
|
||||
{QLatin1String(":/utils/images/splitbutton_closetop.png"), Theme::IconsBaseColor}});
|
||||
const Icon CLOSE_SPLIT_BOTTOM({
|
||||
{QLatin1String(":/utils/images/splitbutton_closebottom.png"), Theme::IconsBaseColor}});
|
||||
const Icon CLOSE_SPLIT_LEFT({
|
||||
{QLatin1String(":/utils/images/splitbutton_closeleft.png"), Theme::IconsBaseColor}});
|
||||
const Icon CLOSE_SPLIT_RIGHT({
|
||||
{QLatin1String(":/utils/images/splitbutton_closeright.png"), Theme::IconsBaseColor}});
|
||||
const Icon FILTER({
|
||||
{QLatin1String(":/utils/images/filtericon.png"), Theme::IconsBaseColor}});
|
||||
const Icon LINK({
|
||||
{QLatin1String(":/utils/images/linkicon.png"), Theme::IconsBaseColor}});
|
||||
const Icon WARNING({
|
||||
{QLatin1String(":/utils/images/warningfill.png"), Theme::BackgroundColorNormal},
|
||||
{QLatin1String(":/utils/images/warning.png"), Theme::IconsWarningColor}}, Icon::Tint);
|
||||
const Icon WARNING_TOOLBAR({
|
||||
{QLatin1String(":/utils/images/warning.png"), Theme::IconsWarningToolBarColor}});
|
||||
const Icon ERROR_TOOLBAR({
|
||||
{QLatin1String(":/utils/images/error.png"), Theme::IconsErrorToolBarColor}});
|
||||
const Icon ERROR_TASKBAR({
|
||||
{QLatin1String(":/utils/images/compile_error_taskbar.png"), Theme::IconsErrorColor}}, Icon::Tint);
|
||||
const Icon INFO({
|
||||
{QLatin1String(":/utils/images/warningfill.png"), Theme::BackgroundColorNormal},
|
||||
{QLatin1String(":/utils/images/info.png"), Theme::IconsInfoColor}}, Icon::Tint);
|
||||
const Icon INFO_TOOLBAR({
|
||||
{QLatin1String(":/utils/images/info.png"), Theme::IconsInfoToolBarColor}});
|
||||
const Icon EXPAND_ALL_TOOLBAR({
|
||||
{QLatin1String(":/find/images/expand.png"), Theme::IconsBaseColor}});
|
||||
const Icon TOOLBAR_EXTENSION({
|
||||
{QLatin1String(":/utils/images/extension.png"), Theme::IconsBaseColor}});
|
||||
const Icon RUN_SMALL({
|
||||
{QLatin1String(":/utils/images/run_small.png"), Utils::Theme::IconsRunColor}}, Icon::MenuTintedStyle);
|
||||
const Icon RUN_SMALL_TOOLBAR({
|
||||
{QLatin1String(":/utils/images/run_small.png"), Utils::Theme::IconsRunToolBarColor}});
|
||||
const Icon STOP_SMALL({
|
||||
{QLatin1String(":/utils/images/stop_small.png"), Utils::Theme::IconsStopColor}}, Icon::MenuTintedStyle);
|
||||
const Icon STOP_SMALL_TOOLBAR({
|
||||
{QLatin1String(":/utils/images/stop_small.png"), Utils::Theme::IconsStopToolBarColor}});
|
||||
const Icon INTERRUPT_SMALL({
|
||||
{QLatin1String(":/utils/images/interrupt_small.png"), Utils::Theme::IconsInterruptColor}}, Icon::MenuTintedStyle);
|
||||
const Icon INTERRUPT_SMALL_TOOLBAR({
|
||||
{QLatin1String(":/utils/images/interrupt_small.png"), Utils::Theme::IconsInterruptToolBarColor}});
|
||||
const Icon BOUNDING_RECT({
|
||||
{QLatin1String(":/utils/images/boundingrect.png"), Theme::IconsBaseColor}});
|
||||
const Icon EYE_OPEN_TOOLBAR({
|
||||
{QLatin1String(":/utils/images/eye_open.png"), Theme::IconsBaseColor}});
|
||||
const Icon EYE_CLOSED_TOOLBAR({
|
||||
{QLatin1String(":/utils/images/eye_closed.png"), Theme::IconsBaseColor}});
|
||||
const Icon REPLACE({
|
||||
{QLatin1String(":/utils/images/replace_a.png"), Theme::PanelTextColorMid},
|
||||
{QLatin1String(":/utils/images/replace_b.png"), Theme::IconsInfoColor}}, Icon::Tint);
|
||||
const Icon EXPAND({
|
||||
{QLatin1String(":/utils/images/expand.png"), Theme::PanelTextColorMid}}, Icon::Tint);
|
||||
const Icon EXPAND_TOOLBAR({
|
||||
{QLatin1String(":/utils/images/expand.png"), Theme::IconsBaseColor}});
|
||||
const Icon COLLAPSE({
|
||||
{QLatin1String(":/utils/images/collapse.png"), Theme::PanelTextColorMid}}, Icon::Tint);
|
||||
const Icon COLLAPSE_TOOLBAR({
|
||||
{QLatin1String(":/utils/images/collapse.png"), Theme::IconsBaseColor}});
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon ARROW_UP;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon ARROW_DOWN;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon MINUS;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon PLUS;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon MAGNIFIER;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon CLEAN;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon CLEAN_TOOLBAR;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon RELOAD;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon TOGGLE_SIDEBAR;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon TOGGLE_SIDEBAR_TOOLBAR;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon CLOSE_TOOLBAR;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon CLOSE_FOREGROUND;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon CLOSE_BACKGROUND;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon SPLIT_HORIZONTAL;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon SPLIT_HORIZONTAL_TOOLBAR;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon SPLIT_VERTICAL;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon SPLIT_VERTICAL_TOOLBAR;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon CLOSE_SPLIT_TOP;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon CLOSE_SPLIT_BOTTOM;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon CLOSE_SPLIT_LEFT;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon CLOSE_SPLIT_RIGHT;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon FILTER;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon LINK;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon WARNING;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon WARNING_TOOLBAR;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon ERROR_TOOLBAR;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon ERROR_TASKBAR;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon INFO;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon INFO_TOOLBAR;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon EXPAND_ALL_TOOLBAR;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon TOOLBAR_EXTENSION;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon RUN_SMALL;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon RUN_SMALL_TOOLBAR;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon STOP_SMALL;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon STOP_SMALL_TOOLBAR;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon INTERRUPT_SMALL;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon INTERRUPT_SMALL_TOOLBAR;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon BOUNDING_RECT;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon EYE_OPEN_TOOLBAR;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon EYE_CLOSED_TOOLBAR;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon REPLACE;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon EXPAND;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon EXPAND_TOOLBAR;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon COLLAPSE;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon COLLAPSE_TOOLBAR;
|
||||
|
||||
} // namespace Icons
|
||||
} // namespace Utils
|
||||
|
||||
Reference in New Issue
Block a user