-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathProverGUI.hs
47 lines (41 loc) · 1.36 KB
/
ProverGUI.hs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{-# LANGUAGE CPP #-}
{- |
Module : ./GUI/ProverGUI.hs
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 Static.GTheory
import Common.Result as Result
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 :: ProofActions -- ^ record of possible GUI actions
-> String -- ^ theory name
-> String -- ^ warning information
-> G_theory -- ^ theory
-> KnownProvers.KnownProversMap -- ^ map of known provers
-> [(G_prover, AnyComorphism)] -- ^ list of suitable provers and comorphisms
-> IO (Result.Result G_theory)
#ifdef GTKGLADE
proverGUI = showProverGUI
#elif defined UNI_PACKAGE
proverGUI prGuiAcs thName warningTxt th knownProvers comorphList = do
guiMVar <- newMVar Nothing
proofManagementGUI prGuiAcs thName warningTxt th knownProvers comorphList
guiMVar
#else
proverGUI = error "not implemented"
#endif