Ignore:
Timestamp:
Jun 11, 2005 9:56:37 PM (19 years ago)
Author:
mmc
Message:

Added a capability to MainWin? to syncCutBuffer with the
application. The VNC Java client uses the cutbuffer
instead of the selection for Copy/Paste? to desktop, and
this mechanism keeps the two in sync so Copy/Paste? works
properly. Also, added Cut/Copy/Paste? menus to the right
mouse button of various widgets.

Fixed 3D plotting to work with the vtkCutter so it works
better. Also, added support for 3D meshes in addition
to clouds. Meshes store connectivity, so they are better
at representing holes in data. Fixed the 3D plotter so
that rotate is more intuitive, and added lights so you can
see your data better at any angle.

Fixed the loader so that it can load elements with the ""
value, and so that it doesn't duplicate entries found
more than once by *.xml pattern matching.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/editor.tcl

    r11 r17  
    9191        [itcl::code $this _click %X %Y]
    9292
     93    itk_component add emenu {
     94        menu $itk_component(editor).menu -tearoff 0
     95    } {
     96        usual
     97        ignore -tearoff
     98        ignore -background -foreground
     99    }
     100    $itk_component(emenu) add command -label "Cut" -accelerator "^X" \
     101        -command [list event generate $itk_component(editor) <<Cut>>]
     102    $itk_component(emenu) add command -label "Copy" -accelerator "^C" \
     103        -command [list event generate $itk_component(editor) <<Copy>>]
     104    $itk_component(emenu) add command -label "Paste" -accelerator "^V" \
     105        -command [list event generate $itk_component(editor) <<Paste>>]
     106    bind $itk_component(editor) <<PopupMenu>> {
     107        tk_popup %W.menu %X %Y
     108    }
     109
    93110    eval itk_initialize $args
    94111}
     
    104121itcl::body Rappture::Editor::activate {} {
    105122    set e $itk_component(editor)
     123    if {[winfo ismapped $e]} {
     124        return  ;# already mapped -- nothing to do
     125    }
    106126
    107127    set info ""
     
    234254    if {[winfo containing $x $y] != $itk_component(editor)} {
    235255        deactivate
     256    } else {
     257        # make sure the editor has keyboard focus!
     258        # it loses focus sometimes during cut/copy/paste operations
     259        focus -force $itk_component(editor)
    236260    }
    237261}
Note: See TracChangeset for help on using the changeset viewer.