Changes between Version 18 and Version 19 of APP_BASIC_MENUS_R0
- Timestamp:
- 07/29/09 11:10:17 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
APP_BASIC_MENUS_R0
v18 v19 98 98 Basic Menu Items order/style will be defined by a convention (which will be put for a public discussion – wiki page). 99 99 100 * In every class that extends AppMenuItem class will be introduced new method called defineSkin which specifies values to certain properties (like title, tool ips, shortcuts, mnemonics, etc.) of the skin's element. Example:100 * In every class that extends AppMenuItem class will be introduced new method called defineSkin which specifies values to certain properties (like title, tooltips, shortcuts, mnemonics, etc.) of the skin's element - the item. It will get ElementSkinPart as an argument, and will use it to define properties needed. Example for ExportToPdfItem: 101 101 102 102 {{{ 103 103 @SkinPartDef 104 104 private static void defineSkin(ElementSkinPart part) { 105 part.add(TITLE_PROP_ID, "PDF "); //title property defined as "PDF"105 part.add(TITLE_PROP_ID, "PDF..."); //title property defined as "PDF" 106 106 part.add(TOOL_TIP_PROP_ID, "Exports current book to pdf file"); //Tool tip property defined 107 107 part.add(MNEMONIC_PROP_ID, KeyEvent.VK_P); //Mnemonic - i.e. when P is pressed, combined with Alt. 108 108 } 109 109 }}} 110 * A refactoniring will be needed, so every Item has the definition of its properties in itself, not in its Module class. (optional) 110 111 * Classes Affected by this change are as follow: 111 * NewBookItem 112 * OpenBookItem 113 * CloseBookItem 112 * FileMenu 113 * NewBookItem 114 * OpenBookItem 115 * CloseBookItem 116 * BookPropertiesItem 117 * SaveBookAsItem 118 * SaveBookItem 119 * CloseBookItem 120 * EditMenu 121 * RedoItem 122 * UndoItem 123 * SetBookTitleItem 124 * SetPageSizeItem 125 * ShowConnectionItem 126 *InsertMenu 114 127 115 128 * Extracted Menu Items into a specific module (that has same functionality as the module itself): … … 117 130 118 131 119 * Specific (logical and intuitive) order of the Menu Items will be implemented: 120 121 * File 132 * Specific (logical and intuitive) order of the Menus will be implemented: 133 * File 122 134 * Edit 123 135 * Insert … … 139 151 * Ctrl+V - Paste 140 152 141 * Menu's items format (underling unique letters of the Item's title): 142 143 * "..." suffix for Items that, when clicked, open a Dialog: 153 * "..." suffix of Items Title Property for Items that, when clicked, open a Dialog. 144 154 145 155