+* 2.1.4
+- change emulator manager main ux
+== jihye kim <jihye1128.kim@samsung.com> 2013-04-19
+
* 2.1.3
- modify module of open browser (tizendevelop site)
== jihye kim <jihye1128.kim@samsung.com> 2013-03-21
Source: emulator-manager
-Version: 2.1.3
+Version: 2.1.4
Maintainer: Yeong-Kyoon Lee<yeongkyoon.lee@samsung.com>
Package: emulator-manager
public static final int DEFALUT_WIDTH = 840;
public static final int DEFAULT_HEIGHT = 482;
- public static final int MIN_HEIGHT = 483;
+ public static final int MIN_HEIGHT = 480;
public static final int MIN_WIDTH = 500;
public static int WIDTH = DEFALUT_WIDTH;
public static int HEIGHT = DEFAULT_HEIGHT;
import org.tizen.emulator.manager.da.widgets.button.DACustomButton;
import org.tizen.emulator.manager.resources.ImageResources;
import org.tizen.emulator.manager.ui.widgets.VMButton;
+import org.tizen.emulator.manager.ui.widgets.VMButtonAttribute;
import org.tizen.emulator.manager.ui.widgets.VMButtonClickEventListener;
class VMCreateButton extends VMButton {
ImageResources.ADD_NEW_HOVER.getImage(),
ImageResources.VM_IMAGE_CREATE.getImage());
}
+
+ @Override
+ public void setSelected(boolean selected) {
+ ((VMButtonAttribute)attr).setSelected(selected);
+ if (selected) {
+ setEnabled(false);
+ VMsMainView.getInstance().drawCreateVM(false);
+ } else {
+ setEnabled(true);
+ }
+ }
}
public class VMButtonFactory {
mainView.layout();
}
- public void drawModifyVM(VMProperty property, boolean isCreate) {
+ public void drawModifyVM(VMProperty property) {
modifyView.drawPropertyView(property.getPropertyValue(), false);
stackLayout.topControl = modifyView.getComposite();
mainView.layout();
createButton.addClickListener(new DACustomButtonClickEventListener(){
@Override
public void handleClickEvent(DACustomButton button) {
- VMsMainView.getInstance().drawCreateVM();
+ VMsMainView.getInstance().drawCreateVM(true);
}
});
int hIndex = 0;
int size = VMButtonFactory.getButtonList().size();
if (size != 0) {
- H_COUNT = (size + 1) / W_COUNT;
- if ((size + 1) % W_COUNT != 0) {
+ H_COUNT = size / W_COUNT;
+ if (size % W_COUNT != 0) {
H_COUNT++;
}
private void clickCreateButton() {
VMButtonFactory.clickVMButton(addNewButton);
- addNewButton.setEnabled(false);
- VMsMainView.getInstance().drawCreateVM();
+ VMsMainView.getInstance().drawCreateVM(true);
}
public void controlKeyEvent(KeyEvent event) {
private boolean isInitialize = false;
private boolean isCreateMode = false;
+ private boolean setFocus = false;
private static VMsMainView view = new VMsMainView();
public static VMsMainView getInstance() {
drawDetailVM(currentProperty);
}
+ // for launch emulator
public void drawDetailVM(int index) {
currentProperty = currentImage.getVmsList().get(index);
isCreateMode = false;
+ // select vm button
listView.cancelModify(index);
detailView.drawDetailVM(currentProperty);
}
}
isCreateMode = false;
- detailView.drawModifyVM(property, false);
+ detailView.drawModifyVM(property);
}
public void drawModifyVM() {
drawModifyVM(currentProperty);
}
- public void drawCreateVM() {
+ public void drawCreateVM(boolean setfocus) {
isCreateMode = true;
+ setSetFocus(setfocus);
if (currentImage.getVmsList().isEmpty()) {
listView.drawVMList(currentImage, -1, true);
new MessageDialog().openWarningDialog(msg);
}
}
+ // set focus vm button
drawDetailVM(currentImage.getVmsList().indexOf(property));
}
public void setCreateMode(boolean isCreateMode) {
this.isCreateMode = isCreateMode;
}
+
+ public boolean isSetFocus() {
+ return setFocus;
+ }
+
+ public void setSetFocus(boolean setFocus) {
+ this.setFocus = setFocus;
+ }
}
import org.tizen.emulator.manager.resources.PatchImageResources;
import org.tizen.emulator.manager.ui.MainDialog;
import org.tizen.emulator.manager.ui.MenuHandling;
+import org.tizen.emulator.manager.ui.VMsMainView;
import org.tizen.emulator.manager.ui.dialog.MessageDialog;
import org.tizen.emulator.manager.ui.widgets.ImageLabel;
import org.tizen.emulator.manager.vms.EmulatorVMList;
selectImageButton.setEnabled(false);
}
- setFocus();
+ if (VMsMainView.getInstance().isSetFocus()) {
+ setFocus();
+ }
return false;
}