From 10ae72406cf67a7fdb3f32a1c58f60ff2628c612 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Fri, 22 May 2009 08:43:44 +0000 Subject: [PATCH] https://sourceforge.net/tracker/?func=detail&aid=2793674&group_id=176962&atid=955896 --- migration/353a-trunk/oracle/472_FR2793674.sql | 20 +++++++++++++++++++ .../353a-trunk/postgresql/472_FR2793674.sql | 20 +++++++++++++++++++ .../adempiere/webui/window/WPreference.java | 12 ++++------- 3 files changed, 44 insertions(+), 8 deletions(-) create mode 100644 migration/353a-trunk/oracle/472_FR2793674.sql create mode 100644 migration/353a-trunk/postgresql/472_FR2793674.sql diff --git a/migration/353a-trunk/oracle/472_FR2793674.sql b/migration/353a-trunk/oracle/472_FR2793674.sql new file mode 100644 index 0000000000..9928051f46 --- /dev/null +++ b/migration/353a-trunk/oracle/472_FR2793674.sql @@ -0,0 +1,20 @@ +-- May 22, 2009 4:19:10 PM MYT +-- FR [2793674] Implement User Preference Page +INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgTip,MsgType,Updated,UpdatedBy,Value) VALUES (0,53076,0,TO_DATE('2009-05-22 16:19:08','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Window Tab Collapsible','Make the vertical tab of window collapsible','I',TO_DATE('2009-05-22 16:19:08','YYYY-MM-DD HH24:MI:SS'),100,'WindowTabCollapsible') +; + +-- May 22, 2009 4:19:10 PM MYT +-- FR [2793674] Implement User Preference Page +INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=53076 AND EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Message_ID!=t.AD_Message_ID) +; + +-- May 22, 2009 4:21:25 PM MYT +-- FR [2793674] Implement User Preference Page +INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgTip,MsgType,Updated,UpdatedBy,Value) VALUES (0,53077,0,TO_DATE('2009-05-22 16:21:24','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Window Tab Placement','Placement of vertical tab, supported options are left ( default ) and right','I',TO_DATE('2009-05-22 16:21:24','YYYY-MM-DD HH24:MI:SS'),100,'WindowTabPlacement') +; + +-- May 22, 2009 4:21:25 PM MYT +-- FR [2793674] Implement User Preference Page +INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=53077 AND EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Message_ID!=t.AD_Message_ID) +; + diff --git a/migration/353a-trunk/postgresql/472_FR2793674.sql b/migration/353a-trunk/postgresql/472_FR2793674.sql new file mode 100644 index 0000000000..2426ab701c --- /dev/null +++ b/migration/353a-trunk/postgresql/472_FR2793674.sql @@ -0,0 +1,20 @@ +-- May 22, 2009 4:19:10 PM MYT +-- FR [2793674] Implement User Preference Page +INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgTip,MsgType,Updated,UpdatedBy,Value) VALUES (0,53076,0,TO_TIMESTAMP('2009-05-22 16:19:08','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Window Tab Collapsible','Make the vertical tab of window collapsible','I',TO_TIMESTAMP('2009-05-22 16:19:08','YYYY-MM-DD HH24:MI:SS'),100,'WindowTabCollapsible') +; + +-- May 22, 2009 4:19:10 PM MYT +-- FR [2793674] Implement User Preference Page +INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=53076 AND EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Message_ID!=t.AD_Message_ID) +; + +-- May 22, 2009 4:21:25 PM MYT +-- FR [2793674] Implement User Preference Page +INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgTip,MsgType,Updated,UpdatedBy,Value) VALUES (0,53077,0,TO_TIMESTAMP('2009-05-22 16:21:24','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Window Tab Placement','Placement of vertical tab, supported options are left ( default ) and right','I',TO_TIMESTAMP('2009-05-22 16:21:24','YYYY-MM-DD HH24:MI:SS'),100,'WindowTabPlacement') +; + +-- May 22, 2009 4:21:25 PM MYT +-- FR [2793674] Implement User Preference Page +INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=53077 AND EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Message_ID!=t.AD_Message_ID) +; + diff --git a/zkwebui/WEB-INF/src/org/adempiere/webui/window/WPreference.java b/zkwebui/WEB-INF/src/org/adempiere/webui/window/WPreference.java index 42814c3b3e..0f19974b01 100644 --- a/zkwebui/WEB-INF/src/org/adempiere/webui/window/WPreference.java +++ b/zkwebui/WEB-INF/src/org/adempiere/webui/window/WPreference.java @@ -78,12 +78,13 @@ public class WPreference extends Popup implements EventListener { div = new Div(); div.setStyle("background-color: transparent !important; border: none; margin: 5px;"); - Label label = new Label(Msg.getMsg(Env.getCtx(), "WindowTabPlacement")); + Label label = new Label(Msg.getMsg(Env.getCtx(), "WindowTabPlacement", true)); + label.setTooltiptext(Msg.getMsg(Env.getCtx(), "WindowTabPlacement", false)); div.appendChild(label); div.appendChild(new Space()); tabPlacement = ListboxFactory.newDropdownListbox(); - tabPlacement.appendItem("Left", "Left"); - tabPlacement.appendItem("Right", "Right"); + tabPlacement.appendItem(Msg.getMsg(Env.getCtx(), "Left", true), "Left"); + tabPlacement.appendItem(Msg.getMsg(Env.getCtx(), "Right", true), "Right"); div.appendChild(tabPlacement); this.appendChild(div); @@ -113,11 +114,6 @@ public class WPreference extends Popup implements EventListener { public void onEvent(Event event) throws Exception { if (Events.ON_CLICK.equals(event.getName())) { -// if (event.getTarget().getId().equals(ConfirmPanel.A_CANCEL)) { -// this.detach(); -// } else if (event.getTarget().getId().equals(ConfirmPanel.A_OK)) { -// onSave(); -// } onSave(); } }