Permalink
Browse files

Add entries for the focusWindow and selectWindow messages. Not happy …

…with the names. We don't have the separate concept of a window, and "select" is very vague, and we might need that term/message name to be able to select a window in the stack canvas. Also, we should have properties "the focusedWindow" and "the selectedWindow" or so, but those would actually return stacks. Maybe we should go and change these to focusStack and activateStack, and then have the activeStack and the focusedStack?
  • Loading branch information...
uliwitness committed May 9, 2016
1 parent e3b4d5f commit 1dfd0866d683a988ba8282840fb8b28842c077e1
Showing with 22 additions and 4 deletions.
  1. +22 −4 Stacksmith/Portable Document/CConcreteObject.cpp
@@ -107,17 +107,35 @@ static CAddHandlerListEntry sMasterHandlerList[] =
{
EHandlerEntryCommand,
kLEOHandlerIDINVALID,
"closeStack",
"The current stack is about to change, last chance for clean-up.",
"openStack",
"The current stack just changed, prepare this stack for the user.",
"",
"card",
0
},
{
EHandlerEntryCommand,
kLEOHandlerIDINVALID,
"openStack",
"The current stack just changed, prepare this stack for the user.",
"focusWindow",
"This stack's window is about to receive keyboard focus. Keypresses will go to objects on this card from now on.",
"",
"card",
0
},
{
EHandlerEntryCommand,
kLEOHandlerIDINVALID,
"selectWindow",
"This stack's window is about to become active. E.g. the window is brought to front. Not sent to floating palette windows.",
"",
"card",
0
},
{
EHandlerEntryCommand,
kLEOHandlerIDINVALID,
"closeStack",
"The current stack is about to change, last chance for clean-up.",
"",
"card",
0

0 comments on commit 1dfd086

Please sign in to comment.