From 4281b7bb8e8716e408da5584ad731a9245e3b31d Mon Sep 17 00:00:00 2001 From: "giwoong.kim" Date: Tue, 6 Nov 2012 15:55:51 +0900 Subject: [PATCH] skin: comment out code of folding button in general skin It will be changed soon. Signed-off-by: GiWoong Kim --- .../org/tizen/emulator/skin/EmulatorSkin.java | 108 +++++++++--------- 1 file changed, 54 insertions(+), 54 deletions(-) diff --git a/tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java b/tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java index 24fee916bb..f126fd7ad8 100644 --- a/tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java +++ b/tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java @@ -404,52 +404,52 @@ public class EmulatorSkin { skinInfo.isPhoneShape()); if (skinInfo.isPhoneShape() == false) { - /* folding button */ - if (foldingButton == null) { - foldingButton = new Button(shell, SWT.PUSH); - foldingButton.setText(">"); - - foldingButton.addMouseListener(new MouseListener() { - @Override - public void mouseDown(MouseEvent e) { - /* do nothing */ - } - - @Override - public void mouseUp(MouseEvent e) { - if (skinInfo.getSkinOption() == 0) { - skinInfo.setSkinOption(1); - foldingButton.setText("<"); - } else { - skinInfo.setSkinOption(0); - foldingButton.setText(">"); - } - - shell.getDisplay().syncExec(new Runnable() { - public void run() { - rearrangeSkin(); - } - }); - } - - @Override - public void mouseDoubleClick(MouseEvent e) { - /* do nothing */ - } - }); - - shell.pack(); - } - - FormData dataFoldingButton = new FormData(); - dataFoldingButton.left = new FormAttachment(lcdCanvas, 0); - dataFoldingButton.top = new FormAttachment( - 0, (lcdBounds.height / 2) - (foldingButton.getSize().y / 2)); - foldingButton.setLayoutData(dataFoldingButton); - - if (skinInfo.getSkinOption() == 0) { - /* HW keys region */ - if (decoration == null) { +// /* folding button */ +// if (foldingButton == null) { +// foldingButton = new Button(shell, SWT.PUSH); +// foldingButton.setText(">"); +// +// foldingButton.addMouseListener(new MouseListener() { +// @Override +// public void mouseDown(MouseEvent e) { +// /* do nothing */ +// } +// +// @Override +// public void mouseUp(MouseEvent e) { +// if (skinInfo.getSkinOption() == 0) { +// skinInfo.setSkinOption(1); +// foldingButton.setText("<"); +// } else { +// skinInfo.setSkinOption(0); +// foldingButton.setText(">"); +// } +// +// shell.getDisplay().syncExec(new Runnable() { +// public void run() { +// rearrangeSkin(); +// } +// }); +// } +// +// @Override +// public void mouseDoubleClick(MouseEvent e) { +// /* do nothing */ +// } +// }); +// +// shell.pack(); +// } +// +// FormData dataFoldingButton = new FormData(); +// dataFoldingButton.left = new FormAttachment(lcdCanvas, 0); +// dataFoldingButton.top = new FormAttachment( +// 0, (lcdBounds.height / 2) - (foldingButton.getSize().y / 2)); +// foldingButton.setLayoutData(dataFoldingButton); +// +// if (skinInfo.getSkinOption() == 0) { +// /* HW keys region */ +// if (decoration == null) { decoration = new Decorations(shell, SWT.BORDER); decoration.setLayout(new GridLayout(1, true)); @@ -490,16 +490,16 @@ public class EmulatorSkin { } FormData dataDecoration = new FormData(); - dataDecoration.left = new FormAttachment(foldingButton, 0); + dataDecoration.left = new FormAttachment(lcdCanvas, 0); dataDecoration.top = new FormAttachment(0, 0); decoration.setLayoutData(dataDecoration); - } - } else { - if (decoration != null) { - decoration.dispose(); - decoration = null; - } - } +// } +// } else { +// if (decoration != null) { +// decoration.dispose(); +// decoration = null; +// } +// } } else { Image tempImage = null; -- 2.34.1