IdeState.dcl 2.85 KB
Newer Older
Diederik van Arkel's avatar
Diederik van Arkel committed
1
2
3
4
5
definition module IdeState

import StdPSt, StdId, StdPictureDef
import StdPathname
import UtilStrictLists
Diederik van Arkel's avatar
Diederik van Arkel committed
6
7
from PmAbcMagic import :: ABCCache
from PmProject import :: Project
Diederik van Arkel's avatar
Diederik van Arkel committed
8
9
10
import PmCompilerOptions
import typewin
import PmEnvironment
Diederik van Arkel's avatar
Diederik van Arkel committed
11
from PmFileInfo import :: FileInfoCache
12
from PmCleanSystem import ::CompilerProcessIds,NoCompilerProcessIds
Diederik van Arkel's avatar
Diederik van Arkel committed
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61

:: *General

initGeneral :: !Bool !CompilerOptions !String !String !Project ![Target] !*File !Id !Id -> *General

instance Typer General

:: Prefs =
	{ be_verbose			:: !Bool
	, compopts				:: !CompilerOptions
	, edwinfont				:: !FontDef
	, edwintabs				:: !(Int,Bool,Bool,Bool,Bool)
	, number_of_processes	:: !Int
	}

:: ErrPrefs
:: SrcPrefs
:: NewlinePrefs

getPrefs :: !*(PSt *General) -> (Prefs,*PSt *General)
setPrefs :: Prefs !*(PSt *General) -> *PSt *General

getProject :: !*(PSt *General) -> (Project,*PSt *General)
setProject :: !Project !*(PSt *General) -> *PSt *General

getABCCache :: !*(PSt *General) -> *(!*ABCCache,!*PSt *General)
setABCCache :: !*ABCCache !*(PSt *General) -> *PSt *General

getFICache :: !*(PSt *General) -> (FileInfoCache,*PSt *General)
setFICache :: !FileInfoCache !*(PSt *General) -> *PSt *General

getPath :: !*(PSt *General) -> (!Pathname,!*PSt *General)
setPath :: !Pathname !*(PSt *General) -> !*PSt *General

getStup :: !*(PSt *General) -> (!Pathname,!*PSt *General)
getInterrupt :: !*(PSt *General) -> (!(Id,Id),!*PSt *General)
//getKeyMapping

getTargets :: !*(PSt *General) -> (![Target],!*PSt *General)
setTargets :: ![Target] !*(PSt *General) -> !*PSt *General
getCurrentTarget :: !*(PSt *General) -> (!Int,!*PSt *General)
setCurrentTarget :: !Int !*(PSt *General) -> !*PSt *General
getCurrentPaths :: !*(PSt *General) -> (!(List Pathname),!*PSt *General)
getCurrentDlibs :: !*(PSt *General) -> (!(List String),!*PSt *General)
getCurrentSlibs :: !*(PSt *General) -> (!(List String),!*PSt *General)
getCurrentObjts :: !*(PSt *General) -> (!(List String),!*PSt *General)
getCurrentComp :: !*(PSt *General) -> (!String,!*PSt *General)
getCurrentCgen :: !*(PSt *General) -> (!String,!*PSt *General)
getCurrentLink :: !*(PSt *General) -> (!String,!*PSt *General)
Diederik van Arkel's avatar
Diederik van Arkel committed
62
getCurrentDynl :: !*(PSt *General) -> (!String,!*PSt *General)
Diederik van Arkel's avatar
Diederik van Arkel committed
63
getCurrentVers :: !*(PSt *General) -> (!Int,!*PSt *General)
64
65
getCurrent64BitProcessor :: !*(PSt *General) -> (!Bool,!*PSt *General)
getCurrentProc :: !*(PSt *General) -> (!Processor,!*PSt *General)
Diederik van Arkel's avatar
Diederik van Arkel committed
66
67
getCurrentMeth :: !*(PSt *General) -> (!CompileMethod,!*PSt *General)

68
69
70
getCompilerProcessIds :: !*(PSt *General) -> (!CompilerProcessIds,!*(PSt *General))
setCompilerProcessIds :: !CompilerProcessIds !*(PSt *General) -> *(PSt *General)

71
72
73
74
75
76
//-- boolean that indicates if user interaction is allowed

getInteract  :: !*(PSt *General) -> (!Bool,!*PSt *General)

//-- log functions for batch build

Diederik van Arkel's avatar
Diederik van Arkel committed
77
78
writeLog :: !String !*(PSt *General) -> !*PSt *General
abortLog :: !Bool !String !*(PSt *General) -> !*PSt *General