~ubuntu-branches/ubuntu/precise/xcircuit/precise

« back to all changes in this revision

Viewing changes to lib/tcl/bparams.tcl

  • Committer: Bazaar Package Importer
  • Author(s): Aanjhan Ranganathan
  • Date: 2006-04-18 23:51:39 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060418235139-s49pkhwdzxvsxm5k
Tags: 3.4.21-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#--------------------------------------------------------------------------
 
2
# bparams.tcl
 
3
#
 
4
# This Tcl script re-binds Button-3 to bring up the parameter edit
 
5
# popup window when the right mouse button is clicked over a (non-selected)
 
6
# object instance.  Otherwise, Button-3 behaves as usual (e.g., deselects
 
7
# selected objects).
 
8
#--------------------------------------------------------------------------
 
9
 
 
10
bind .xcircuit.mainframe.mainarea.drawing <ButtonPress-3> { \
 
11
   if {[eventmode] == "normal" && [select get] == {} \
 
12
                && [select here] != {}} {
 
13
      xcircuit::prompteditparams {substring numeric expression}
 
14
   } else {
 
15
      standardaction %b down %s
 
16
   }
 
17
}