UI : Apply new design guide to DADialog 29/23229/1
authorhyeran74.kim <hyeran74.kim@samsung.com>
Fri, 20 Jun 2014 07:42:19 +0000 (16:42 +0900)
committerhyeran74.kim <hyeran74.kim@samsung.com>
Fri, 20 Jun 2014 07:42:19 +0000 (16:42 +0900)
Signed-off-by: hyeran74.kim <hyeran74.kim@samsung.com>
Change-Id: I18d7a6b441287c0cb5a27346fe7376f638bcc324

org.tizen.dynamicanalyzer.appearance/src/org/tizen/dynamicanalyzer/resources/ImageResources.java
org.tizen.dynamicanalyzer.appearance/src/org/tizen/dynamicanalyzer/widgets/da/base/DADialog.java

index 221d3b8..e8544b3 100644 (file)
@@ -186,6 +186,7 @@ public class ImageResources {
 \r
        // Dialog icon\r
        public static final Image DIALOG_WARNING_ICON = getPngImage("dialog_warning"); //$NON-NLS-1$\r
+       public static final Image DIALOG_ERROR_ICON = getPngImage("dialog_error"); //$NON-NLS-1$\r
 \r
        // OpenGL\r
        public static final Image OPENGL_SHOW_ONLY_CHANGED_SELECTED = getPngImage("show_only_changed_push"); //$NON-NLS-1$\r
index 1d69254..5902b5c 100644 (file)
@@ -80,6 +80,7 @@ public class DADialog {
                shell.setLayout(new FormLayout());
                shell.setText(titleText);
 
+               // Base composite
                Composite base = new Composite(shell, SWT.NONE);
                base.setLayout(new FormLayout());
                FormData baseData = new FormData();
@@ -105,19 +106,20 @@ public class DADialog {
                strMessage.setFont(FontResources.ABOUT_TEXT);
 
                FormData labelData = new FormData();
-               labelData.left = new FormAttachment(0, 15);
+               labelData.left = new FormAttachment(0, 10);
                labelData.top = new FormAttachment(0, 6);
                labelData.height = 64;
                labelData.width = 64;
                icon.setLayoutData(labelData);
 
                labelData = new FormData();
-               labelData.left = new FormAttachment(0, 95);
+               labelData.left = new FormAttachment(0, 90);
                labelData.right = new FormAttachment(100, 0);
-               labelData.top = new FormAttachment(0, 15);
+               labelData.top = new FormAttachment(0, 17);
                labelData.height = 40;
                strMessage.setLayoutData(labelData);
 
+               // Button composite
                Composite buttonComp = new Composite(shell, SWT.NONE);
                FormLayout compLayout = new FormLayout();
                buttonComp.setLayout(compLayout);
@@ -144,13 +146,14 @@ public class DADialog {
                compData.bottom = new FormAttachment(100, 0);
                buttonComp.setLayoutData(compData);
 
+               // OK button
                okButton = new DAButton(buttonComp, SWT.NONE);
                okButton.addClickListener(okButtonListener);
                okButton.setText(WidgetLabels.OK);
                okButton.setButtonFont(FontResources.DIALOG_BUTTON_FONT);
 
                FormData okData = new FormData();
-               okData.top = new FormAttachment(0, 12);
+               okData.top = new FormAttachment(0, 11);
                okData.right = new FormAttachment(100, -9);
                okData.width = DesignConstants.DA_BUTTON_WIDTH;
                okData.height = DesignConstants.DA_BUTTON_HEIGHT;