NAME
--background
DESCRIPTION
This class is used for some fundamental message and event handling.
TAGS
SCCA_WindowTask (struct ScaWindowTask *) -- Scalos window task to
operate on.
Applicability is (ISG).
NAME SYNOPSIS
void DoMethod(obj,SCCM_AddToClipboard,struct ScaWindowTask *wt,
struct ScaIconNode *in, ULONG opcode);
FUNCTION
Adds an entry to the global Scalos copy/cut/paste clipboard.
INPUTS
wt - Scalos window the ScaIconNode belongs to.
in - IconNode defines the entry (file or directory).
opcode - determines what kind of operation is to applied to this entry.
SCCV_AddToClipboard_Copy - Entry will be copied ("copy").
SCCV_AddToClipboard_Move - Entry will be moved ("cut").
RESULT
NOTE
Entries which are to be moved/cut are visibly marked by drawing
their icons in a "shadowed" state. This marking is removed upon
excution of SCCM_ClearClipboard.
SEE ALSO
NAME SYNOPSIS
void DoMethod(obj,SCCM_ClearClipboard);
FUNCTION
Removes and frees all entries from the global Scalos copy/cut/paste
clipboard. Unmarks all files which have been visibly marked for
"cut" operation.
INPUTS
RESULT
SEE ALSO
NAME SYNOPSIS
CONST_STRPTR string = DoMethod(obj,SCCM_GetLocalizedString,
ULONG StringID);
FUNCTION
Get localized string from Scalos catalog.
INPUTS
StringID - numeric ID of localized Scalos string.
RESULT
string - Localized Scalos string
SEE ALSO
NAME SYNOPSIS
ULONG flag = DoMethod(obj,SCCM_HandleMessages);
FUNCTION
Calls main message handler for Root.
INPUTS
RESULT
ULONG flag <>0 signals window is to be closed.
SEE ALSO
NAME SYNOPSIS
ULONG flag = DoMethod(obj,SCCM_Message,struct IntuiMessage *Msg);
FUNCTION
Incoming messages get forwarded to the window by the
SCCM_HandleMessages message handler.
INPUTS
Msg - IntuiMessage to handle
RESULT
flag <>0 signals window is to be closed.
SEE ALSO
NAME SYNOPSIS
ULONG Success = DoMethod(obj,SCCM_RunProcess,APTR EntryPoint,
APTR Args,ULONG ArgSize,struct MsgPort *ReplyPort);
FUNCTION
Start some code as an asynchronous process. Optionally, wait
for process result.
INPUTS
void (*EntryPoint)(APTR Args, struct SM_RunProcess *) - Entry point for
new Routine. Parameter <Args> is a copy of the <Args> given in
the DoMethod() call.
Args - arguments for new Routine
ArgSize - byte size of (Args)
ReplyPort - Reply port for process message or
one of the following special constants:
SCCV_RunProcess_NoReply
SCCV_RunProcess_WaitReply
RESULT
Success - TRUE if process started successfully
FALSE if something went wrong
SEE ALSO
NAME SYNOPSIS
void DoMethod(obj,SCCM_Ping);
FUNCTION
Timer event. This is sent to windows if the wt_NeedsTimerFlag is set
and WSV_FlagF_NeedsTimerMsg in ws_Flags is set.
Timer events occur at a rate of about 1 per second.
INPUTS
RESULT
SEE ALSO