UIB : boiler plate added. 41/22141/1
authorjooyoul_lee <jy.exe.lee@samsung.com>
Thu, 29 May 2014 09:46:51 +0000 (18:46 +0900)
committerjooyoul_lee <jy.exe.lee@samsung.com>
Thu, 29 May 2014 09:46:51 +0000 (18:46 +0900)
1. boiler plate added
2. nscreen defaultDevice changed (360x640 -> 720x1280)

Change-Id: I1b0b57cd4337d9507b64556e39f373ed68f4dd34
Signed-off-by: jooyoul_lee <jy.exe.lee@samsung.com>
28 files changed:
org.tizen.webuibuilder/res/icons/folding_screen_feature_close.png [new file with mode: 0644]
org.tizen.webuibuilder/res/icons/folding_screen_feature_open.png [new file with mode: 0644]
org.tizen.webuibuilder/src/org/tizen/webuibuilder/gef/figure/TooltipFigure.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/ui/editor/PageDesignerToolbar.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/ui/selector/BaseMessageBox.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/ui/selector/CSSSelectorDialog.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/ui/selector/CssSelecotrAction.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/ui/selector/SelectorElement.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/ui/views/nscreen/CSSLayerBaseComposite.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/ui/views/nscreen/CSSLayerInnerScrolledComposite.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/ui/views/nscreen/CssLayerComposite.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/ui/views/nscreen/FontUtil.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/ui/views/nscreen/INScreenDrawRenderer.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/ui/views/nscreen/NScreenBaseComposite.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/ui/views/nscreen/NScreenGroup.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/ui/views/nscreen/NScreenHistory.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/ui/views/nscreen/NScreenItem.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/ui/views/nscreen/NScreenItemFloatRenderer.java [deleted file]
org.tizen.webuibuilder/src/org/tizen/webuibuilder/ui/views/nscreen/NScreenSimpleRenderer.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/ui/views/nscreen/command/NScreenDisableCommand.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/ui/views/nscreen/command/NScreenEnableCommand.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/ui/views/nscreen/command/NScreenLinkCutCommand.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/ui/views/nscreen/command/NScreenLinkDownCommand.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/ui/views/nscreen/command/NScreenLinkUpCommand.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/ui/views/nscreen/command/NScreenMoveDownCommand.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/ui/views/nscreen/command/NScreenMoveUpCommand.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/ui/views/nscreen/dialog/NScreenInputWizardPage.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/ui/views/nscreen/dialog/NscreenInputWizard.java

