Changeset 1728 for trunk/gui


Ignore:
Timestamp:
May 23, 2010, 6:58:09 PM (14 years ago)
Author:
mmc
Message:

Initial version of the "instant rappture" gui builder. To run this,
just say "irappture" or "irappture -tool path/to/tool.xml". It will
bring up an editor that lets you specify inputs/outputs and preview
the tool.

Made two fixes along the way to the scroller, so that it handles
automatic scrollbars better, and to the grab stack, so that it avoids
pushing the same window on the grab stack twice. Both of these fixes
solved problems in iRappture, and they'll probably fix strange behaviors
in the main rappture as well.

Location:
trunk/gui/scripts
Files:
2 edited

Legend:

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

    r1342 r1728  
    6565        }
    6666
     67        # if the window is already on the stack, then skip it
     68        if {[string equal [lindex $::Rappture::grab::stack 0] $window]} {
     69            return $window
     70        }
     71
    6772        # add the current configuration to the grab stack
    6873        set ::Rappture::grab::stack \
  • trunk/gui/scripts/scroller.tcl

    r1641 r1728  
    147147            frame $_frame.f
    148148            $_frame create window 0 0 -anchor nw -window $_frame.f -tags frame
     149            bind $_frame.f <Map> \
     150                [itcl::code $_dispatcher event -idle !fixframe-inner]
    149151            bind $_frame.f <Configure> \
    150152                [itcl::code $_dispatcher event -idle !fixframe-inner]
     
    302304    switch -- $which {
    303305        inner {
    304             $_frame configure -scrollregion [$_frame bbox all]
     306            set w [winfo reqwidth $_frame.f]
     307            set h [winfo reqheight $_frame.f]
     308            $_frame configure -scrollregion [list 0 0 $w $h]
     309            _lock reset x
     310            _lock reset y
    305311            $_dispatcher event -idle !fixsize
    306312        }
Note: See TracChangeset for help on using the changeset viewer.