Add more icons
This commit is contained in:
parent
294452481f
commit
687c378456
@ -60,42 +60,38 @@ CropScene::CropScene(QObject *parent, QPixmap pixmap)
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
QAction *reset = menu->addAction("Reset pen selection");
|
addDrawingAction(menu, "Crop", ":/icons/crop.svg", [] { return nullptr; });
|
||||||
connect(reset, &QAction::triggered, [this] {
|
|
||||||
menu->setActiveAction(0);
|
|
||||||
setDrawingSelection("None", [] { return nullptr; });
|
|
||||||
});
|
|
||||||
|
|
||||||
menu->addSeparator();
|
menu->addSeparator();
|
||||||
QAction *settings = new QAction;
|
QAction *action = new QAction;
|
||||||
settings->setToolTip("Settings");
|
action->setToolTip("Settings");
|
||||||
settings->setIcon(QIcon(":/icons/settings.svg"));
|
action->setIcon(QIcon(":/icons/settings.svg"));
|
||||||
menu->addSeparator();
|
menu->addSeparator();
|
||||||
display = menu->addAction(drawingName);
|
display = menu->addAction(drawingName);
|
||||||
display->setDisabled(true);
|
display->setDisabled(true);
|
||||||
connect(settings, &QAction::triggered, [&] {
|
connect(action, &QAction::triggered, [&] {
|
||||||
hide();
|
hide();
|
||||||
BrushPenSelection(this).exec();
|
BrushPenSelection(this).exec();
|
||||||
show();
|
show();
|
||||||
});
|
});
|
||||||
|
|
||||||
QAction *font = menu->addAction("");
|
action = menu->addAction("");
|
||||||
font->setIcon(QIcon(":/icons/fontsettings.svg"));
|
action->setIcon(QIcon(":/icons/fontsettings.svg"));
|
||||||
connect(font, &QAction::triggered, this, &CropScene::fontAsk);
|
connect(action, &QAction::triggered, this, &CropScene::fontAsk);
|
||||||
|
|
||||||
menu->addAction(settings);
|
menu->addAction(action);
|
||||||
menu->addSeparator();
|
menu->addSeparator();
|
||||||
QAction *confirm = menu->addAction("");
|
action = menu->addAction("");
|
||||||
confirm->setToolTip("Confirm");
|
action->setToolTip("Confirm");
|
||||||
confirm->setIcon(QIcon(":/icons/accept.svg"));
|
action->setIcon(QIcon(":/icons/accept.svg"));
|
||||||
connect(confirm, &QAction::triggered, [this] { done(true); });
|
connect(action, &QAction::triggered, [this] { done(true); });
|
||||||
menu->addAction(confirm);
|
menu->addAction(action);
|
||||||
|
|
||||||
QAction *cancel = menu->addAction("");
|
action = menu->addAction("");
|
||||||
cancel->setToolTip("Cancel");
|
action->setToolTip("Cancel");
|
||||||
cancel->setIcon(QIcon(":/icons/cancel.svg"));
|
action->setIcon(QIcon(":/icons/cancel.svg"));
|
||||||
connect(cancel, &QAction::triggered, [this] { done(false); });
|
connect(action, &QAction::triggered, [this] { done(false); });
|
||||||
menu->addAction(cancel);
|
menu->addAction(action);
|
||||||
|
|
||||||
QPolygonF cursorPoly;
|
QPolygonF cursorPoly;
|
||||||
cursorPoly << QPoint(-10, 0) //
|
cursorPoly << QPoint(-10, 0) //
|
||||||
|
3
icon.qrc
3
icon.qrc
@ -9,12 +9,13 @@
|
|||||||
<file>icons/text.svg</file>
|
<file>icons/text.svg</file>
|
||||||
<file>icons/delete.svg</file>
|
<file>icons/delete.svg</file>
|
||||||
<file>icons/arrow.svg</file>
|
<file>icons/arrow.svg</file>
|
||||||
<file>icons/circle.svg</file>
|
|
||||||
<file>icons/settings.svg</file>
|
<file>icons/settings.svg</file>
|
||||||
<file>icons/fontsettings.svg</file>
|
<file>icons/fontsettings.svg</file>
|
||||||
<file>icons/erase.svg</file>
|
<file>icons/erase.svg</file>
|
||||||
<file>icons/blur.png</file>
|
<file>icons/blur.png</file>
|
||||||
<file>icons/accept.svg</file>
|
<file>icons/accept.svg</file>
|
||||||
<file>icons/cancel.svg</file>
|
<file>icons/cancel.svg</file>
|
||||||
|
<file>icons/crop.svg</file>
|
||||||
|
<file>icons/circle.svg</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
BIN
icons/blur.png
BIN
icons/blur.png
Binary file not shown.
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 59 KiB |
@ -11,21 +11,24 @@
|
|||||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
width="1024"
|
width="1024"
|
||||||
height="1024"
|
height="1024"
|
||||||
viewBox="0 0 270.93333 270.93334"
|
viewBox="0 0 270.93333 270.93333"
|
||||||
version="1.1"
|
version="1.1"
|
||||||
id="svg8"
|
id="svg8"
|
||||||
sodipodi:docname="TEXT.svg"
|
sodipodi:docname="blur.svg"
|
||||||
|
inkscape:export-filename="/media/arsen/Data/CandCPP/KShare/icons/blur.png"
|
||||||
|
inkscape:export-xdpi="96"
|
||||||
|
inkscape:export-ydpi="96"
|
||||||
inkscape:version="0.92.1 r">
|
inkscape:version="0.92.1 r">
|
||||||
<defs
|
<defs
|
||||||
id="defs2">
|
id="defs2">
|
||||||
<filter
|
<filter
|
||||||
style="color-interpolation-filters:sRGB;"
|
style="color-interpolation-filters:sRGB;"
|
||||||
inkscape:label="Blur"
|
inkscape:label="Blur"
|
||||||
id="filter8705">
|
id="filter878">
|
||||||
<feGaussianBlur
|
<feGaussianBlur
|
||||||
stdDeviation="20 20"
|
stdDeviation="20 20"
|
||||||
result="blur"
|
result="blur"
|
||||||
id="feGaussianBlur8703" />
|
id="feGaussianBlur876" />
|
||||||
</filter>
|
</filter>
|
||||||
</defs>
|
</defs>
|
||||||
<sodipodi:namedview
|
<sodipodi:namedview
|
||||||
@ -35,9 +38,9 @@
|
|||||||
borderopacity="1.0"
|
borderopacity="1.0"
|
||||||
inkscape:pageopacity="0.0"
|
inkscape:pageopacity="0.0"
|
||||||
inkscape:pageshadow="2"
|
inkscape:pageshadow="2"
|
||||||
inkscape:zoom="0.5"
|
inkscape:zoom="0.35"
|
||||||
inkscape:cx="883.00002"
|
inkscape:cx="2043.7881"
|
||||||
inkscape:cy="511.99997"
|
inkscape:cy="126.79149"
|
||||||
inkscape:document-units="mm"
|
inkscape:document-units="mm"
|
||||||
inkscape:current-layer="layer1"
|
inkscape:current-layer="layer1"
|
||||||
showgrid="false"
|
showgrid="false"
|
||||||
@ -63,25 +66,14 @@
|
|||||||
inkscape:label="Layer 1"
|
inkscape:label="Layer 1"
|
||||||
inkscape:groupmode="layer"
|
inkscape:groupmode="layer"
|
||||||
id="layer1"
|
id="layer1"
|
||||||
transform="translate(0,-26.06665)">
|
transform="translate(0,-26.066725)">
|
||||||
<text
|
|
||||||
xml:space="preserve"
|
|
||||||
style="font-style:normal;font-weight:normal;font-size:361.58081055px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:9.03952026"
|
|
||||||
x="5.47505"
|
|
||||||
y="298.96558"
|
|
||||||
id="text4544"
|
|
||||||
transform="scale(1.0496228,0.95272321)"><tspan
|
|
||||||
sodipodi:role="line"
|
|
||||||
id="tspan4542"
|
|
||||||
x="5.47505"
|
|
||||||
y="618.87982"
|
|
||||||
style="stroke-width:9.03952026" /></text>
|
|
||||||
<rect
|
<rect
|
||||||
style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:33.86666667;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:stroke markers fill;filter:url(#filter8705)"
|
style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:21.41490173;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:stroke markers fill;filter:url(#filter878)"
|
||||||
id="rect6112"
|
id="rect10"
|
||||||
width="237.06667"
|
width="181.7851"
|
||||||
height="237.06667"
|
height="181.7851"
|
||||||
x="16.933334"
|
x="44.574112"
|
||||||
y="42.999985" />
|
y="70.640831"
|
||||||
|
ry="0" />
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.3 KiB |
76
icons/crop.svg
Normal file
76
icons/crop.svg
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
width="1024"
|
||||||
|
height="1024"
|
||||||
|
viewBox="0 0 270.93333 270.93333"
|
||||||
|
version="1.1"
|
||||||
|
id="svg8"
|
||||||
|
inkscape:version="0.92.1 r"
|
||||||
|
sodipodi:docname="crop.svg">
|
||||||
|
<defs
|
||||||
|
id="defs2" />
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="base"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:zoom="0.35"
|
||||||
|
inkscape:cx="1550.9309"
|
||||||
|
inkscape:cy="126.79149"
|
||||||
|
inkscape:document-units="mm"
|
||||||
|
inkscape:current-layer="layer1"
|
||||||
|
showgrid="false"
|
||||||
|
units="px"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1055"
|
||||||
|
inkscape:window-x="1971"
|
||||||
|
inkscape:window-y="25"
|
||||||
|
inkscape:window-maximized="0" />
|
||||||
|
<metadata
|
||||||
|
id="metadata5">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
<dc:title></dc:title>
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1"
|
||||||
|
transform="translate(0,-26.066725)">
|
||||||
|
<rect
|
||||||
|
style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:21.41490173;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:stroke markers fill"
|
||||||
|
id="rect10"
|
||||||
|
width="181.7851"
|
||||||
|
height="181.7851"
|
||||||
|
x="44.574112"
|
||||||
|
y="70.640831"
|
||||||
|
ry="0" />
|
||||||
|
<path
|
||||||
|
style="fill:none;stroke:#000000;stroke-width:21.16666667;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none"
|
||||||
|
d="M 44.57411,70.64083 43.845239,25.613154"
|
||||||
|
id="path12"
|
||||||
|
inkscape:connector-curvature="0" />
|
||||||
|
<path
|
||||||
|
style="fill:none;stroke:#000000;stroke-width:21.16666603;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
d="M -0.45356506,71.369702 44.574112,70.640831"
|
||||||
|
id="path12-3"
|
||||||
|
inkscape:connector-curvature="0" />
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 2.5 KiB |
@ -6,6 +6,7 @@
|
|||||||
#include "ui_mainwindow.h"
|
#include "ui_mainwindow.h"
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
|
#include <QShortcut>
|
||||||
#include <colorpicker/colorpickerscene.hpp>
|
#include <colorpicker/colorpickerscene.hpp>
|
||||||
#include <formats.hpp>
|
#include <formats.hpp>
|
||||||
#include <hotkeying.hpp>
|
#include <hotkeying.hpp>
|
||||||
|
@ -96,6 +96,9 @@
|
|||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Quit</string>
|
<string>&Quit</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="shortcut">
|
||||||
|
<string>Ctrl+Q</string>
|
||||||
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="actionFullscreen">
|
<action name="actionFullscreen">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
Loading…
Reference in New Issue
Block a user