Changes between Version 8 and Version 9 of GROUP_APP_HELP_R0
- Timestamp:
- 03/31/09 14:58:24 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GROUP_APP_HELP_R0
v8 v9 12 12 * The help information should be in HTML format and available online. This has the following advantages: 13 13 * quick access from everywhere 14 * easily updateable 14 * easily updateable (fixed wrong help information, adding more information, etc.) 15 15 * easy to create rich text content with text formatting, links, images, menus with JavaScript, etc. 16 16 * searchable by google and other search engines (if we use a Sophie book for the help, this will be hard to achieve) … … 18 18 * Provide search functionality in the site. 19 19 * Some help content is available at [wiki:ITERATION_06/Release/UserDocumentation]. 20 20 21 * Since we'll have different versions of Sophie, for example 2.0, 2.01, 2.1, 2.2, etc., we should support different help content for each of them. 21 22 * In the root directory of the online help information create subdirectory named "2.0". … … 23 24 * Each subdirectory should contain the whole HTML content (and only the HTML content, because images can be shared). It is error prone to have only the new pages, because HTML pages from a previous version may have links to pages from that old version, instead of the new. (example: 2.0/a.htm, 2.0/b.htm with link to a.htm; 2.1/a.htm, if we use 2.0/b.htm, there is a link to 2.0/a.htm instead of 2.1/a.htm). 24 25 25 * Help content should be displayed in user's default web browser. 26 * Search for a platform independent way to open the browser. 27 * Another option is to use JEditorPane instead of a browser. It has limited functionality, so the help content on the web site has to be compatible with it. 26 * There are several ways to display the help content. Some of their pros and cons are listed too. 27 * User's default web browser: 28 * Pros: displays all kind of rich content - HTML with JavaScript, flash, CSS, etc. 29 * Impediments: platform dependency 30 * Another option is to use JEditorPane instead of a browser. 31 * Pros: platform independent 32 * Cons: limited functionality, so the help content on the web site has to be compatible with it 28 33 * In future revisions we can use embedded browser. 34 * For this revision it's appropriate to use the user's default web browser. 29 35 30 * The Help menu should contain the following items:36 * The Help menu in Sophie 2 should contain the following items: 31 37 * &Help Contents - displays the start page of the help information. See the Extensibility section. 32 38 * &Search... - opens the search page in the website. 33 39 * for next revisions it will be good to have a Help tab similar to the Search tab - search box and list of results. 34 40 * &Web site - opens the official website of Sophie 2 in the default web browser. 35 * As&k for Help... - opens a web page ( forum, wiki, etc.) where the user can ask anything about the program or propose enhancements. This is related with the next section - the bug report form.41 * As&k for Help... - opens a web page (web form, forum, wiki, etc.) where the user can ask anything about the program or propose enhancements. This is related with the next section - the bug report form. 36 42 * Send an &Error Report... - opens the bug report form (see [wiki:APP_BUG_REPORT_FORM_R0]). 37 43 * (separator) 38 44 * &About - displays the about dialog window. 39 45 * in next revisions: Check for &Updates. 40 * ( &means that the following letter will be underlined and used as a keyboard shortcut).46 * ("&" means that the following letter will be underlined and used as a keyboard shortcut). 41 47 42 48 * Extensibility 43 49 * Modules should be able to attach help entries. 44 * Create a module org.sophie2.main.help.45 50 * Each Sophie module can provide (if appropriate) an extension with help information. This extension may contain: 46 51 * URL of the help information of the module. 47 52 * Can point to the sophie website 48 53 * Third-party modules can use their vendor's website, or local directory with help files. 49 * Help contents entr y. For example, the main.view.menus module can provide an entry with id=menus and title="Menus".54 * Help contents entries. For example, the {{{org.sophie2.main.view.menus module}}} can provide an entry with id="main.view.menus.file" and title="File Menu". 50 55 * When selecting "Help Contents" in the Help menu, a content page is generated. 51 56 * The entries are gathered from each module's help extension. 52 57 * The generated page is in HTML format 53 58 * The page is created in the TEMP directory. Do not forget to delete it after closing the window. 54 * The page ca mconsist of a frameset with left frame - the generated menu, and right frame - the remote help page that is invoked by clicking on a menu entry.59 * The page can consist of a frameset with left frame - the generated menu, and right frame - the remote help page that is invoked by clicking on a menu entry. 55 60 * We should use locally generated help contents menu instead of the website's help index page, because each Sophie installation may have different plugins installed. 56 61 … … 76 81 77 82 == Implementation idea == 83 84 * Create a module {{{org.sophie2.main.help}}}. 85 * Create the menu and menu items. 86 * Create a method that displays a web page, specified by a URL. 87 78 88 * For the browser: 79 89 * browse(URI) in java.awt.Desktop can be used. … … 84 94 * Currently AboutDialog just calls OldAboutDialog. 85 95 * Use setUndecorated(true) in JFrame to remove the about dialog window border. 86 * Add mouse listener .96 * Add mouse listener so the window can be closed with a mouse click. 87 97 88 98 == Related == … … 96 106 * Show the Help menu 97 107 * Open the contents 108 * Close them, then show the About dialog 98 109 99 110 = Design =