PeanutProfileImpl.mesa
Doug Wyatt, February 6, 1984 4:08:43 pm PST
DIRECTORY
PeanutProfile USING [],
Rope USING [ROPE],
UserProfile USING [Boolean, CallWhenProfileChanges, Number, ProfileChangedProc, Token];
PeanutProfileImpl: CEDAR PROGRAM
IMPORTS UserProfile
EXPORTS PeanutProfile
= BEGIN
ROPE: TYPE = Rope.ROPE;
automaticNewMail: PUBLIC BOOLFALSE; -- Peanut.AutomaticNewMail
ccToSelf: PUBLIC BOOLFALSE; -- Peanut.CarbonCopyToSelf
killViewersOnSaveAll: PUBLIC BOOLFALSE; -- Peanut.KillViewersOnSaveAll
startIconic: PUBLIC BOOLFALSE; -- Peanut.StartIconic
windowHeight: PUBLIC INT ← 0; -- Peanut.WindowHeight
activeMailFile: PUBLIC ROPENIL; -- Peanut.ActiveMailFile
outgoingMailFile: PUBLIC ROPENIL; -- Peanut.OutgoingMailFile
workingDirectory: PUBLIC ROPENIL; -- Peanut.WorkingDirectory
ChangePeanutProfile: UserProfile.ProfileChangedProc = {
automaticNewMail ← UserProfile.Boolean["Peanut.AutomaticNewMail", FALSE];
ccToSelf ← UserProfile.Boolean["Peanut.CarbonCopyToSelf", TRUE];
killViewersOnSaveAll ← UserProfile.Boolean["Peanut.KillViewersOnSaveAll", FALSE];
startIconic ← UserProfile.Boolean["Peanut.StartIconic", TRUE];
windowHeight ← UserProfile.Number["Peanut.WindowHeight", 80];
activeMailFile ← UserProfile.Token["Peanut.ActiveMailFile", "Active"];
outgoingMailFile ← UserProfile.Token["Peanut.OutgoingMailFile", ""];
workingDirectory ← UserProfile.Token["Peanut.WorkingDirectory", NIL];
};
UserProfile.CallWhenProfileChanges[ChangePeanutProfile];
END.