home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
menueditor.tcl
< prev
next >
Wrap
Text File
|
1996-12-09
|
2KB
|
66 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1996
#
# File: @(#)menueditor.tcl /main/titanic/2
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)menueditor.tcl /main/titanic/2 9 Dec 1996 Copyright 1996 Cayenne Software Inc.
# Start user added include file section
require "menuedarea.tcl"
require "iconselect.tcl"
# End user added include file section
require "custeditor.tcl"
Class MenuEditor : {CustEditor} {
constructor
method destructor
method getSelectedSet
attribute smallIconSelector
}
constructor MenuEditor {class this name} {
set this [CustEditor::constructor $class $this $name]
# Start constructor user section
$this menuHdlr [CustBrMenuHandler new menuced [$this moduleHdlr]]
[$this menuHdlr] setCurrentContext
$this initObjTypeInformation
$this setToolBarPresence uce
$this setContextAreaPresence uce
$this editorArea [MenuEdArea new [$this editorArea].editorArea]
[$this editorArea] selectionChanged "$this selectionChanged"
$this setMessageAreaPresence uce
$this smallIconSelector [IconSelector new $this.smallIconSelector \
16 -title "ToolBar Icon Selector"]
$this setWindowGeometry mnu
# End constructor user section
return $this
}
method MenuEditor::destructor {this} {
# Start destructor user section
$this saveToolBarPresence uce
$this saveContextAreaPresence uce
$this saveMessageAreaPresence uce
$this saveWindowGeometry mnu
[$this menuHdlr] delete
# End destructor user section
$this CustEditor::destructor
}
method MenuEditor::getSelectedSet {this} {
if {![[$this editorArea] isA BrowsTree]} {
return ""
}
return [[$this editorArea] selected]
}
# Do not delete this line -- regeneration end marker