##// END OF EJS Templates
Creates a interface that defines a variable container...
Creates a interface that defines a variable container - A variable container is an entity that can eventually accomodate a variable (for example, from a menu or d'n'd) - The interfaces declares canDrop() method, that will be used to create a menu for a variable containing only the containers available for it, or to enable/disable d'n'd of this variable on a container - Each visualization widget is a variable container, so it implements canDrop() method

File last commit:

r2:451739a45362
r209:7ef1d04a5917
Show More
IPSIS_S03.tcl
25 lines | 942 B | application/x-tcl | TclLexer
#!/usr/bin/tclsh
# The macros in header files should begin with the name of the project to avoid
# collisions
set projectName [string toupper [getParameter "project-name" "PROJECTNAMENOTFOUND"]]
foreach fileName [getSourceFileNames] {
if {[regexp {\.h$} $fileName]} {
set prev ""
foreach token [getTokens $fileName 1 0 -1 -1 {pp_define identifier}] {
set type [lindex $token 3]
if {$prev == "pp_define" && $type == "identifier"} {
set identifier [lindex $token 0]
if {![regexp "^${projectName}.*$" $identifier]} {
set line [lindex $token 1]
report $fileName $line "The macros in header files should begin with the name of the project to avoid collisions. (project name: $projectName, macro found: $identifier)"
}
}
set prev $type
}
}
}