From 5ec5c213a919f5c4409c68292c7f366b16e4eb35 Mon Sep 17 00:00:00 2001 From: Xavier Ducrohet Date: Thu, 24 Sep 2009 13:20:42 -0700 Subject: [PATCH] Move the screenshot button above the image This will help when taking screenshots of large screen devices on laptop screens. Change-Id: Ief7b03d2f1711970e76f4dfe6086e3ea0d606c99 --- .../android/ddmuilib/ScreenShotDialog.java | 32 ++++++++++--------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/tools/ddms/libs/ddmuilib/src/com/android/ddmuilib/ScreenShotDialog.java b/tools/ddms/libs/ddmuilib/src/com/android/ddmuilib/ScreenShotDialog.java index 778c59458..0319642cc 100644 --- a/tools/ddms/libs/ddmuilib/src/com/android/ddmuilib/ScreenShotDialog.java +++ b/tools/ddms/libs/ddmuilib/src/com/android/ddmuilib/ScreenShotDialog.java @@ -97,21 +97,6 @@ public class ScreenShotDialog extends Dialog { shell.setLayout(new GridLayout(3, true)); - // title/"capturing" label - mBusyLabel = new Label(shell, SWT.NONE); - mBusyLabel.setText("Preparing..."); - data = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); - data.horizontalSpan = 3; - mBusyLabel.setLayoutData(data); - - // space for the image - mImageLabel = new Label(shell, SWT.BORDER); - data = new GridData(GridData.HORIZONTAL_ALIGN_CENTER); - data.horizontalSpan = 3; - mImageLabel.setLayoutData(data); - Display display = shell.getDisplay(); - mImageLabel.setImage(ImageHelper.createPlaceHolderArt(display, 50, 50, display.getSystemColor(SWT.COLOR_BLUE))); - // "refresh" button Button refresh = new Button(shell, SWT.PUSH); refresh.setText("Refresh"); @@ -151,6 +136,23 @@ public class ScreenShotDialog extends Dialog { } }); + // title/"capturing" label + mBusyLabel = new Label(shell, SWT.NONE); + mBusyLabel.setText("Preparing..."); + data = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); + data.horizontalSpan = 3; + mBusyLabel.setLayoutData(data); + + // space for the image + mImageLabel = new Label(shell, SWT.BORDER); + data = new GridData(GridData.HORIZONTAL_ALIGN_CENTER); + data.horizontalSpan = 3; + mImageLabel.setLayoutData(data); + Display display = shell.getDisplay(); + mImageLabel.setImage(ImageHelper.createPlaceHolderArt( + display, 50, 50, display.getSystemColor(SWT.COLOR_BLUE))); + + shell.setDefaultButton(done); }