Changes between Version 8 and Version 9 of GROUP_APP_HELP_R0


Ignore:
Timestamp:
03/31/09 14:58:24 (16 years ago)
Author:
mitex
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GROUP_APP_HELP_R0

    v8 v9  
    1212 * The help information should be in HTML format and available online. This has the following advantages: 
    1313  * quick access from everywhere 
    14   * easily updateable 
     14  * easily updateable (fixed wrong help information, adding more information, etc.) 
    1515  * easy to create rich text content with text formatting, links, images, menus with JavaScript, etc. 
    1616  * searchable by google and other search engines (if we use a Sophie book for the help, this will be hard to achieve) 
     
    1818 * Provide search functionality in the site. 
    1919 * Some help content is available at [wiki:ITERATION_06/Release/UserDocumentation]. 
     20 
    2021 * 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. 
    2122  * In the root directory of the online help information create subdirectory named "2.0". 
     
    2324  * 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).  
    2425 
    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 
    2833  * In future revisions we can use embedded browser. 
     34  * For this revision it's appropriate to use the user's default web browser. 
    2935 
    30  * The Help menu should contain the following items: 
     36 * The Help menu in Sophie 2 should contain the following items: 
    3137  * &Help Contents - displays the start page of the help information. See the Extensibility section. 
    3238  * &Search... - opens the search page in the website. 
    3339   * for next revisions it will be good to have a Help tab similar to the Search tab - search box and list of results. 
    3440  * &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. 
    3642  * Send an &Error Report... - opens the bug report form (see [wiki:APP_BUG_REPORT_FORM_R0]). 
    3743  * (separator) 
    3844  * &About - displays the about dialog window. 
    3945  * 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). 
    4147 
    4248 * Extensibility 
    4349  * Modules should be able to attach help entries. 
    44   * Create a module org.sophie2.main.help. 
    4550  * Each Sophie module can provide (if appropriate) an extension with help information. This extension may contain: 
    4651   * URL of the help information of the module. 
    4752    * Can point to the sophie website 
    4853    * Third-party modules can use their vendor's website, or local directory with help files. 
    49    * Help contents entry. 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". 
    5055  * When selecting "Help Contents" in the Help menu, a content page is generated. 
    5156   * The entries are gathered from each module's help extension. 
    5257   * The generated page is in HTML format 
    5358   * The page is created in the TEMP directory. Do not forget to delete it after closing the window. 
    54    * The page cam 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. 
     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. 
    5560   * 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. 
    5661 
     
    7681 
    7782== 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 
    7888 * For the browser: 
    7989  * browse(URI) in java.awt.Desktop can be used. 
     
    8494  * Currently AboutDialog just calls OldAboutDialog. 
    8595  * 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. 
    8797 
    8898== Related == 
     
    96106 * Show the Help menu 
    97107 * Open the contents 
     108 * Close them, then show the About dialog 
    98109 
    99110= Design =