home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cayenne Software Inc. 1996
- #
- # File: @(#)edenablepa.tcl /main/hindenburg/2
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)edenablepa.tcl /main/hindenburg/2 29 Nov 1996 Copyright 1996 Cayenne Software Inc.
-
- # Start user added include file section
- # End user added include file section
-
- require "enablepage.tcl"
-
- Class EdEnablePage : {EnablePage} {
- constructor
- method destructor
- method createInterface
- method clearInterface
- method fromInterface
- method toInterface
- }
-
- constructor EdEnablePage {class this name} {
- set this [EnablePage::constructor $class $this $name]
- # Start constructor user section
- # End constructor user section
- return $this
- }
-
- method EdEnablePage::destructor {this} {
- # Start destructor user section
- # End destructor user section
- $this EnablePage::destructor
- }
-
- method EdEnablePage::createInterface {this} {
-
- interface NamedGroup $this.NG {
- label "Enabled editor area operation"
- DlgColumn DC {
- DlgRow DR {
- DlgColumn DC {
- CheckButton openCB { label Open }
- CheckButton undoCB { label Undo }
- CheckButton moveCB { label Move }
- CheckButton copyCB { label Copy }
- CheckButton deleteCB { label Delete }
- CheckButton replaceCB { label Replace }
- CheckButton changeCB { label Change }
- CheckButton copyToClipboardCB {label "Copy To Clipboard"}
- }
- DlgColumn DC {
- CheckButton centerCB { label Center }
- CheckButton saveCB { label Save }
- CheckButton readCB { label Read }
- CheckButton editCB { label Edit }
- CheckButton itemCB { label "On Item" }
- CheckButton checkCB { label Check }
- CheckButton diagramCB { label "On Diagram" }
- CheckButton pasteFromClipboardCB {label "Paste From Clipboard"}
- }
- }
- }
- }
- }
-
- method EdEnablePage::clearInterface {this} {
-
- [$this if].openCB state 0
- [$this if].undoCB state 0
- [$this if].moveCB state 0
- [$this if].copyCB state 0
- [$this if].deleteCB state 0
- [$this if].replaceCB state 0
- [$this if].changeCB state 0
- [$this if].centerCB state 0
- [$this if].saveCB state 0
- [$this if].readCB state 0
- [$this if].editCB state 0
- [$this if].itemCB state 0
- [$this if].checkCB state 0
- [$this if].diagramCB state 0
- [$this if].copyToClipboardCB state 0
- [$this if].pasteFromClipboardCB state 0
- }
-
- method EdEnablePage::fromInterface {this} {
-
- set ops ""
- if [[$this if].openCB state] { set ops "$ops open" }
- if [[$this if].undoCB state] { set ops "$ops undo" }
- if [[$this if].moveCB state] { set ops "$ops move" }
- if [[$this if].copyCB state] { set ops "$ops copy" }
- if [[$this if].deleteCB state] { set ops "$ops delete" }
- if [[$this if].replaceCB state] { set ops "$ops replace" }
- if [[$this if].changeCB state] { set ops "$ops change" }
- if [[$this if].centerCB state] { set ops "$ops center" }
- if [[$this if].saveCB state] { set ops "$ops save" }
- if [[$this if].readCB state] { set ops "$ops read" }
- if [[$this if].editCB state] { set ops "$ops edit" }
- if [[$this if].itemCB state] { set ops "$ops item" }
- if [[$this if].checkCB state] { set ops "$ops check" }
- if [[$this if].diagramCB state] { set ops "$ops diagram" }
- if [[$this if].copyToClipboardCB state] \
- { set ops "$ops copyToClipboard" }
- if [[$this if].pasteFromClipboardCB state] \
- { set ops "$ops pasteFromClipboard" }
- if {$ops != ""} {
- set spec "operations \{$ops\}"
- }
- }
-
- method EdEnablePage::toInterface {this key value} {
-
- if {$key == "operations"} {
- foreach op $value {
- if [isCommand [$this if].${op}CB] {
- [$this if].${op}CB state 1
- }
- }
- }
- }
-
- # Do not delete this line -- regeneration end marker
-
-