Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
clean-and-itasks
clean-ide
Commits
4875f97c
Commit
4875f97c
authored
Apr 20, 2004
by
John van Groningen
Browse files
add CompilerProcessIds to IdeState, make General a boxed record
parent
4ccc492a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Ide/IdeState.dcl
View file @
4875f97c
...
@@ -11,6 +11,7 @@ from PmAbcMagic import :: ABCCache
...
@@ -11,6 +11,7 @@ from PmAbcMagic import :: ABCCache
from
PmFileInfo
import
::
FileInfoCache
from
PmFileInfo
import
::
FileInfoCache
import
PmEnvironment
import
PmEnvironment
import
conswin
import
conswin
from
PmCleanSystem
import
::
CompilerProcessIds
::
*
General
::
*
General
...
@@ -24,6 +25,9 @@ setProject :: !Project !*(PSt *General) -> *PSt *General
...
@@ -24,6 +25,9 @@ setProject :: !Project !*(PSt *General) -> *PSt *General
appProject
::
(
Project
->
Project
)
!*(
PSt
*
General
)
->
*
PSt
*
General
appProject
::
(
Project
->
Project
)
!*(
PSt
*
General
)
->
*
PSt
*
General
accProject
::
(
Project
->
(.
a
,
Project
))
!*(
PSt
*
General
)
->
(.
a
,*
PSt
*
General
)
accProject
::
(
Project
->
(.
a
,
Project
))
!*(
PSt
*
General
)
->
(.
a
,*
PSt
*
General
)
getCompilerProcessIds
::
!*(
PSt
*
General
)
->
(!
CompilerProcessIds
,!*(
PSt
*
General
))
setCompilerProcessIds
::
!
CompilerProcessIds
!*(
PSt
*
General
)
->
*(
PSt
*
General
)
::
EditMenuLS
l
=
// local state for the Edit menu
::
EditMenuLS
l
=
// local state for the Edit menu
{
zfun
::
(
PSt
l
)
->
PSt
l
// undo-function
{
zfun
::
(
PSt
l
)
->
PSt
l
// undo-function
,
xfun
::
(
PSt
l
)
->
PSt
l
// cut-function
,
xfun
::
(
PSt
l
)
->
PSt
l
// cut-function
...
...
Ide/IdeState.icl
View file @
4875f97c
...
@@ -5,6 +5,7 @@ import EdState
...
@@ -5,6 +5,7 @@ import EdState
import
PmPath
,
PmProject
,
PmPrefs
,
PmFileInfo
import
PmPath
,
PmProject
,
PmPrefs
,
PmFileInfo
import
clipboard
,
typewin
,
fbi
,
PmAbcMagic
,
errwin
import
clipboard
,
typewin
,
fbi
,
PmAbcMagic
,
errwin
import
flextextcontrol
,
ioutil
,
UtilStrictLists
import
flextextcontrol
,
ioutil
,
UtilStrictLists
from
PmCleanSystem
import
::
CompilerProcessIds
,
NoCompilerProcessIds
::
InfoDialogInfo
=
::
InfoDialogInfo
=
{
pr_info
::
!
Id
// id for info dialog
{
pr_info
::
!
Id
// id for info dialog
...
@@ -14,8 +15,8 @@ import flextextcontrol, ioutil, UtilStrictLists
...
@@ -14,8 +15,8 @@ import flextextcontrol, ioutil, UtilStrictLists
,
pr_trig
::
!
Id
// id for interrupt trigger
,
pr_trig
::
!
Id
// id for interrupt trigger
}
}
::
*
General
=
::
*
General
=
{
pr_path
::
!
Pathname
// pathname current project
!
{
pr_path
::
!
Pathname
// pathname current project
,
pr_stup
::
!
Pathname
// startupdirectory
,
pr_stup
::
!
Pathname
// startupdirectory
,
pr_idi
::
!
InfoDialogInfo
,
pr_idi
::
!
InfoDialogInfo
...
@@ -48,6 +49,7 @@ import flextextcontrol, ioutil, UtilStrictLists
...
@@ -48,6 +49,7 @@ import flextextcontrol, ioutil, UtilStrictLists
,
print_setup
::
!
PrintSetup
,
print_setup
::
!
PrintSetup
,
project
::
!
Project
,
project
::
!
Project
,
g_compiler_process_ids
::
!
CompilerProcessIds
,
prefix
::
![
String
]
// prefixes for add/rem prefix
,
prefix
::
![
String
]
// prefixes for add/rem prefix
,
interact
::
Bool
,
interact
::
Bool
...
@@ -76,6 +78,12 @@ accProject f ps
...
@@ -76,6 +78,12 @@ accProject f ps
#
(
prj
,
ps
)
=
ps
!
ls
.
project
#
(
prj
,
ps
)
=
ps
!
ls
.
project
#
(
res
,
prj
)
=
f
prj
#
(
res
,
prj
)
=
f
prj
=
(
res
,{
ps
&
ls
.
project
=
prj
})
=
(
res
,{
ps
&
ls
.
project
=
prj
})
getCompilerProcessIds
::
!*(
PSt
*
General
)
->
(!
CompilerProcessIds
,!*(
PSt
*
General
))
getCompilerProcessIds
ps
=
accPLoc
(\
l
->
l
!
g_compiler_process_ids
)
ps
setCompilerProcessIds
::
!
CompilerProcessIds
!*(
PSt
*
General
)
->
*(
PSt
*
General
)
setCompilerProcessIds
compiler_project_ids
ps
=
appPLoc
(\
l
->
{
l
&
g_compiler_process_ids
=
compiler_project_ids
})
ps
::
EditMenuLS
l
=
::
EditMenuLS
l
=
{
zfun
::
(
PSt
l
)
->
PSt
l
{
zfun
::
(
PSt
l
)
->
PSt
l
...
@@ -271,6 +279,7 @@ iniGeneral
...
@@ -271,6 +279,7 @@ iniGeneral
,
fi_cache
=
Just
FI_EmptyCache
,
fi_cache
=
Just
FI_EmptyCache
,
print_setup
=
default_setup
,
print_setup
=
default_setup
,
project
=
PR_InitProject
,
project
=
PR_InitProject
,
g_compiler_process_ids
=
NoCompilerProcessIds
,
prefix
=
[
"//
\t
"
]
,
prefix
=
[
"//
\t
"
]
,
interact
=
interact
,
interact
=
interact
,
logfile
=
logfile
,
logfile
=
logfile
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment