Merge pull request #1153 from ispyisail/feat/1069-align-icons
Linux build and tests / Build and test (Qt 6, Debug) (push) Failing after 2m39s
Add icons for the Align commands
@@ -267,12 +267,19 @@
|
||||
<file alias="themes/qet/128x128/project.png">128x128/project.png</file>
|
||||
<file alias="themes/qet/128x128/settings.png">128x128/settings.png</file>
|
||||
<file alias="themes/qet/128x128/terminalstrip.png">128x128/terminalstrip.png</file>
|
||||
<file alias="themes/qet/scalable/align-horizontal-center.svg">scalable/align-horizontal-center.svg</file>
|
||||
<file alias="themes/qet/scalable/align-horizontal-left.svg">scalable/align-horizontal-left.svg</file>
|
||||
<file alias="themes/qet/scalable/align-horizontal-right.svg">scalable/align-horizontal-right.svg</file>
|
||||
<file alias="themes/qet/scalable/align-vertical-bottom.svg">scalable/align-vertical-bottom.svg</file>
|
||||
<file alias="themes/qet/scalable/align-vertical-center.svg">scalable/align-vertical-center.svg</file>
|
||||
<file alias="themes/qet/scalable/align-vertical-top.svg">scalable/align-vertical-top.svg</file>
|
||||
<file alias="themes/qet/scalable/diagram.svg">scalable/diagram.svg</file>
|
||||
<file alias="themes/qet/scalable/folio-delete.svg">scalable/folio-delete.svg</file>
|
||||
<file alias="themes/qet/scalable/folio-new.svg">scalable/folio-new.svg</file>
|
||||
<file alias="themes/qet/scalable/folio-properties.svg">scalable/folio-properties.svg</file>
|
||||
<file alias="themes/qet/scalable/label.svg">scalable/label.svg</file>
|
||||
<file alias="themes/qet/scalable/pdf-import.svg">scalable/pdf-import.svg</file>
|
||||
<file alias="themes/qet/scalable/snap-to-grid.svg">scalable/snap-to-grid.svg</file>
|
||||
<file alias="themes/qet/scalable/edit-opacity.svg">breeze-icons/scalable/apps/hidef/edit-opacity.svg</file>
|
||||
<file alias="themes/qet/scalable/image-flip-horizontal.svg">breeze-icons/scalable/apps/hidef/image-flip-horizontal-symbolic.svg</file>
|
||||
<file alias="themes/qet/scalable/image-flip-vertical.svg">breeze-icons/scalable/apps/hidef/image-flip-vertical-symbolic.svg</file>
|
||||
@@ -457,12 +464,19 @@
|
||||
<file>themes/qet-dark/48x48/view-pim-journal.png</file>
|
||||
<file>themes/qet-dark/128x128/plasmagik.png</file>
|
||||
<file>themes/qet-dark/128x128/settings.png</file>
|
||||
<file>themes/qet-dark/scalable/align-horizontal-center.svg</file>
|
||||
<file>themes/qet-dark/scalable/align-horizontal-left.svg</file>
|
||||
<file>themes/qet-dark/scalable/align-horizontal-right.svg</file>
|
||||
<file>themes/qet-dark/scalable/align-vertical-bottom.svg</file>
|
||||
<file>themes/qet-dark/scalable/align-vertical-center.svg</file>
|
||||
<file>themes/qet-dark/scalable/align-vertical-top.svg</file>
|
||||
<file>themes/qet-dark/scalable/diagram.svg</file>
|
||||
<file>themes/qet-dark/scalable/folio-delete.svg</file>
|
||||
<file>themes/qet-dark/scalable/folio-new.svg</file>
|
||||
<file>themes/qet-dark/scalable/folio-properties.svg</file>
|
||||
<file>themes/qet-dark/scalable/label.svg</file>
|
||||
<file>themes/qet-dark/scalable/pdf-import.svg</file>
|
||||
<file>themes/qet-dark/scalable/snap-to-grid.svg</file>
|
||||
<file>themes/qet-dark/scalable/edit-opacity.svg</file>
|
||||
<file>themes/qet-dark/scalable/image-flip-horizontal.svg</file>
|
||||
<file>themes/qet-dark/scalable/image-flip-vertical.svg</file>
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
|
||||
<defs id="defs3051">
|
||||
<style type="text/css" id="current-color-scheme">
|
||||
.ColorScheme-Text {
|
||||
color:#4d4d4d;
|
||||
}
|
||||
</style>
|
||||
</defs>
|
||||
<g transform="translate(1,1)">
|
||||
<path style="fill:currentColor;fill-opacity:0.35;stroke:none" d="M 4 5 h 14 v 4 h -14 Z M 7 13 h 8 v 4 h -8 Z" class="ColorScheme-Text"/>
|
||||
<path style="fill:currentColor;fill-opacity:1;fill-rule:evenodd;stroke:none" d="M 10 1 h 2 v 3 h -2 Z M 10 10 h 2 v 2 h -2 Z M 10 18 h 2 v 3 h -2 Z M 3 4 h 16 v 6 h -16 Z M 4 5 h 14 v 4 h -14 Z M 6 12 h 10 v 6 h -10 Z M 7 13 h 8 v 4 h -8 Z" class="ColorScheme-Text"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 700 B |
@@ -0,0 +1,13 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
|
||||
<defs id="defs3051">
|
||||
<style type="text/css" id="current-color-scheme">
|
||||
.ColorScheme-Text {
|
||||
color:#4d4d4d;
|
||||
}
|
||||
</style>
|
||||
</defs>
|
||||
<g transform="translate(1,1)">
|
||||
<path style="fill:currentColor;fill-opacity:0.35;stroke:none" d="M 5 5 h 13 v 4 h -13 Z M 5 13 h 8 v 4 h -8 Z" class="ColorScheme-Text"/>
|
||||
<path style="fill:currentColor;fill-opacity:1;fill-rule:evenodd;stroke:none" d="M 2 1 h 2 v 20 h -2 Z M 4 4 h 15 v 6 h -15 Z M 5 5 h 13 v 4 h -13 Z M 4 12 h 10 v 6 h -10 Z M 5 13 h 8 v 4 h -8 Z" class="ColorScheme-Text"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 654 B |
@@ -0,0 +1,13 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
|
||||
<defs id="defs3051">
|
||||
<style type="text/css" id="current-color-scheme">
|
||||
.ColorScheme-Text {
|
||||
color:#4d4d4d;
|
||||
}
|
||||
</style>
|
||||
</defs>
|
||||
<g transform="translate(1,1)">
|
||||
<path style="fill:currentColor;fill-opacity:0.35;stroke:none" d="M 4 5 h 13 v 4 h -13 Z M 9 13 h 8 v 4 h -8 Z" class="ColorScheme-Text"/>
|
||||
<path style="fill:currentColor;fill-opacity:1;fill-rule:evenodd;stroke:none" d="M 18 1 h 2 v 20 h -2 Z M 3 4 h 15 v 6 h -15 Z M 4 5 h 13 v 4 h -13 Z M 8 12 h 10 v 6 h -10 Z M 9 13 h 8 v 4 h -8 Z" class="ColorScheme-Text"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 655 B |
@@ -0,0 +1,13 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
|
||||
<defs id="defs3051">
|
||||
<style type="text/css" id="current-color-scheme">
|
||||
.ColorScheme-Text {
|
||||
color:#4d4d4d;
|
||||
}
|
||||
</style>
|
||||
</defs>
|
||||
<g transform="translate(1,1)">
|
||||
<path style="fill:currentColor;fill-opacity:0.35;stroke:none" d="M 5 4 h 4 v 13 h -4 Z M 13 9 h 4 v 8 h -4 Z" class="ColorScheme-Text"/>
|
||||
<path style="fill:currentColor;fill-opacity:1;fill-rule:evenodd;stroke:none" d="M 1 18 h 20 v 2 h -20 Z M 4 3 h 6 v 15 h -6 Z M 5 4 h 4 v 13 h -4 Z M 12 8 h 6 v 10 h -6 Z M 13 9 h 4 v 8 h -4 Z" class="ColorScheme-Text"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 652 B |
@@ -0,0 +1,13 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
|
||||
<defs id="defs3051">
|
||||
<style type="text/css" id="current-color-scheme">
|
||||
.ColorScheme-Text {
|
||||
color:#4d4d4d;
|
||||
}
|
||||
</style>
|
||||
</defs>
|
||||
<g transform="translate(1,1)">
|
||||
<path style="fill:currentColor;fill-opacity:0.35;stroke:none" d="M 5 4 h 4 v 14 h -4 Z M 13 7 h 4 v 8 h -4 Z" class="ColorScheme-Text"/>
|
||||
<path style="fill:currentColor;fill-opacity:1;fill-rule:evenodd;stroke:none" d="M 1 10 h 3 v 2 h -3 Z M 10 10 h 2 v 2 h -2 Z M 18 10 h 3 v 2 h -3 Z M 4 3 h 6 v 16 h -6 Z M 5 4 h 4 v 14 h -4 Z M 12 6 h 6 v 10 h -6 Z M 13 7 h 4 v 8 h -4 Z" class="ColorScheme-Text"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 696 B |
@@ -0,0 +1,13 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
|
||||
<defs id="defs3051">
|
||||
<style type="text/css" id="current-color-scheme">
|
||||
.ColorScheme-Text {
|
||||
color:#4d4d4d;
|
||||
}
|
||||
</style>
|
||||
</defs>
|
||||
<g transform="translate(1,1)">
|
||||
<path style="fill:currentColor;fill-opacity:0.35;stroke:none" d="M 5 5 h 4 v 13 h -4 Z M 13 5 h 4 v 8 h -4 Z" class="ColorScheme-Text"/>
|
||||
<path style="fill:currentColor;fill-opacity:1;fill-rule:evenodd;stroke:none" d="M 1 2 h 20 v 2 h -20 Z M 4 4 h 6 v 15 h -6 Z M 5 5 h 4 v 13 h -4 Z M 12 4 h 6 v 10 h -6 Z M 13 5 h 4 v 8 h -4 Z" class="ColorScheme-Text"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 651 B |
@@ -0,0 +1,13 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
|
||||
<defs id="defs3051">
|
||||
<style type="text/css" id="current-color-scheme">
|
||||
.ColorScheme-Text {
|
||||
color:#4d4d4d;
|
||||
}
|
||||
</style>
|
||||
</defs>
|
||||
<g transform="translate(1,1)">
|
||||
<path style="fill:currentColor;fill-opacity:0.35;stroke:none" d="M 2 0 h 1 v 22 h -1 Z M 8 0 h 1 v 22 h -1 Z M 14 0 h 1 v 22 h -1 Z M 20 0 h 1 v 22 h -1 Z M 0 2 h 22 v 1 h -22 Z M 0 8 h 22 v 1 h -22 Z M 0 14 h 22 v 1 h -22 Z M 0 20 h 22 v 1 h -22 Z M 9 9 h 5 v 5 h -5 Z" class="ColorScheme-Text"/>
|
||||
<path style="fill:currentColor;fill-opacity:1;fill-rule:evenodd;stroke:none" d="M 8 8 h 7 v 7 h -7 Z M 9 9 h 5 v 5 h -5 Z" class="ColorScheme-Text"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 742 B |
@@ -0,0 +1,13 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
|
||||
<defs id="defs3051">
|
||||
<style type="text/css" id="current-color-scheme">
|
||||
.ColorScheme-Text {
|
||||
color:#dcdcdc;
|
||||
}
|
||||
</style>
|
||||
</defs>
|
||||
<g transform="translate(1,1)">
|
||||
<path style="fill:#dcdcdc;fill-opacity:0.35;stroke:none" d="M 4 5 h 14 v 4 h -14 Z M 7 13 h 8 v 4 h -8 Z" class="ColorScheme-Text"/>
|
||||
<path style="fill:#dcdcdc;fill-opacity:1;fill-rule:evenodd;stroke:none" d="M 10 1 h 2 v 3 h -2 Z M 10 10 h 2 v 2 h -2 Z M 10 18 h 2 v 3 h -2 Z M 3 4 h 16 v 6 h -16 Z M 4 5 h 14 v 4 h -14 Z M 6 12 h 10 v 6 h -10 Z M 7 13 h 8 v 4 h -8 Z" class="ColorScheme-Text"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 690 B |
@@ -0,0 +1,13 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
|
||||
<defs id="defs3051">
|
||||
<style type="text/css" id="current-color-scheme">
|
||||
.ColorScheme-Text {
|
||||
color:#dcdcdc;
|
||||
}
|
||||
</style>
|
||||
</defs>
|
||||
<g transform="translate(1,1)">
|
||||
<path style="fill:#dcdcdc;fill-opacity:0.35;stroke:none" d="M 5 5 h 13 v 4 h -13 Z M 5 13 h 8 v 4 h -8 Z" class="ColorScheme-Text"/>
|
||||
<path style="fill:#dcdcdc;fill-opacity:1;fill-rule:evenodd;stroke:none" d="M 2 1 h 2 v 20 h -2 Z M 4 4 h 15 v 6 h -15 Z M 5 5 h 13 v 4 h -13 Z M 4 12 h 10 v 6 h -10 Z M 5 13 h 8 v 4 h -8 Z" class="ColorScheme-Text"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 644 B |
@@ -0,0 +1,13 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
|
||||
<defs id="defs3051">
|
||||
<style type="text/css" id="current-color-scheme">
|
||||
.ColorScheme-Text {
|
||||
color:#dcdcdc;
|
||||
}
|
||||
</style>
|
||||
</defs>
|
||||
<g transform="translate(1,1)">
|
||||
<path style="fill:#dcdcdc;fill-opacity:0.35;stroke:none" d="M 4 5 h 13 v 4 h -13 Z M 9 13 h 8 v 4 h -8 Z" class="ColorScheme-Text"/>
|
||||
<path style="fill:#dcdcdc;fill-opacity:1;fill-rule:evenodd;stroke:none" d="M 18 1 h 2 v 20 h -2 Z M 3 4 h 15 v 6 h -15 Z M 4 5 h 13 v 4 h -13 Z M 8 12 h 10 v 6 h -10 Z M 9 13 h 8 v 4 h -8 Z" class="ColorScheme-Text"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 645 B |
@@ -0,0 +1,13 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
|
||||
<defs id="defs3051">
|
||||
<style type="text/css" id="current-color-scheme">
|
||||
.ColorScheme-Text {
|
||||
color:#dcdcdc;
|
||||
}
|
||||
</style>
|
||||
</defs>
|
||||
<g transform="translate(1,1)">
|
||||
<path style="fill:#dcdcdc;fill-opacity:0.35;stroke:none" d="M 5 4 h 4 v 13 h -4 Z M 13 9 h 4 v 8 h -4 Z" class="ColorScheme-Text"/>
|
||||
<path style="fill:#dcdcdc;fill-opacity:1;fill-rule:evenodd;stroke:none" d="M 1 18 h 20 v 2 h -20 Z M 4 3 h 6 v 15 h -6 Z M 5 4 h 4 v 13 h -4 Z M 12 8 h 6 v 10 h -6 Z M 13 9 h 4 v 8 h -4 Z" class="ColorScheme-Text"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 642 B |
@@ -0,0 +1,13 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
|
||||
<defs id="defs3051">
|
||||
<style type="text/css" id="current-color-scheme">
|
||||
.ColorScheme-Text {
|
||||
color:#dcdcdc;
|
||||
}
|
||||
</style>
|
||||
</defs>
|
||||
<g transform="translate(1,1)">
|
||||
<path style="fill:#dcdcdc;fill-opacity:0.35;stroke:none" d="M 5 4 h 4 v 14 h -4 Z M 13 7 h 4 v 8 h -4 Z" class="ColorScheme-Text"/>
|
||||
<path style="fill:#dcdcdc;fill-opacity:1;fill-rule:evenodd;stroke:none" d="M 1 10 h 3 v 2 h -3 Z M 10 10 h 2 v 2 h -2 Z M 18 10 h 3 v 2 h -3 Z M 4 3 h 6 v 16 h -6 Z M 5 4 h 4 v 14 h -4 Z M 12 6 h 6 v 10 h -6 Z M 13 7 h 4 v 8 h -4 Z" class="ColorScheme-Text"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 686 B |
@@ -0,0 +1,13 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
|
||||
<defs id="defs3051">
|
||||
<style type="text/css" id="current-color-scheme">
|
||||
.ColorScheme-Text {
|
||||
color:#dcdcdc;
|
||||
}
|
||||
</style>
|
||||
</defs>
|
||||
<g transform="translate(1,1)">
|
||||
<path style="fill:#dcdcdc;fill-opacity:0.35;stroke:none" d="M 5 5 h 4 v 13 h -4 Z M 13 5 h 4 v 8 h -4 Z" class="ColorScheme-Text"/>
|
||||
<path style="fill:#dcdcdc;fill-opacity:1;fill-rule:evenodd;stroke:none" d="M 1 2 h 20 v 2 h -20 Z M 4 4 h 6 v 15 h -6 Z M 5 5 h 4 v 13 h -4 Z M 12 4 h 6 v 10 h -6 Z M 13 5 h 4 v 8 h -4 Z" class="ColorScheme-Text"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 641 B |
@@ -0,0 +1,13 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
|
||||
<defs id="defs3051">
|
||||
<style type="text/css" id="current-color-scheme">
|
||||
.ColorScheme-Text {
|
||||
color:#dcdcdc;
|
||||
}
|
||||
</style>
|
||||
</defs>
|
||||
<g transform="translate(1,1)">
|
||||
<path style="fill:#dcdcdc;fill-opacity:0.35;stroke:none" d="M 2 0 h 1 v 22 h -1 Z M 8 0 h 1 v 22 h -1 Z M 14 0 h 1 v 22 h -1 Z M 20 0 h 1 v 22 h -1 Z M 0 2 h 22 v 1 h -22 Z M 0 8 h 22 v 1 h -22 Z M 0 14 h 22 v 1 h -22 Z M 0 20 h 22 v 1 h -22 Z M 9 9 h 5 v 5 h -5 Z" class="ColorScheme-Text"/>
|
||||
<path style="fill:#dcdcdc;fill-opacity:1;fill-rule:evenodd;stroke:none" d="M 8 8 h 7 v 7 h -7 Z M 9 9 h 5 v 5 h -5 Z" class="ColorScheme-Text"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 732 B |
@@ -90,12 +90,19 @@ ALIASES = {
|
||||
# SVG icons referenced from sources/qeticons.cpp. ico/scalable/ holds the
|
||||
# ones drawn for QET as vectors; one file serves every size.
|
||||
SVGS = [
|
||||
"scalable/align-horizontal-center.svg",
|
||||
"scalable/align-horizontal-left.svg",
|
||||
"scalable/align-horizontal-right.svg",
|
||||
"scalable/align-vertical-bottom.svg",
|
||||
"scalable/align-vertical-center.svg",
|
||||
"scalable/align-vertical-top.svg",
|
||||
"scalable/diagram.svg",
|
||||
"scalable/folio-delete.svg",
|
||||
"scalable/folio-new.svg",
|
||||
"scalable/folio-properties.svg",
|
||||
"scalable/label.svg",
|
||||
"scalable/pdf-import.svg",
|
||||
"scalable/snap-to-grid.svg",
|
||||
"breeze-icons/scalable/apps/hidef/edit-opacity.svg",
|
||||
"breeze-icons/scalable/apps/hidef/image-flip-horizontal-symbolic.svg",
|
||||
"breeze-icons/scalable/apps/hidef/image-flip-vertical-symbolic.svg",
|
||||
|
||||
@@ -938,26 +938,27 @@ void QETDiagramEditor::setUpActions()
|
||||
//Align actions. No default shortcut: they are reached from the
|
||||
//Edit menu, the selection's context menu and the command search,
|
||||
//and a user can bind one if they want.
|
||||
QAction *snap_to_grid = m_align_actions_group.addAction(tr("Aligner sur la grille"));
|
||||
QAction *snap_to_grid = m_align_actions_group.addAction(QET::Icons::SnapToGrid, tr("Aligner sur la grille"));
|
||||
ShortcutManager::instance().registerAction(snap_to_grid, "diagrameditor.snap_selection_to_grid", tr("Éditeur de schémas"), QKeySequence());
|
||||
snap_to_grid->setStatusTip(tr("Remet les éléments, images et textes sélectionnés sur la grille", "status bar tip"));
|
||||
snap_to_grid->setData("snap_selection_to_grid");
|
||||
|
||||
const struct {
|
||||
const char *id;
|
||||
const QIcon &icon;
|
||||
QString text;
|
||||
QString tip;
|
||||
} align_actions[] = {
|
||||
{"align_left", tr("Aligner à gauche"), tr("Aligne les bords gauches des objets sélectionnés", "status bar tip")},
|
||||
{"align_hcenter", tr("Centrer horizontalement"), tr("Aligne les objets sélectionnés sur une même verticale, par leur point d'origine pour les éléments", "status bar tip")},
|
||||
{"align_right", tr("Aligner à droite"), tr("Aligne les bords droits des objets sélectionnés", "status bar tip")},
|
||||
{"align_top", tr("Aligner en haut"), tr("Aligne les bords supérieurs des objets sélectionnés", "status bar tip")},
|
||||
{"align_vcenter", tr("Centrer verticalement"), tr("Aligne les objets sélectionnés sur une même horizontale, par leur point d'origine pour les éléments", "status bar tip")},
|
||||
{"align_bottom", tr("Aligner en bas"), tr("Aligne les bords inférieurs des objets sélectionnés", "status bar tip")}
|
||||
{"align_left", QET::Icons::AlignLeft, tr("Aligner à gauche"), tr("Aligne les bords gauches des objets sélectionnés", "status bar tip")},
|
||||
{"align_hcenter", QET::Icons::AlignHCenter, tr("Centrer horizontalement"), tr("Aligne les objets sélectionnés sur une même verticale, par leur point d'origine pour les éléments", "status bar tip")},
|
||||
{"align_right", QET::Icons::AlignRight, tr("Aligner à droite"), tr("Aligne les bords droits des objets sélectionnés", "status bar tip")},
|
||||
{"align_top", QET::Icons::AlignTop, tr("Aligner en haut"), tr("Aligne les bords supérieurs des objets sélectionnés", "status bar tip")},
|
||||
{"align_vcenter", QET::Icons::AlignVCenter, tr("Centrer verticalement"), tr("Aligne les objets sélectionnés sur une même horizontale, par leur point d'origine pour les éléments", "status bar tip")},
|
||||
{"align_bottom", QET::Icons::AlignBottom, tr("Aligner en bas"), tr("Aligne les bords inférieurs des objets sélectionnés", "status bar tip")}
|
||||
};
|
||||
for (const auto &a : align_actions)
|
||||
{
|
||||
QAction *action = m_align_actions_group.addAction(a.text);
|
||||
QAction *action = m_align_actions_group.addAction(a.icon, a.text);
|
||||
ShortcutManager::instance().registerAction(action, QStringLiteral("diagrameditor.") + QLatin1String(a.id), tr("Éditeur de schémas"), QKeySequence());
|
||||
action->setStatusTip(a.tip);
|
||||
action->setData(QString::fromLatin1(a.id));
|
||||
|
||||
@@ -23,6 +23,12 @@ namespace QET {
|
||||
namespace Icons {
|
||||
QIcon Add;
|
||||
QIcon AddFolio;
|
||||
QIcon AlignBottom;
|
||||
QIcon AlignHCenter;
|
||||
QIcon AlignLeft;
|
||||
QIcon AlignRight;
|
||||
QIcon AlignTop;
|
||||
QIcon AlignVCenter;
|
||||
QIcon Allowed;
|
||||
QIcon ApplicationExit;
|
||||
QIcon ArrowLeft;
|
||||
@@ -169,6 +175,7 @@ namespace QET {
|
||||
QIcon SendBackward;
|
||||
QIcon Settings;
|
||||
QIcon SinglePage;
|
||||
QIcon SnapToGrid;
|
||||
QIcon South;
|
||||
QIcon Start;
|
||||
QIcon TableOfContent;
|
||||
@@ -395,6 +402,12 @@ void QET::Icons::initIcons()
|
||||
|
||||
Add = QIcon::fromTheme("list-add");
|
||||
AddFolio = QIcon::fromTheme("folio-new");
|
||||
AlignBottom = QIcon::fromTheme("align-vertical-bottom");
|
||||
AlignHCenter = QIcon::fromTheme("align-horizontal-center");
|
||||
AlignLeft = QIcon::fromTheme("align-horizontal-left");
|
||||
AlignRight = QIcon::fromTheme("align-horizontal-right");
|
||||
AlignTop = QIcon::fromTheme("align-vertical-top");
|
||||
AlignVCenter = QIcon::fromTheme("align-vertical-center");
|
||||
Allowed = QIcon::fromTheme("user-online");
|
||||
ApplicationExit = QIcon::fromTheme("application-exit");
|
||||
ArrowLeft = QIcon::fromTheme("arrow-left");
|
||||
@@ -581,6 +594,7 @@ void QET::Icons::initIcons()
|
||||
SendBackward = QIcon::fromTheme("send_backward");
|
||||
Settings = QIcon::fromTheme("settings");
|
||||
SinglePage = QIcon::fromTheme("single_page");
|
||||
SnapToGrid = QIcon::fromTheme("snap-to-grid");
|
||||
South = QIcon::fromTheme("south");
|
||||
Start = QIcon::fromTheme("start");
|
||||
TableOfContent = QIcon::fromTheme("table-of-content");
|
||||
|
||||
@@ -30,6 +30,12 @@ namespace QET {
|
||||
// namespace
|
||||
extern QIcon Add;
|
||||
extern QIcon AddFolio;
|
||||
extern QIcon AlignBottom;
|
||||
extern QIcon AlignHCenter;
|
||||
extern QIcon AlignLeft;
|
||||
extern QIcon AlignRight;
|
||||
extern QIcon AlignTop;
|
||||
extern QIcon AlignVCenter;
|
||||
extern QIcon Allowed;
|
||||
extern QIcon ApplicationExit;
|
||||
extern QIcon ArrowLeft;
|
||||
@@ -177,6 +183,7 @@ namespace QET {
|
||||
extern QIcon SendBackward;
|
||||
extern QIcon Settings;
|
||||
extern QIcon SinglePage;
|
||||
extern QIcon SnapToGrid;
|
||||
extern QIcon South;
|
||||
extern QIcon Start;
|
||||
extern QIcon TableOfContent;
|
||||
|
||||