View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0025231 | Open CASCADE | OCCT:DRAW | public | 2014-09-10 15:27 | 2014-11-11 13:01 |
Reporter | Assigned To | bugmaster | |||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 6.8.0 | ||||
Target Version | 6.8.0 | Fixed in Version | 6.8.0 | ||
Summary | 0025231: DRAW - make top level menu useful | ||||
Description | When DRAW starts, it shows separate window with menu bar, containing three menus: File, Views, and Display. Some additional menus are added when DRAW plugins are loaded (e.g. after "pload ALL"). In theory these menus should provide convenient means for the new users to start using DRAW. However, the implementation is extremely poor and these menus are mostly unusable and / or useless. This issue is a proposal to improve some aspects of this: - Menu items currently contain just names of DRAW commands. It would be better to provide meaningful texts, with names of corresponding DRAW commands in parentheses. E.g., instead of "restore" it would be better to have "Load Shape (restore)". - 'Open File' dialog shown when user selects commands File/datadir, File/restore, File/source is extremely poor; standard dialog (Tcl command tk_getOpenFile) should be used instead - Add menu 'Help', with three items: - 'User Guide', providing short-cut to DRAW UG (if found) - 'Commands', providing access to information accessible via command 'help'. This item can open a kind of browser dialog listing all commands (or categories, then commands), each item providing a short-cut to help on corresponding command - 'About', showing OCC logo, copyright statement, and link to OCC web sites - Add menu 'Samples', which would allow running samples located in samples/tcl. It would be nice to have this menu populated automatically by available scripts; some easy way to organize this sub-menu by some special mark-up text in the test case comment can be used. As a further extension, an option can be provided to start DRAW as application with one main window, so that text log and viewer windows be its children. This would make DRAW looking more like conventional application. | ||||
Additional information and documentation updates | See src/DrawResources/DrawTK.tcl for current code | ||||
Tags | No tags attached. | ||||
Test case number | |||||
2014-09-23 15:19 developer |
New draw menu.doc (1,218,560 bytes) |
|
Dear Andrey, Could you please take a look on the new draw menu design (attached file). Samples menu is not ready yet, but in the attached document there are some options for its design. Please select the best one. Thank you! |
|
Looks nice, please proceed. A few remarks from my side: - File menu: please add a space before (restore) and (save) - About dialog: please keep only www.opencascade.org, and make it centered - Error message if no User Guide: wording "Please generate documentation with WOK" is not really correct as WOK is not a tool to generate docs any more. Perhaps instead of putting such error message we can open HTML variant: either local (doc/overview/html/occt_user_guides__test_harness.html), if present, or on-line (http://dev.opencascade.org/doc/overview/html/occt_user_guides__test_harness.html) Regarding Samples sub-menu, my idea was to populate menu automatically by a list of available samples. The description could be shown as tool-tip when you hover a mouse over the menu item for some time (if Tk supports that, of course). However I like the idea (as I understood it) of displaying text of the sample in separate dialog where the user can review it before (or in parallel to) executing. Not sure this will be appreciated in all cases, but anyway, let's try this and see how it works... Please share your development via branch as soon as you reach some stable status |
|
Branch CR25231 has been created by isz. SHA-1: b48b79d528f11e5bb2406ba8e4b6213a4b90f14e Detailed log of new commits: Author: isz Date: Wed Sep 24 17:24:42 2014 +0400 0025231: DRAW - make top level menu useful -In menu meaningful texts are provided instead of commands (e.g. restore->Load Shape (restore)) -tk_getOpenFile is used in "open file" dialogs -tk_chooseDirectory is used in "change directory" dialog -Added menu "Help" with submenus "Commands", "About", "User Guide" -Added menu "Samples" with submenu "View samples" |
|
Dear Andrey, Please take a look on branch CR25231. Could you please provide titles and categories for samples in /samples/tcl? Thank you! |
|
Some remarks: - When I click File -> Load Shape and then exit dialog by Cancel, error messages appear in command prompt - Please capitalize first letter in "exit" in File menu - Please try to make menu 'Help' always last. Now when new submenus are added (e.g. after pload ALL), they appear after Help - About dialog is poor; please make it greater (adding more space), add button "Close" (or "OK"), and let it appear at the center of the screen. Make it modal. - It may be worth displaying system information in About dialog (commands dversion, meminfo, vglinfo if VISUALIZATION is loaded), or add a separate menu item for that - Exclude files with extensions other than .tcl from the list of samples (you have listed Readme.txt as sample) - Before starting sample, try to clean up DRAW environment (use command dall to remove all DRAW variables, vclear to clean viewers, vclose to close viewers etc.) - When starting sample, please switch focus to command window, or suppress sample dialog otherwise, to ensure that the user sees how the sample is executed, and viewer windows it creates - In Help browser, it would be very nice to have some search functionality |
|
Samples and categories: Demos: Modeling operations (ModelingDemo.tcl) Displaying 3d viewer (VisualizationDemo.tcl) Import and export (DataExchangeDemo.tcl) Modeling: OCCT Tutorial bottle shape (bottle.tcl) CAD shape (cad.tcl) Drill (drill.tcl) Milling cutter (cutter.tcl) Visualization: Material properties in viewer (materials.tcl) Ray tracing (raytrace.tcl) Display of complex scene and animation (spheres.tcl) Application Framework: Work with assemblies, colors etc. in XDE (xde.tcl) |
|
Branch CR25231 has been updated forcibly by isz. SHA-1: 81fd3f034435b6f61856bda66e57082eceb0973f |
|
-Fixed all remarks -Two types of search added in "Commands" window: 1)search through text of helpstrings 2)command search -Added submenu "System Info" in "Help" creating window with system informat |
|
Dear Andrey, Please take a look on branch CR25231. Thank you! |
|
Please improve a bit: - add comments to procedures defined in DrawTK.tcl - in System Info dialog, add button Close at the bottom - add new menu "Load" allowing to call pload command for OCCT modules, with items found in 1st column in the file src/DrawResources/DrawPlugin |
|
Branch CR25231 has been updated by isz. SHA-1: 8ff3c581ba6fc54883c813f8827d470884366c9c Detailed log of new commits: Author: isz Date: Thu Oct 2 17:59:58 2014 +0400 -Added "Load" menu -Added comments to procedures -Added "Close" button on "System information" window |
|
Branch CR25231 has been updated forcibly by isz. SHA-1: 43299cb2f638ec1546685f491781e108dba45f31 |
|
Branch CR25231 has been updated forcibly by isz. SHA-1: 36651a01671ad2f8f7cb2f6db07142f388502fcd |
|
Reviewed, please test together with 0024802 (note that only interactive Tcl scripts changed, thus compilation and non-regression testings are not needed) |
|
Branch CR25231 has been deleted by inv. SHA-1: 36651a01671ad2f8f7cb2f6db07142f388502fcd |
occt: master ab91ab6f 2014-10-06 12:56:21
Committer: bugmaster Details Diff |
0025231: DRAW - make top level menu useful -Meaningful texts are provided instead of commands in File menu (e.g. restore->Load Shape (restore)) -tk_getOpenFile is used in "open file" dialogs -tk_chooseDirectory is used in "change directory" dialog -Added menu "Help" with submenus "System info", "Commands", "About", "User Guide" -Added menu "Samples" with submenu "View samples" -Added menu "Load" with submenus "pload <Module>" |
Affected Issues 0025231 |
|
mod - samples/tcl/bottle.tcl | Diff File | ||
mod - samples/tcl/cad.tcl | Diff File | ||
mod - samples/tcl/cutter.tcl | Diff File | ||
mod - samples/tcl/DataExchangeDemo.tcl | Diff File | ||
mod - samples/tcl/drill.tcl | Diff File | ||
mod - samples/tcl/materials.tcl | Diff File | ||
mod - samples/tcl/ModelingDemo.tcl | Diff File | ||
mod - samples/tcl/raytrace.tcl | Diff File | ||
mod - samples/tcl/spheres.tcl | Diff File | ||
mod - samples/tcl/VisualizationDemo.tcl | Diff File | ||
mod - samples/tcl/xde.tcl | Diff File | ||
mod - src/DrawResources/CURVES.tcl | Diff File | ||
mod - src/DrawResources/DrawTK.tcl | Diff File | ||
add - src/DrawResources/OCC_logo.png | Diff File | ||
mod - src/DrawResources/SURFACES.tcl | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2014-09-10 15:27 |
|
New Issue | |
2014-09-10 15:27 |
|
Assigned To | => mkv |
2014-09-15 17:34 |
|
Assigned To | mkv => isz |
2014-09-15 17:34 |
|
Status | new => assigned |
2014-09-23 15:18 |
|
File Added: New draw menu.tar.gz | |
2014-09-23 15:19 |
|
File Added: New draw menu.doc | |
2014-09-23 15:19 |
|
File Deleted: New draw menu.tar.gz | |
2014-09-23 15:21 |
|
Note Added: 0032008 | |
2014-09-23 15:21 |
|
Assigned To | isz => abv |
2014-09-23 15:21 |
|
Status | assigned => feedback |
2014-09-23 16:42 |
|
Note Added: 0032025 | |
2014-09-23 16:42 |
|
Assigned To | abv => isz |
2014-09-23 16:42 |
|
Status | feedback => assigned |
2014-09-24 17:24 | git | Note Added: 0032100 | |
2014-09-24 17:27 |
|
Note Added: 0032101 | |
2014-09-24 17:27 |
|
Assigned To | isz => abv |
2014-09-24 17:27 |
|
Status | assigned => feedback |
2014-09-24 18:57 |
|
Note Added: 0032103 | |
2014-09-24 19:04 |
|
Note Added: 0032104 | |
2014-09-24 19:14 |
|
Assigned To | abv => isz |
2014-09-26 06:46 |
|
Status | feedback => assigned |
2014-10-02 14:09 | git | Note Added: 0032574 | |
2014-10-02 14:10 |
|
Note Added: 0032576 | |
2014-10-02 14:11 |
|
Note Added: 0032577 | |
2014-10-02 14:11 |
|
Assigned To | isz => abv |
2014-10-02 14:11 |
|
Status | assigned => feedback |
2014-10-02 14:15 |
|
Status | feedback => resolved |
2014-10-02 14:54 |
|
Note Added: 0032582 | |
2014-10-02 14:54 |
|
Assigned To | abv => isz |
2014-10-02 14:54 |
|
Status | resolved => assigned |
2014-10-02 18:00 | git | Note Added: 0032606 | |
2014-10-02 18:00 |
|
Assigned To | isz => abv |
2014-10-02 18:00 |
|
Status | assigned => resolved |
2014-10-06 16:33 | git | Note Added: 0032717 | |
2014-10-06 16:56 | git | Note Added: 0032720 | |
2014-10-06 19:31 |
|
Note Added: 0032739 | |
2014-10-06 19:31 |
|
Assigned To | abv => bugmaster |
2014-10-06 19:31 |
|
Status | resolved => reviewed |
2014-10-06 20:58 |
|
Assigned To | bugmaster => mkv |
2014-10-13 14:30 |
|
Relationship added | parent of 0025359 |
2014-10-13 17:52 | bugmaster | Changeset attached | => occt master ab91ab6f |
2014-10-13 17:52 | bugmaster | Assigned To | mkv => bugmaster |
2014-10-13 17:52 | bugmaster | Status | reviewed => verified |
2014-10-13 17:52 | bugmaster | Resolution | open => fixed |
2014-10-21 16:43 | git | Note Added: 0033436 | |
2014-11-11 12:43 |
|
Fixed in Version | => 6.8.0 |
2014-11-11 13:01 |
|
Status | verified => closed |