ProverGUI.hs revision 98890889ffb2e8f6f722b00e265a211f13b5a861
{-# LANGUAGE CPP #-}
{- |
Module : $Header$
Description : cpp choice between "GUI.ProofManagement" and "GUI.GtkProverGUI"
Copyright : (c) C. Maeder, Uni Bremen 2002-2005
License : GPLv2 or higher, see LICENSE.txt
Maintainer : Christian.Maeder@dfki.de
Stability : provisional
Portability : non-portable (cpp)
cpp choice between "GUI.ProofManagement" and "GUI.GtkProverGUI"
-}
module GUI.ProverGUI
( proverGUI ) where
import Logic.Comorphism
import Logic.Logic
import Static.DevGraph (DGNodeLab)
import Static.GTheory
import Common.Result as Result
import Data.Graph.Inductive.Graph (LNode)
import Proofs.AbstractState
import qualified Comorphisms.KnownProvers as KnownProvers
#ifdef GTKGLADE
import GUI.GtkProverGUI
#elif defined UNI_PACKAGE
import Control.Concurrent
import GUI.HTkProverGUI
#endif
proverGUI ::
(Logic lid sublogics1
basic_spec1
sentence
symb_items1
symb_map_items1
sign1
morphism1
symbol1
raw_symbol1
proof_tree1) =>
lid
-> ProofActions lid sentence -- ^ record of possible GUI actions
-> String -- ^ theory name
-> String -- ^ warning information
-> G_theory -- ^ theory
-> LNode DGNodeLab -- ^ node the proving is applied to
-> KnownProvers.KnownProversMap -- ^ map of known provers
-> [(G_prover,AnyComorphism)] -- ^ list of suitable comorphisms to provers
-- for sublogic of G_theory
-> IO (Result.Result G_theory)
#ifdef GTKGLADE
proverGUI = showProverGUI
#elif defined UNI_PACKAGE
proverGUI lid prGuiAcs thName warningTxt th _ knownProvers comorphList = do
guiMVar <- newMVar Nothing
proofManagementGUI lid prGuiAcs thName warningTxt th knownProvers comorphList
guiMVar
#else
proverGUI = error "not implemented"
#endif