home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cadre Technologies Inc. 1996
- #
- # File: @(#)newobjentr.tcl /main/2
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)newobjentr.tcl /main/2 12 Jun 1996 Copyright 1996 Cadre Technologies Inc.
-
- # Start user added include file section
- require "wmt_util.tcl"
- # End user added include file section
-
-
- Class NewObjEntryDlg : {TemplateDialog} {
- constructor
- method destructor
- method handleHelp
- method handleTextModified
- method popUp
- attribute message
- attribute entry
- attribute createdObj
- attribute dbObj
- }
-
- constructor NewObjEntryDlg {class this name} {
- set this [TemplateDialog::constructor $class $this $name]
- # Start constructor user section
-
- interface DlgColumn $this.top {
- Label nameLab {}
- SingleLineText name {}
- }
- $this config \
- -modal yes \
- -helpPressed "$this handleHelp"
- $this.top.name textModified "$this handleTextModified"
-
- # End constructor user section
- return $this
- }
-
- method NewObjEntryDlg::destructor {this} {
- # Start destructor user section
- # End destructor user section
- }
-
- method NewObjEntryDlg::handleHelp {this} {
- [getParent $this] helpOnName [nt_get_type $this]
- }
-
- method NewObjEntryDlg::handleTextModified {this} {
- if [isCommand $this.top.name] {
- $this entry [$this.top.name text]
- if {"[rmWhiteSpace [$this entry]]" == ""} {
- set selected 0
- } else {
- set selected 1
- }
- } else {
- set selected 1
- }
- $this okSensitive $selected
- $this okDefault $selected
- $this cancelDefault [expr 1 - $selected]
- }
-
- method NewObjEntryDlg::popUp {this} {
- if [isCommand $this.top.nameLab] {
- $this.top.nameLab text [$this message]
- }
- if [isCommand $this.top.name] {
- $this.top.name text [$this entry]
- }
- $this handleTextModified
- $this TemplateDialog::popUp
- }
-
- # Do not delete this line -- regeneration end marker
-
-