diff --git a/org.tizen.webuibuilder/res/icons/folding_screen_feature_close.png b/org.tizen.webuibuilder/res/icons/folding_screen_feature_close.png
new file mode 100644 (file)
index 0000000..8bdd609
Binary files /dev/null and b/org.tizen.webuibuilder/res/icons/folding_screen_feature_close.png differ
diff --git a/org.tizen.webuibuilder/res/icons/folding_screen_feature_open.png b/org.tizen.webuibuilder/res/icons/folding_screen_feature_open.png
new file mode 100644 (file)
index 0000000..caa5076
Binary files /dev/null and b/org.tizen.webuibuilder/res/icons/folding_screen_feature_open.png differ
index 86dd0df..dd3899d 100644 (file)
@@ -1,4 +1,24 @@
-
+/*
+ * UI Builder
+ *
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
 
 package org.tizen.webuibuilder.gef.figure;
 
index 0e4b359..b7dfb9d 100644 (file)
@@ -137,11 +137,11 @@ public class PageDesignerToolbar implements ISelectionListener {
         // ProjectManager.getProjectManager(project);
         // PageData pageData = mainEditor.getPageData();
         // pageData.addPageListener(this);
-        defaultMobileDevice = new Device("Default", "Default [360x640]");
+        defaultMobileDevice = new Device("Default", "Default [720x1280]");
         defaultMobileDevice.setOrientation(Orientation.PORTRAIT);
         defaultMobileDevice.setDevicePixelRatio(2.0);
-        defaultMobileDevice.setDeviceWidth(360);
-        defaultMobileDevice.setDeviceHeight(640);
+        defaultMobileDevice.setDeviceWidth(720);
+        defaultMobileDevice.setDeviceHeight(1280);
         defaultMobileDevice.setWidth(720);
         defaultMobileDevice.setHeight(1280);
 
@@ -325,7 +325,8 @@ public class PageDesignerToolbar implements ISelectionListener {
 
         // rotate
         changeLandscape = new ToolItem(toolBar, SWT.PUSH);
-        changeLandscape.setImage(ResourceManager.getImage(BuilderConstants.ICON_DIR, "rotate.png"));
+        changeLandscape.setImage(ResourceManager.getImage(BuilderConstants.ICON_DIR,
+                                                          "orientation-portrait.png"));
         changeLandscape.setToolTipText(BuilderMessages.ROTATE);
 
         separator = new ToolItem(toolBar, SWT.SEPARATOR);
@@ -704,8 +705,12 @@ public class PageDesignerToolbar implements ISelectionListener {
                 isLandscape = !isLandscape;
                 if (isLandscape) {
                     mainEditor.setLandscape(true);
+                    changeLandscape.setImage(ResourceManager.getImage(BuilderConstants.ICON_DIR,
+                                                                      "orientation-landscape.png"));
                 } else {
                     mainEditor.setLandscape(false);
+                    changeLandscape.setImage(ResourceManager.getImage(BuilderConstants.ICON_DIR,
+                                                                      "orientation-portrait.png"));
                 }
 
             }
@@ -810,8 +815,8 @@ public class PageDesignerToolbar implements ISelectionListener {
 
     public void setScreeSizesFromNScreen() {
         NScreenUtil.nscreen_log("start time : " + appManager.getFrameworkScale());
-        List<Device> devices = new ArrayList<Device>(); 
-                devices.addAll(resolution.getCurrentFeatureDevices());
+        List<Device> devices = new ArrayList<Device>();
+        devices.addAll(resolution.getCurrentFeatureDevices());
         resolution
                 .setScreeSizesFromNScreen(devices, mainEditor.getAppManager().getFrameworkScale());
         currentScreen = resolution.getScreenSize(nscreen.getLastResolution());
index e6fb89b..d952a09 100644 (file)
@@ -1,3 +1,25 @@
+/*
+ * UI Builder
+ *
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
 package org.tizen.webuibuilder.ui.selector;
 
 import org.eclipse.jface.window.Window.IExceptionHandler;
index 0eb22da..2a19bce 100644 (file)
@@ -1,4 +1,24 @@
-
+/*
+ * UI Builder
+ *
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
 
 package org.tizen.webuibuilder.ui.selector;
 
index 1b36d5b..932f054 100644 (file)
@@ -1,4 +1,24 @@
-
+/*
+ * UI Builder
+ *
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
 
 package org.tizen.webuibuilder.ui.selector;
 
@@ -69,7 +89,7 @@ public class CssSelecotrAction extends SelectionAction {
             } // else : keep going
             DesignerEditPart selectionDesignerPart = selectionParts.get(0);
             Control control = designEditPartViewer.getControl();
-
+            // selection designer part : current selected part figure
             Part part = (Part) selectionDesignerPart.getModel();
             String id = part.getIdPropertyValue();
 
index 86b7187..b4b4d1c 100644 (file)
@@ -1,4 +1,24 @@
-
+/*
+ * UI Builder
+ *
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
 
 package org.tizen.webuibuilder.ui.selector;
 
index 95c1f3d..4ca95bd 100644 (file)
@@ -1,4 +1,24 @@
-
+/*
+ * UI Builder
+ *
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
 
 package org.tizen.webuibuilder.ui.views.nscreen;
 
index 3eb64c4..d1dfdd8 100644 (file)
@@ -1,4 +1,24 @@
-
+/*
+ * UI Builder
+ *
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
 
 package org.tizen.webuibuilder.ui.views.nscreen;
 
index f708b95..b6a28ad 100644 (file)
@@ -1,4 +1,24 @@
-
+/*
+ * UI Builder
+ *
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
 
 package org.tizen.webuibuilder.ui.views.nscreen;
 
index 42a111a..856b202 100644 (file)
@@ -1,4 +1,24 @@
-
+/*
+ * UI Builder
+ *
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
 
 package org.tizen.webuibuilder.ui.views.nscreen;
 
index 19cda0f..0f264c2 100644 (file)
@@ -1,4 +1,24 @@
-
+/*
+ * UI Builder
+ *
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
 
 package org.tizen.webuibuilder.ui.views.nscreen;
 
index df6f39e..7383770 100644 (file)
@@ -1,4 +1,24 @@
-
+/*
+ * UI Builder
+ *
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
 
 package org.tizen.webuibuilder.ui.views.nscreen;
 
index 04eaa38..b51e62b 100644 (file)
@@ -1,4 +1,24 @@
-
+/*
+ * UI Builder
+ *
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
 
 package org.tizen.webuibuilder.ui.views.nscreen;
 
index cd7fde1..cf3900a 100644 (file)
@@ -1,4 +1,24 @@
-
+/*
+ * UI Builder
+ *
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
 
 package org.tizen.webuibuilder.ui.views.nscreen;
 
index 623853c..52db08d 100644 (file)
@@ -1,4 +1,24 @@
-
+/*
+ * UI Builder
+ *
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
 
 package org.tizen.webuibuilder.ui.views.nscreen;
 
@@ -33,11 +53,8 @@ import org.tizen.webuibuilder.model.nscreen.Device;
 import org.tizen.webuibuilder.model.nscreen.DeviceManager;
 import org.tizen.webuibuilder.model.nscreen.NScreenModel;
 import org.tizen.webuibuilder.model.nscreen.NScreenModel.NScreenType;
-import org.tizen.webuibuilder.ui.views.databinding.actions.EditDataSourceAction;
 import org.tizen.webuibuilder.ui.views.nscreen.command.NScreenDisableCommand;
 import org.tizen.webuibuilder.ui.views.nscreen.command.NScreenEnableCommand;
-import org.tizen.webuibuilder.ui.views.nscreen.command.NScreenMoveDownCommand;
-import org.tizen.webuibuilder.ui.views.nscreen.command.NScreenMoveUpCommand;
 
 
 public class NScreenItem extends Composite {
diff --git a/org.tizen.webuibuilder/src/org/tizen/webuibuilder/ui/views/nscreen/NScreenItemFloatRenderer.java b/org.tizen.webuibuilder/src/org/tizen/webuibuilder/ui/views/nscreen/NScreenItemFloatRenderer.java
deleted file mode 100644 (file)
index 6c88e95..0000000
+++ /dev/null
@@ -1,145 +0,0 @@
-
-
-package org.tizen.webuibuilder.ui.views.nscreen;
-
-//import static org.tizen.webuibuilder.ui.views.nscreen.NScreenItem.STATE_HOVER;
-//import static org.tizen.webuibuilder.ui.views.nscreen.NScreenItem.STATE_NORMAL;
-//import static org.tizen.webuibuilder.ui.views.nscreen.NScreenItem.STATE_PUSH;
-
-import org.eclipse.swt.graphics.GC;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Canvas;
-import org.tizen.webuibuilder.model.nscreen.NScreenModel;
-
-
-public class NScreenItemFloatRenderer implements INScreenDrawRenderer {
-//    private static int IMAGE_SIZE = 30;
-//    private static int X_MARGIN = 4;
-//
-//    private static int TEXT_MARGIN_X = X_MARGIN + IMAGE_SIZE + 30;
-
-    @Override
-    public void draw(GC gc, Canvas canvas, int state, boolean isSelected, boolean enabled,
-                     Image thumb, NScreenModel model, String pageId) {
-//        NScreenItem item = (NScreenItem) canvas.getParent();
-//        Rectangle rect = canvas.getClientArea();
-//
-//        int canvasX = rect.x;
-//        int canvasY = rect.y;
-//        int canvasW = rect.width;
-//        int canvasH = rect.height;
-//
-//        gc.setBackground(ColorResource.BLACK);
-//        gc.fillRectangle(canvasX + 6, canvasY + 6, canvasW - 8, canvasH - 8);
-//        // e.gc.fillRoundRectangle(x + 6, y + 6, w - 8, h - 8, 10, 10);
-//
-//        Rectangle drawRect = checkState(new Rectangle(canvasX, canvasY, canvasW, canvasH), state);
-//
-//        if (isSelected) {
-//            gc.setBackground(ColorResource.BOUNCE_IN_UP);
-//        } else {
-//            gc.setBackground(ColorResource.WHITE);
-//        }
-//
-//        Rectangle linkRect =
-//                new Rectangle(drawRect.x + drawRect.width - 20, drawRect.y, 20, drawRect.height);
-//
-//        gc.fillRectangle(drawRect);
-//        // e.gc.fillRoundRectangle(drawRect.x, drawRect.y, drawRect.width, drawRect.height,
-//        // 10, 10);
-//
-//        if (state == STATE_DISABLED) {
-//            gc.setBackground(ColorResource.GRAY);
-//        } else if (model.getType() != NScreenType.COMMON) {
-//            gc.setBackground(ColorResource.NAVY);
-//
-//            int direction = model.getLink(pageId);
-//            int x = linkRect.x;
-//            int y = linkRect.y;
-//            int w = linkRect.width;
-//            int h = linkRect.height;
-//
-//            if (direction == NScreenModel.UP) {
-//                gc.fillPolygon(new int[] { x, y + 10, x + w / 2, y, x + w, y + 10, x + w, y + h,
-//                        x + w / 2, y + h - 10, x, y + h });
-//            } else if (direction == NScreenModel.DOWN) {
-//                gc.fillPolygon(new int[] { x, y, x + w / 2, y + 10, x + w, y, x + w, y, x + w,
-//                        y + h - 10, x + w / 2, y + h, x, y + h - 10 });
-//            } else if (item.isRoot()) {
-//                gc.fillRectangle(linkRect);
-//            }
-//
-//        }
-//
-//        // e.gc.drawRoundRectangle(drawRect.x, drawRect.y, drawRect.width, drawRect.height,
-//        // 10, 10);
-//        if (state == STATE_DISABLED) {
-//            gc.setForeground(ColorResource.GRAY);
-//        } else {
-//            gc.setForeground(ColorResource.BLACK);
-//        }
-//        gc.drawRectangle(drawRect);
-//
-//        // e.gc.setForeground(bgColors[state * 2]);
-//        // e.gc.setBackground(bgColors[state * 2 + 1]);
-//        //
-//        // e.gc.fillGradientRectangle(rect.x, rect.y, rect.width, rect.height, true);
-//        //
-//        // e.gc.setForeground(fgColors[state]);
-//        //
-//        int targetY = (drawRect.height - IMAGE_SIZE) / 2;
-//        if (thumb != null) {
-//            Rectangle imgRect = thumb.getBounds();
-//            gc.drawImage(thumb, imgRect.x, imgRect.y, imgRect.width, imgRect.height, drawRect.x
-//                    + X_MARGIN, drawRect.y + targetY, IMAGE_SIZE, IMAGE_SIZE);
-//        } else {
-//            gc.drawRectangle(drawRect.x + X_MARGIN, drawRect.y + targetY, IMAGE_SIZE, IMAGE_SIZE);
-//        }
-//
-//        // drawText
-//        if (isSelected) {
-//            gc.setBackground(ColorResource.BOUNCE_IN_UP);
-//        } else {
-//            gc.setBackground(ColorResource.WHITE);
-//        }
-//        if (state == STATE_DISABLED) {
-//            gc.setForeground(ColorResource.GRAY);
-//        } else {
-//            gc.setForeground(ColorResource.BLACK);
-//        }
-//        Font font = gc.getFont();
-//        gc.setFont(FontUtil.FLOATING);
-//        gc.drawText(model.getName(), drawRect.x + TEXT_MARGIN_X, targetY);
-//        gc.setFont(font);
-//    }
-//
-//    private Rectangle checkState(Rectangle rect, int state) {
-//
-//        int offset = 0;
-//        switch (state) {
-//            case STATE_NORMAL:
-//                offset = 2;
-//                break;
-//            case STATE_HOVER:
-//                offset = 0;
-//                break;
-//            case STATE_PUSH:
-//                offset = 5;
-//                break;
-//            case STATE_SELECTED:
-//                offset = 3;
-//                break;
-//            case STATE_DISABLED:
-//                offset = 2;
-//                break;
-//            default:
-//                break;
-//        }
-//        rect.width = rect.width - 8;
-//        rect.height = rect.height - 8;
-//        rect.x = rect.x + offset;
-//        rect.y = rect.y + offset;
-//        return rect;
-    }
-
-}
index 83a98cc..1bc956e 100644 (file)
@@ -1,4 +1,24 @@
-
+/*
+ * UI Builder
+ *
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
 
 package org.tizen.webuibuilder.ui.views.nscreen;
 
index f9c909c..2429860 100644 (file)
@@ -1,4 +1,24 @@
-
+/*
+ * UI Builder
+ *
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
 
 package org.tizen.webuibuilder.ui.views.nscreen.command;
 
index efbd89f..f628f5a 100644 (file)
@@ -1,13 +1,28 @@
-
+/*
+ * UI Builder
+ *
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
 
 package org.tizen.webuibuilder.ui.views.nscreen.command;
 
-import java.io.File;
-import java.io.IOException;
-
-import org.eclipse.core.runtime.IPath;
 import org.eclipse.gef.commands.Command;
-import org.tizen.webuibuilder.model.css.CssFile;
 import org.tizen.webuibuilder.ui.views.nscreen.NScreenGroup;
 import org.tizen.webuibuilder.ui.views.nscreen.NScreenItem;
 
index f0c6bd5..42cb541 100644 (file)
@@ -1,4 +1,24 @@
-
+/*
+ * UI Builder
+ *
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
 
 package org.tizen.webuibuilder.ui.views.nscreen.command;
 
index 96422b1..ac860e9 100644 (file)
@@ -1,3 +1,25 @@
+/*
+ * UI Builder
+ *
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
 package org.tizen.webuibuilder.ui.views.nscreen.command;
 
 import org.eclipse.gef.commands.Command;
index e7d6a01..4f972a2 100644 (file)
@@ -1,4 +1,24 @@
-
+/*
+ * UI Builder
+ *
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
 
 package org.tizen.webuibuilder.ui.views.nscreen.command;
 
index 528d33d..e944c87 100644 (file)
@@ -1,4 +1,24 @@
-
+/*
+ * UI Builder
+ *
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
 
 package org.tizen.webuibuilder.ui.views.nscreen.command;
 
index 7b66680..efae629 100644 (file)
@@ -1,4 +1,24 @@
-
+/*
+ * UI Builder
+ *
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
 
 package org.tizen.webuibuilder.ui.views.nscreen.command;
 
@@ -6,7 +26,6 @@ import java.util.ArrayList;
 import java.util.List;
 
 import org.eclipse.gef.commands.Command;
-import org.eclipse.swt.SWT;
 import org.tizen.webuibuilder.ui.views.nscreen.NScreenGroup;
 import org.tizen.webuibuilder.ui.views.nscreen.NScreenItem;
 
index 7fd9661..ce0c56a 100644 (file)
@@ -1,4 +1,24 @@
-
+/*
+ * UI Builder
+ *
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
 
 package org.tizen.webuibuilder.ui.views.nscreen.dialog;
 
index 605410f..ce5c1fe 100644 (file)
@@ -1,4 +1,24 @@
-
+/*
+ * UI Builder
+ *
+ * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
 
 package org.tizen.webuibuilder.ui.views.nscreen.dialog;