[SRADA-739] Resolve issue that ctrl + whell can't change scale
authorjaeyong lee <jae-yong.lee@samsung.com>
Thu, 2 Jun 2016 01:28:54 +0000 (10:28 +0900)
committerdongkyu6 lee <dongkyu6.lee@samsung.com>
Thu, 2 Jun 2016 01:46:52 +0000 (10:46 +0900)
Change-Id: Id9ff33e90624bb1f4c4f7b125291d6c95b1c65fc

org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/file/FileChartView.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/memory/MemoryChartView.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/network/NetworkChartView.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/opengl/chart/GLChartView.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/thread/chart/ThreadChartView.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/timeline/common/TimelineChartView.java

index 3927bde..78d0c2c 100644 (file)
@@ -159,6 +159,12 @@ public class FileChartView extends DAViewComposite {
                                updateScale();
                        }
                });
+               fileChartBoard.getListComposite().addListener(SWT.MouseWheel, new Listener() {
+                       @Override
+                       public void handleEvent(Event event) {
+                               Toolbar.INSTANCE.setScaleSelection(fileChartBoard.getScale().getSelection());
+                       }
+               });
        }
        
        private void updateScale() {
index 7b5bcef..85531a3 100644 (file)
@@ -135,6 +135,12 @@ public class MemoryChartView extends DAViewComposite {
                                updateScale();
                        }
                });
+               memoryChartBoard.getListComposite().addListener(SWT.MouseWheel, new Listener() {
+                       @Override
+                       public void handleEvent(Event event) {
+                               Toolbar.INSTANCE.setScaleSelection(memoryChartBoard.getScale().getSelection());
+                       }
+               });
        }
        
        private void updateScale() {
index c5ca6bd..b98864a 100644 (file)
@@ -161,6 +161,12 @@ public class NetworkChartView extends DAViewComposite {
                                updateScale();
                        }
                });
+               networkChartBoard.getListComposite().addListener(SWT.MouseWheel, new Listener() {
+                       @Override
+                       public void handleEvent(Event event) {
+                               Toolbar.INSTANCE.setScaleSelection(networkChartBoard.getScale().getSelection());
+                       }
+               });
        }
        
        private void updateScale() {
index 96f9c7b..e7a3457 100644 (file)
@@ -147,6 +147,18 @@ public class GLChartView extends DAViewComposite {
                                updateScale();
                        }
                });
+               frameTimeChartBoard.getListComposite().addListener(SWT.MouseWheel, new Listener() {
+                       @Override
+                       public void handleEvent(Event event) {
+                               Toolbar.INSTANCE.setScaleSelection(frameTimeChartBoard.getScale().getSelection());
+                       }
+               });
+               frameRateChartBoard.getListComposite().addListener(SWT.MouseWheel, new Listener() {
+                       @Override
+                       public void handleEvent(Event event) {
+                               Toolbar.INSTANCE.setScaleSelection(frameRateChartBoard.getScale().getSelection());
+                       }
+               });
        }
        
 
index 2f7419f..7036202 100644 (file)
@@ -125,6 +125,12 @@ public class ThreadChartView extends DAViewComposite {
                                updateScale();
                        }
                });
+               threadChartBoard.getListComposite().addListener(SWT.MouseWheel, new Listener() {
+                       @Override
+                       public void handleEvent(Event event) {
+                               Toolbar.INSTANCE.setScaleSelection(threadChartBoard.getScale().getSelection());
+                       }
+               });
        }
        
        private DACustomCombo makeDACustomCombo(Composite parent) {
index 5b2f7c0..e505279 100644 (file)
@@ -154,6 +154,12 @@ public class TimelineChartView extends DAViewComposite {
                                updateScale();
                        }
                });
+               chartBoard.getListComposite().addListener(SWT.MouseWheel, new Listener() {
+                       @Override
+                       public void handleEvent(Event event) {
+                               Toolbar.INSTANCE.setScaleSelection(chartBoard.getScale().getSelection());
+                       }
+               });
        }
        
        private DAToolBarCustomCombo makeDACustomCombo(Composite parent) {