details: /erp/devel/pi/rev/c1cb1b09467b
changeset: 9875:c1cb1b09467b
user: David Baz Fayos <david.baz <at> openbravo.com>
date: Mon Jan 17 18:56:51 2011 +0100
summary: [form][style] Moved classes to proper file
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/org.openbravo.client.application/ob-application-styles.js
| 177 +---------
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/org.openbravo.client.application/ob-form-styles.css
| 2 +-
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/org.openbravo.client.application/ob-form-styles.js
| 184 ++++++++++
3 files changed, 188 insertions(+), 175 deletions(-)
diffs (truncated from 401 to 300 lines):
diff -r a26534e5699c -r c1cb1b09467b
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/org.openbravo.client.application/ob-application-styles.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/org.openbravo.client.application/ob-application-styles.js
Mon Jan 17 18:29:44 2011 +0100
+++
b/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/org.openbravo.client.application/ob-application-styles.js
Mon Jan 17 18:56:51 2011 +0100
@@ -19,181 +19,10 @@
/* =====================================================================
* Styling properties for:
- * 1) OB Form items
- * 2) Main layout
- * 3) Main components (navbar flyout, main grid, form)
- * 4) Changes to standard isc.Dialog buttons
+ * 1) Main layout
+ * 2) Main components (navbar flyout, main grid, form)
+ * 3) Changes to standard isc.Dialog buttons
=======================================================================*/
-/* =====================================================================
- * FormItem styling properties
- =======================================================================*/
-isc.OBFormButton.addProperties({
- baseStyle: 'OBFormButton',
- titleStyle: 'OBFormButtonTitle'
-});
-
-isc.OBTextItem.addProperties({
- errorOrientation: 'left',
- height: 21,
- width: '100%',
- cellStyle: 'OBFormField',
- titleStyle: 'OBFormFieldLabel',
- textBoxStyle: 'OBFormFieldInput'
-});
-
-isc.OBTextAreaItem.addProperties({
- errorOrientation: 'left',
- width: '100%',
- cellStyle: 'OBFormField',
- titleStyle: 'OBFormFieldLabel',
- textBoxStyle: 'OBFormFieldInput'
-});
-
-OB.DefaultPickListStyleProperties = {
- cellStyle: 'OBFormField',
- titleStyle: 'OBFormFieldLabel',
- textBoxStyle: 'OBFormFieldSelectInput',
- controlStyle: 'OBFormFieldSelectControl',
- pickerIconStyle: 'OBFormFieldSelectPickerIcon',
- pickListBaseStyle: 'OBFormFieldPickListCell',
- // tallbasestyle is used when the cellheight is different
- // from the standard
- pickListTallBaseStyle: 'OBFormFieldPickListCell',
- pickerIconSrc:
'[SKIN]/../../org.openbravo.client.application/images/form/comboBoxPicker.png',
- height: 21,
- pickerIconWidth: 21,
- pickerIconHeight: 21,
-
- // note the menu-rollover.png which is the background for selected rows
- // is 20
- pickListCellHeight: 22,
-
- quickRunPickListWidth: 225,
- // fixes issue https://issues.openbravo.com/view.php?id=15105
- quickRunPickListCellHeight: 22,
- pickListHeight: 200,
- autoSizePickList: false,
-
- pickListProperties: {
- showShadow: false,
- shadowDepth: 5,
- bodyStyleName: 'OBPickListBody'
- },
-
- errorOrientation: 'left'
-};
-
-isc.OBListItem.addProperties(isc.addProperties({},
OB.DefaultPickListStyleProperties));
-
-isc.OBFKItem.addProperties(isc.addProperties({},
OB.DefaultPickListStyleProperties));
-
-isc.OBFKItem.addProperties({
- newTabIconSrc:
'[SKINIMG]../../org.openbravo.client.application/images/form/ico-to-new-tab.png',
- newTabIconSize: 8
-});
-
-isc.OBYesNoItem.addProperties(isc.addProperties({},
OB.DefaultPickListStyleProperties));
-
-
-isc.OBSearchItem.addProperties({
- cellStyle: 'OBFormField',
- titleStyle: 'OBFormFieldLabel',
- textBoxStyle: 'OBFormFieldStatic',
- pickerIconHeight: 21,
- pickerIconWidth: 21,
- height: 21,
- pickerIconSrc:
'[SKINIMG]../../org.openbravo.client.application/images/form/search_picker.png',
- clearIcon: {
- showHover: true,
- height: 15,
- width: 15,
- src:
'[SKINIMG]../../org.openbravo.client.application/images/form/clear-field.png',
- prompt: OB.I18N.getLabel('OBUIAPP_ClearIconPrompt')
- },
- newTabIconSrc:
'[SKINIMG]../../org.openbravo.client.application/images/form/ico-to-new-tab.png',
- newTabIconSize: 8
-});
-
-
-isc.DateChooser.addProperties({ //TODO : Changed to
'isc.OBDateChooser.addProperties'
- headerStyle: 'OBDateChooserButton',
- weekendHeaderStyle: 'OBDateChooserWeekendButton',
- baseNavButtonStyle: 'OBDateChooserNavButton',
- baseWeekdayStyle: 'OBDateChooserWeekday',
- baseWeekendStyle: 'OBDateChooserWeekend',
- baseBottomButtonStyle: 'OBDateChooserBottomButton',
- alternateWeekStyles: false,
- firstDayOfWeek: 1,
-
- showEdges: true,
-
- edgeImage:
'[SKIN]/../../../org.openbravo.client.application/images/form/dateChooser-popup.png',
- edgeSize: 6,
- edgeTop: 26,
- edgeBottom: 5,
- edgeOffsetTop: 1,
- edgeOffsetRight: 5,
- edgeOffsetLeft: 5,
- edgeOffsetBottom: 5,
-
- todayButtonHeight: 20,
-
- headerHeight: 24,
-
- edgeCenterBackgroundColor: '#FFFFFF',
- backgroundColor: null,
-
- showShadow: false,
- shadowDepth: 6,
- shadowOffset: 5,
-
- showDoubleYearIcon: false,
- prevYearIcon:
'[SKIN]/../../../org.openbravo.client.application/images/form/dateChooser-doubleArrow_left.png',
- prevYearIconWidth: 16,
- prevYearIconHeight: 16,
- nextYearIcon:
'[SKIN]/../../../org.openbravo.client.application/images/form/dateChooser-doubleArrow_right.png',
- nextYearIconWidth: 16,
- nextYearIconHeight: 16,
- prevMonthIcon:
'[SKIN]/../../../org.openbravo.client.application/images/form/dateChooser-arrow_left.png',
- prevMonthIconWidth: 16,
- prevMonthIconHeight: 16,
- nextMonthIcon:
'[SKIN]/../../../org.openbravo.client.application/images/form/dateChooser-arrow_right.png',
- nextMonthIconWidth: 16,
- nextMonthIconHeight: 16
-});
-
-
-OB.OBDateItemStyleProperties = {
- cellStyle: 'OBFormField',
- titleStyle: 'OBFormFieldLabel',
- textBoxStyle: 'OBFormFieldInput',
- errorOrientation: 'left',
-
- pickerIconHSpace: '0',
-
- textFieldProperties: {
- type: 'OBTextField',
- textBoxStyle: 'OBFormFieldDateInput'
- },
-
- height: 25,
-
- pickerIconWidth: 21,
- pickerIconHeight: 21,
- pickerIconSrc:
'[SKIN]/../../org.openbravo.client.application/images/form/date_control.png'
-};
-
-isc.OBDateItem.addProperties(isc.addProperties({},
OB.OBDateItemStyleProperties));
-
-isc.OBDateTimeItem.addProperties(isc.addProperties({},
OB.OBDateItemStyleProperties));
-
-
-isc.OBNumberItem.addProperties({
- cellStyle: 'OBFormField',
- titleStyle: 'OBFormFieldLabel',
- textBoxStyle: 'OBFormFieldInput',
- errorOrientation: 'left'
-});
/* =====================================================================
diff -r a26534e5699c -r c1cb1b09467b
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/org.openbravo.client.application/ob-form-styles.css
---
a/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/org.openbravo.client.application/ob-form-styles.css
Mon Jan 17 18:29:44 2011 +0100
+++
b/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/org.openbravo.client.application/ob-form-styles.css
Mon Jan 17 18:56:51 2011 +0100
@@ -568,7 +568,7 @@
=======================================================================*/
.OBSectionItemButton_Title_opened,
-.OBSectionItemButton_Title_Disabledopened
+.OBSectionItemButton_Title_Disabledopened,
.OBSectionItemButton_Title_closed,
.OBSectionItemButton_Title_Disabledclosed,
.OBSectionItemButton_Title_Overopened,
diff -r a26534e5699c -r c1cb1b09467b
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/org.openbravo.client.application/ob-form-styles.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/org.openbravo.client.application/ob-form-styles.js
Mon Jan 17 18:29:44 2011 +0100
+++
b/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/org.openbravo.client.application/ob-form-styles.js
Mon Jan 17 18:56:51 2011 +0100
@@ -16,6 +16,16 @@
* Contributor(s): ______________________________________.
************************************************************************
*/
+
+/* =====================================================================
+ * Styling properties for:
+ * 1) OB Form items
+ * 2) SectionItem Button Styles
+ =======================================================================*/
+
+/* =====================================================================
+ * FormItem styling properties
+ =======================================================================*/
isc.OBViewForm.addProperties({
styleName: 'OBViewForm',
width: '100%',
@@ -24,6 +34,180 @@
cellPadding: 0
});
+
+isc.OBFormButton.addProperties({
+ baseStyle: 'OBFormButton',
+ titleStyle: 'OBFormButtonTitle'
+});
+
+isc.OBTextItem.addProperties({
+ errorOrientation: 'left',
+ height: 21,
+ width: '100%',
+ cellStyle: 'OBFormField',
+ titleStyle: 'OBFormFieldLabel',
+ textBoxStyle: 'OBFormFieldInput'
+});
+
+isc.OBTextAreaItem.addProperties({
+ errorOrientation: 'left',
+ width: '100%',
+ cellStyle: 'OBFormField',
+ titleStyle: 'OBFormFieldLabel',
+ textBoxStyle: 'OBFormFieldInput'
+});
+
+OB.DefaultPickListStyleProperties = {
+ cellStyle: 'OBFormField',
+ titleStyle: 'OBFormFieldLabel',
+ textBoxStyle: 'OBFormFieldSelectInput',
+ controlStyle: 'OBFormFieldSelectControl',
+ pickerIconStyle: 'OBFormFieldSelectPickerIcon',
+ pickListBaseStyle: 'OBFormFieldPickListCell',
+ // tallbasestyle is used when the cellheight is different
+ // from the standard
+ pickListTallBaseStyle: 'OBFormFieldPickListCell',
+ pickerIconSrc:
'[SKIN]/../../org.openbravo.client.application/images/form/comboBoxPicker.png',
+ height: 21,
+ pickerIconWidth: 21,
+ pickerIconHeight: 21,
+
+ // note the menu-rollover.png which is the background for selected rows
+ // is 20
+ pickListCellHeight: 22,
+
+ quickRunPickListWidth: 225,
+ // fixes issue https://issues.openbravo.com/view.php?id=15105
+ quickRunPickListCellHeight: 22,
+ pickListHeight: 200,
+ autoSizePickList: false,
+
+ pickListProperties: {
+ showShadow: false,
+ shadowDepth: 5,
+ bodyStyleName: 'OBPickListBody'
+ },
+
+ errorOrientation: 'left'
+};
+
+isc.OBListItem.addProperties(isc.addProperties({},
OB.DefaultPickListStyleProperties));
+
+isc.OBFKItem.addProperties(isc.addProperties({},
OB.DefaultPickListStyleProperties));
+
+isc.OBFKItem.addProperties({
+ newTabIconSrc:
'[SKINIMG]../../org.openbravo.client.application/images/form/ico-to-new-tab.png',
+ newTabIconSize: 8
+});
+
+isc.OBYesNoItem.addProperties(isc.addProperties({},
OB.DefaultPickListStyleProperties));
+
+
+isc.OBSearchItem.addProperties({
+ cellStyle: 'OBFormField',
+ titleStyle: 'OBFormFieldLabel',
+ textBoxStyle: 'OBFormFieldStatic',
+ pickerIconHeight: 21,
+ pickerIconWidth: 21,
+ height: 21,
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits