From efcd4f5ab8bfc650f6626a0df60c31c7ac15d2ec Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Sat, 27 Nov 2021 15:21:17 +0100 Subject: [PATCH] update tool bar actions and icons --- .../ui/swt/internal/WaveformCanvas.java | 2 +- .../Application.e4xmi | 23 +++++--- .../icons/center_blue.png | Bin 0 -> 600 bytes .../icons/next-green.png | Bin 0 -> 519 bytes .../icons/previous-green.png | Bin 0 -> 524 bytes .../e4/application/handlers/PanHandler.java | 49 ++++++++++++++++++ .../e4/application/handlers/ZoomHandler.java | 8 +-- .../e4/application/parts/WaveformViewer.java | 26 +++++++++- 8 files changed, 94 insertions(+), 14 deletions(-) create mode 100644 plugins/com.minres.scviewer.e4.application/icons/center_blue.png create mode 100644 plugins/com.minres.scviewer.e4.application/icons/next-green.png create mode 100644 plugins/com.minres.scviewer.e4.application/icons/previous-green.png create mode 100644 plugins/com.minres.scviewer.e4.application/src/com/minres/scviewer/e4/application/handlers/PanHandler.java diff --git a/plugins/com.minres.scviewer.database.ui.swt/src/com/minres/scviewer/database/ui/swt/internal/WaveformCanvas.java b/plugins/com.minres.scviewer.database.ui.swt/src/com/minres/scviewer/database/ui/swt/internal/WaveformCanvas.java index b658d4c..cc8eb37 100644 --- a/plugins/com.minres.scviewer.database.ui.swt/src/com/minres/scviewer/database/ui/swt/internal/WaveformCanvas.java +++ b/plugins/com.minres.scviewer.database.ui.swt/src/com/minres/scviewer/database/ui/swt/internal/WaveformCanvas.java @@ -570,7 +570,7 @@ public class WaveformCanvas extends Canvas implements IWaveformZoom{ break; case FULL: setScale(WaveformCanvas.ZOOM_FULL); - break; + break; } } diff --git a/plugins/com.minres.scviewer.e4.application/Application.e4xmi b/plugins/com.minres.scviewer.e4.application/Application.e4xmi index b2cf22b..56d12d1 100644 --- a/plugins/com.minres.scviewer.e4.application/Application.e4xmi +++ b/plugins/com.minres.scviewer.e4.application/Application.e4xmi @@ -160,6 +160,7 @@ + @@ -207,10 +208,10 @@ - + - + @@ -218,15 +219,20 @@ - - - - - + + + + + + + + + + @@ -289,6 +295,9 @@ + + + diff --git a/plugins/com.minres.scviewer.e4.application/icons/center_blue.png b/plugins/com.minres.scviewer.e4.application/icons/center_blue.png new file mode 100644 index 0000000000000000000000000000000000000000..64f757562ee46389eeaeb71716c03c6d58f150b1 GIT binary patch literal 600 zcmV-e0;m0nP)r93>)XX9vlWx{4swkD&#}Qio2q#T0{Wqm$qgFjg93 zK5pLJoBQ7P?O^LIg00Z@tmiyGo`-V|{LjjO&Vc^ij2~ceLes6Rj=ATz_wquU1oD zgo-86N)rhiv^5*Ck?HixW%0;#dZn$|h(*E%T4^el^Z;ekL0B&NqCYzeyQwu5%NU~VM(Oc z)CB`9d(^0 zTgtnS@81hkDA^uB2*K9-EC=bG7lkjer&rxUE;Tv+*?F#{9DE{#@EYv{tGcl-zI@$Z mXzYtGw-2o9fAUO!UEcwa1ptfF!gf0V0000t@G6TyU+8y7x?RA_%D-tT^S+y!ffyHlwTj) z>^NdnbaN`fJc-rO)BIeh2v{M6oEYEfobij);izw}g=v~#gcl4H06fn_ys^iK#VRL9 zH`?d&x+~#Q2QITf>;M2GLcJxLt6NcC6&@d6j3;tB2k~6Eo(1NL0zirX!c{)PY`nW^ zwA8eL+GoT4(`MuwPQs3I69CXzDYxchZe@`IF?N0bW^4A5B}os+sS z3`0F3a3-KOkRc9@>YWt>iaOxgqNEgvM#^xLe8TO?`?eZ7w_d$$L0sXGu%eii*o1l_Q1`#$-G^o_l~zmyux>Qu*&%7OUdpr`|ZJ2m`r zWv?A9r-uCN)qkMixlIKEo-VAF!^HJSfiv~h)bVQ;pbEnOI-fN9{V?d-uDbvL002ov JPDHLkV1h0i>K_0A literal 0 HcmV?d00001 diff --git a/plugins/com.minres.scviewer.e4.application/icons/previous-green.png b/plugins/com.minres.scviewer.e4.application/icons/previous-green.png new file mode 100644 index 0000000000000000000000000000000000000000..fe8442fa8ad2405c83a2b9e393441fd663db0d05 GIT binary patch literal 524 zcmV+n0`vWeP)Rv^8ugJA7TpsuL&iQ@Za{>N(S&WCs$s`kB$_Nll&tid# zDdYe7&9NvYY-wllrnQDOeP#B5e*R4fFM@K zL+id(ms^SqkMvtKg_wwK#)D85&1EEmUal5~)_mJ-JyO`?=><%5z$*QnK&Wb10Tq`3 zsSJWEqxTwgp|GF-d>2{o)0ZDd>DxE3Ijr@FSZ_ceZdgU7 ziVEK>9!t)=q?E&Kq5$@0D^Tv}`*_U`c%z2Yib~Du=~im?=|SFmye?ECG;~l=#;7_@ zL)P