Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

Add OCA Export icon

manongjohncae7cb0daaef
diff --git a/toonz/sources/toonz/icons/dark/actions/16/export_oca.svg b/toonz/sources/toonz/icons/dark/actions/16/export_oca.svg
new file mode 100644
index 000000000..27525299a
--- /dev/null
+++ b/toonz/sources/toonz/icons/dark/actions/16/export_oca.svg
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+ width="100%"
+ height="100%"
+ viewBox="0 0 16 16"
+ version="1.1"
+ xml:space="preserve"
+ style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"
+ id="svg1244"
+ sodipodi:docname="export_oca.svg"
+ inkscape:version="1.1.2 (b8e25be833, 2022-02-05)"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:svg="http://www.w3.org/2000/svg"><defs
+ id="defs1248" /><sodipodi:namedview
+ id="namedview1246"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageshadow="2"
+ inkscape:pageopacity="0.0"
+ inkscape:pagecheckerboard="0"
+ showgrid="true"
+ inkscape:zoom="44.9375"
+ inkscape:cx="7.8664812"
+ inkscape:cy="8.5006954"
+ inkscape:window-width="1920"
+ inkscape:window-height="1141"
+ inkscape:window-x="-7"
+ inkscape:window-y="-7"
+ inkscape:window-maximized="1"
+ inkscape:current-layer="export_level"><inkscape:grid
+ type="xygrid"
+ id="grid823" /></sodipodi:namedview>
+ <g
+ id="export_level">
+ <rect
+ id="bg"
+ x="0.001"
+ y="-0.04"
+ width="16"
+ height="16"
+ style="fill:#878787;fill-opacity:0;" />
+ <path
+ id="load"
+ d="M11.486,16c2.476,-0 4.486,-2.01 4.486,-4.486c0,-2.476 -2.01,-4.486 -4.486,-4.486c-2.476,-0 -4.486,2.01 -4.486,4.486c-0,2.476 2.01,4.486 4.486,4.486Zm0.106,-7.984c0.099,0.019 0.194,0.068 0.269,0.148l2.828,2.938c0.189,0.2 0.181,0.517 -0.02,0.706c-0.2,0.19 -0.517,0.181 -0.707,-0.019l-2.001,-2.065l0,4.768c0,0.276 -0.224,0.5 -0.5,0.5c-0.276,0 -0.5,-0.224 -0.5,-0.5l0,-4.758l-2.008,2.033c-0.193,0.198 -0.51,0.201 -0.707,0.008c-0.197,-0.193 -0.2,-0.51 -0.007,-0.707l2.872,-2.917c0.129,-0.132 0.314,-0.177 0.481,-0.135Z" />
+
+ <path
+ id="text2824"
+ style="font-weight:bold;font-size:7.53714px;line-height:1.25;font-family:'Segoe UI';-inkscape-font-specification:'Segoe UI Bold';stroke-width:0.403776"
+ d="M 3.40625 1 C 2.6809205 1 2.0998175 1.2831901 1.6601562 1.8496094 C 1.220495 2.4160287 1 3.157159 1 4.0742188 C 1 4.9427283 1.2174247 5.6492621 1.6503906 6.1914062 C 2.0833566 6.7308532 2.6426889 7 3.3300781 7 C 4.0353216 7 4.6074924 6.720437 5.0449219 6.1621094 C 5.4845832 5.6037818 5.703125 4.8686966 5.703125 3.9570312 C 5.703125 3.069641 5.4923982 2.3546442 5.0683594 1.8125 C 4.6465524 1.2703558 4.0914074 1 3.40625 1 z M 8.7558594 1 C 7.9992849 1 7.3835729 1.2880261 6.9082031 1.8652344 C 6.4350651 2.4424426 6.1992188 3.1951981 6.1992188 4.1230469 C 6.1992187 4.9942537 6.4102242 5.6915802 6.8320312 6.2148438 C 7.2172792 6.6927548 7.7350676 6.9507658 8.3828125 6.9921875 A 5.4999971 5.4999943 0 0 1 9.9414062 6.2480469 L 9.9414062 5.4980469 C 9.5910163 5.7461925 9.2050101 5.8710938 8.7832031 5.8710938 C 8.3413101 5.8710937 7.9896343 5.7048067 7.7285156 5.3730469 C 7.467397 5.0385898 7.3378906 4.5922748 7.3378906 4.03125 C 7.3378906 3.4459501 7.475212 2.9812207 7.7519531 2.6386719 C 8.0286942 2.2961231 8.3929298 2.125 8.84375 2.125 C 9.2543981 2.125 9.6200295 2.2406941 9.9414062 2.4726562 L 9.9414062 1.2148438 C 9.6200295 1.0718903 9.2245338 1 8.7558594 1 z M 12.009766 1.0976562 L 10.486328 6.1601562 A 5.4999971 5.4999943 0 0 1 11.5 6 A 5.4999971 5.4999943 0 0 1 11.667969 6.0097656 L 11.773438 5.6074219 L 13.480469 5.6074219 L 13.710938 6.4746094 A 5.4999971 5.4999943 0 0 1 14.501953 6.8984375 L 15 6.8984375 L 13.292969 1.0976562 L 12.009766 1.0976562 z M 3.3769531 2.125 C 3.7451973 2.125 4.0360275 2.292496 4.2480469 2.6269531 C 4.4600663 2.9614102 4.5644531 3.4297667 4.5644531 4.03125 C 4.5644531 4.6084582 4.4550429 5.0584002 4.2363281 5.3847656 C 4.0176134 5.7084338 3.7223172 5.8710938 3.3496094 5.8710938 C 2.9880605 5.8710937 2.6958346 5.7035977 2.4726562 5.3691406 C 2.2494779 5.0346835 2.1386719 4.5803704 2.1386719 4.0058594 C 2.1386719 3.4394401 2.2494779 2.9851269 2.4726562 2.6425781 C 2.6958346 2.2973321 2.99755 2.125 3.3769531 2.125 z M 12.609375 2.1328125 L 12.636719 2.1328125 C 12.652341 2.3351051 12.678857 2.5086462 12.716797 2.6542969 L 13.232422 4.6054688 L 12.003906 4.6054688 L 12.525391 2.6386719 C 12.570026 2.4714433 12.598216 2.3027383 12.609375 2.1328125 z " /></g>
+</svg>
diff --git a/toonz/sources/toonz/mainwindow.cpp b/toonz/sources/toonz/mainwindow.cpp
index 021df9e93..af686c4cc 100644
--- a/toonz/sources/toonz/mainwindow.cpp
+++ b/toonz/sources/toonz/mainwindow.cpp
@@ -1758,7 +1758,8 @@ void MainWindow::defineActions() {
"");
createMenuFileAction(
MI_ExportOCA,
- QT_TRANSLATE_NOOP("MainWindow", "Export Open Cel Animation (OCA)"), "");
+ QT_TRANSLATE_NOOP("MainWindow", "Export Open Cel Animation (OCA)"), "",
+ "export_oca");
createMenuFileAction(
MI_ImportOCA,
QT_TRANSLATE_NOOP("MainWindow", "Import Open Cel Animation (OCA)"), "",
diff --git a/toonz/sources/toonz/toonz.qrc b/toonz/sources/toonz/toonz.qrc
index b55c3dbf7..4ef056da3 100644
--- a/toonz/sources/toonz/toonz.qrc
+++ b/toonz/sources/toonz/toonz.qrc
@@ -579,7 +579,8 @@
<file>icons/dark/actions/16/zero_thick_lines.svg</file>
<file>icons/dark/actions/16/table.svg</file>
- <file>icons/dark/actions/16/import_oca.svg</file>
+ <file>icons/dark/actions/16/export_oca.svg</file>
+ <file>icons/dark/actions/16/import_oca.svg</file>
<!-- Keyframe -->
<file>icons/dark/actions/20/key_off.svg</file>