0N/ACopyright : (c) Uni Bremen 2002-2005
0N/AMaintainer : Christian.Maeder@dfki.de
0N/AStability : provisional
0N/APortability : non-portable (Logic)
0N/Adisplay the final graph
import DialogWin (useHTk)
showGraph :: FilePath -> HetcatsOpts ->
Maybe (LIB_NAME, -- filename
LibEnv -- DGraphs for imported modules
showGraph file opts env = case env of
showGraphAux file opts ln le -- "development graph"
Nothing -> putIfVerbose opts 1 $ "Error: Basic Analysis is neccessary "
++ "to display graphs in a graphical window"
showGraphAux :: FilePath -> HetcatsOpts -> LIB_NAME -> LibEnv -> IO ()
showGraphAux file opts ln le = do
putIfVerbose opts 2 $ "Trying to display "++file++" in a graphical window"
putIfVerbose opts 3 "Initializing Converter"
(gInfo,wishInst) <- initializeConverter
useHTk -- All messages are displayed in TK dialog windows
gInfo' <- setGInfo gInfo ln le opts
graph <- showLibGraph gInfo'