home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
revengcppd.tcl
< prev
next >
Wrap
Text File
|
1997-10-24
|
3KB
|
108 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1996
#
# File: @(#)revengcppd.tcl /main/titanic/3
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)revengcppd.tcl /main/titanic/3 24 Oct 1997 Copyright 1996 Cadre Technologies Inc.
# Start user added include file section
# End user added include file section
require "revengdlg.tcl"
Class RevEngCppDlg : {RevEngDlg} {
method destructor
method handleBrowse
constructor
method getOptions
}
method RevEngCppDlg::destructor {this} {
# Start destructor user section
# End destructor user section
$this RevEngDlg::destructor
}
constructor RevEngCppDlg {class this name} {
set this [RevEngDlg::constructor $class $this $name "C++" "reveng_cpp"]
interface CheckButton $this.top.association {
label "Reverse engineer associations"
state 1
}
interface DlgRow $this.top.filter {
spaceType NONE
verStretchFactor 0
verShrinkFactor 0
Label lab {
text "Input Filter Command "
}
SingleLineText cmdline {}
}
interface DlgRow $this.top.skipids {
verStretchFactor 0
verShrinkFactor 0
Label lab {
text "Skip Identifiers File"
}
SingleLineText filename {
justification CENTER
}
PushButton browse {
label "Browse..."
}
}
$this.top.skipids.browse activated "$this handleBrowse"
$this.top.filter.cmdline text [m4_var get M4_reveng_filter]
$this.top.skipids.filename text [m4_var get M4_reveng_skipfile]
return $this
}
method RevEngCppDlg::handleBrowse {this} {
set fileChooser .main.Browse[nt_get_type $this]
if {! [isCommand $fileChooser]} {
ClassMaker::extend FileChooser RevEngCppDlgFileChooser dialog
if $win95 {
set filter "Programs|*.com;*.exe;*.bat;*.cmd|All Files (*.*)|*|"
} else {
set filter "*"
}
RevEngCppDlgFileChooser new $fileChooser \
-title "Browse Skip Identifier File" \
-selectionPolicy SINGLE \
-filter $filter \
-dialog $this \
-okPressed {
set dialog [%this dialog]
$dialog.top.skipids.filename text [lindex [%this selectedSet] 0]
}
$fileChooser delHelpButton
}
$fileChooser popUp
}
method RevEngCppDlg::getOptions {this} {
set script [$this RevEngDlg::getOptions]
if [$this.top.association state] {
append script " -a rev_assoc.tcl"
}
if {[$this.top.filter.cmdline text] != ""} {
append script " -I\"[$this.top.filter.cmdline text]\""
}
if {[$this.top.skipids.filename text] != ""} {
append script " -U[$this.top.skipids.filename text]"
}
return $script
}
# Do not delete this line -- regeneration end marker