b311480e |
1 | # Copyright (c) 1999-2012 OPEN CASCADE SAS |
2 | # |
3 | # The content of this file is subject to the Open CASCADE Technology Public |
4 | # License Version 6.5 (the "License"). You may not use the content of this file |
5 | # except in compliance with the License. Please obtain a copy of the License |
6 | # at http://www.opencascade.org and read it completely before using this file. |
7 | # |
8 | # The Initial Developer of the Original Code is Open CASCADE S.A.S., having its |
9 | # main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. |
10 | # |
11 | # The Original Code and all software distributed under the License is |
12 | # distributed on an "AS IS" basis, without warranty of any kind, and the |
13 | # Initial Developer hereby disclaims all such warranties, including without |
14 | # limitation, any warranties of merchantability, fitness for a particular |
15 | # purpose or non-infringement. Please see the License for the specific terms |
16 | # and conditions governing the rights and limitations under the License. |
17 | |
7fd59977 |
18 | # |
19 | # 02/02/1996 : pbo : creation |
20 | # 25/10/1996 : pbo : add 2d view |
21 | # |
22 | # rotation/panning/zoom with buttons |
23 | # |
24 | |
25 | frame .move -relief groove -borderwidth 1 |
26 | pack .move -pady 1 -padx 1 -anchor w -side left |
27 | #toplevel .move |
28 | |
29 | frame .move.rotate -borderwidth 1 |
30 | label .move.rotate.title -text " Rotation " |
31 | button .move.rotate.l -text " < " -command {l ; repaint} |
32 | button .move.rotate.r -text " > " -command {r ; repaint} |
33 | button .move.rotate.u -text " ^ " -command {u ; repaint} |
34 | button .move.rotate.d -text " v " -command {d ; repaint} |
35 | pack .move.rotate.title -side top |
36 | pack .move.rotate.l -side left |
37 | pack .move.rotate.r -side right |
38 | pack .move.rotate.u -side top |
39 | pack .move.rotate.d -side bottom |
40 | pack .move.rotate |
41 | |
42 | frame .move.panning -borderwidth 1 |
43 | label .move.panning.title -text " Panning " |
44 | button .move.panning.l -text " < " -command {pl ; 2dpl ; repaint} |
45 | button .move.panning.r -text " > " -command {pr ; 2dpr ; repaint} |
46 | button .move.panning.u -text " ^ " -command {pu ; 2dpu ; repaint} |
47 | button .move.panning.d -text " v " -command {pd ; 2dpd ; repaint} |
48 | pack .move.panning.title -side top |
49 | pack .move.panning.l -side left |
50 | pack .move.panning.r -side right |
51 | pack .move.panning.u -side top |
52 | pack .move.panning.d -side bottom |
53 | pack .move.panning |
54 | |
55 | frame .move.zoom -borderwidth 1 |
56 | label .move.zoom.title -text " Zoom " |
57 | button .move.zoom.mu -text " + " -command {mu ; 2dmu ; repaint} |
58 | button .move.zoom.md -text " - " -command {md ; 2dmd ; repaint} |
59 | button .move.zoom.fit -text "max" -command {fit ; 2dfit; repaint} |
60 | button .move.zoom.w -text "win" -command {wzoom ; repaint} |
61 | pack .move.zoom.title -side top |
62 | pack .move.zoom.w -side left |
63 | pack .move.zoom.fit -side right |
64 | pack .move.zoom.mu -side top |
65 | pack .move.zoom.md -side bottom |
66 | pack .move.zoom |
67 | |