class
OverlayEditor
: public
IdrawEditor
(Return to index)
editor derived from
IdrawEditor
.
Type:
Instantiable
Base Classes:
public
IdrawEditor
Derived Classes
Include file:
OverlayUnidraw/oved.h
Description:
return pointer to default viewer.
Public:
virtual void
Annotate
(
OverlayComp
*)
invoke annotation dialog box for this component.
virtual void
AttrEdit
(
OverlayComp
*)
invoke dialog box for editing attribute list (property list) associated with this component.
void
ClearText
()
clear contents of text-editor.
virtual void
DoAutoNewFrame
()
empty method for use by multi-frame editors for creating a new frame when auto-new-frame is enabled.
virtual void
ExecuteCmd
(
Command
* cmd)
indirect command execution for distributed whiteboard mechanism. actual mechanism implemented in
ComEditor
.
virtual
Tool
*
GetCurTool
()
return pointer to current default tool.
virtual
OverlaysView
*
GetFrame
(int index=-1)
return current frame number. -1 unless multi-frame editor.
virtual void
InformComponents
()
inform components in the tree of the current editor.
boolean
IsClean
()
checks modified status flag.
ObservableText
*
MouseDocObservable
()
return pointer to observable text that contains current mouse documentation (a text string associated with the current tool).
virtual void
ReplaceComponent
(
Component
*)
set new component tree, informing them of their new editor, and delete old one.
virtual void
ResetStateVars
()
to be filled in by derived classses.
virtual void
SetComponent
(
Component
*)
set new component tree, informing them of their new editor.
virtual void
SetCurTool
(
Tool
*)
set current default tool.
void
SetText
()
set contents of text-editor.
EivTextEditor
*
TextEditor
()
return pointer to text-editor that holds current frame annotation.
void
UpdateText
(
OverlayComp
*, boolean update =true)
update contents of text-editor with frame annotation.
static void
add_comterp
(const char* name,
ComTerpServ
* comterp)
add
ComTerpServ
to static list.
static void
add_edlauncher
(const char* name, editor_launcher)
add editor launching function pointer to list.
static
ComTerpServ
*
comterp
(const char *)
get
ComTerpServ
by 'name' from static list.
static
ComTerpServ
*
comterp
(int symid)
get
ComTerpServ
by 'symid' from static list.
static
AttributeList
*
comterplist
()
return pointer to static list of
ComTerpServ
objects.
static editor_launcher
edlauncher
(const char *)
get editor launching function pointer by 'name'.
static editor_launcher
edlauncher
(int symid)
get editor launching function pointer by 'symid'.
static
AttributeList
*
edlauncherlist
()
return pointer to static list of editor launching function pointers.
static int
ncomterp
()
number of
ComTerpServ
objects in static list.
static int
nedlauncher
()
number of editor launching function pointers in static list.
static boolean
opaque_flag
()
return global flag indicating whether opaque tranformations are enabled.
OverlayKit
*
overlay_kit
()
return pointer to paired
OverlayKit
PtrLocState
*
ptrlocstate
()
state variable for displaying pointer location within document.
void
ptrlocstate
(
PtrLocState
* ptrlocstate)
set state variable for displaying pointer location within document.
Protected:
virtual
ComTerpServ
*
GetComTerp
()
return nil because this is not a
ComEditor
.
void
Init
(
OverlayComp
* = nil, const char* = "
OverlayEditor
")
construct empty component tree if necessary, and pass to
OverlayKit
for the rest of initialization process.
Interactor
*
Interior
()
lay out the
Interactor
based interior of a drawing editor.
virtual void
SetComTerp
(
ComTerpServ
* terp)
do nothing because this is not a
ComEditor
static
AttributeList
*
_comterplist
Tool
*
_curtool
static
AttributeList
*
_edlauncherlist
ObservableText
*
_mousedoc
OverlayKit
*
_overlay_kit
PtrLocState
*
_ptrlocstate
EivTextEditor
*
_texteditor
virtual
ComTerpServ
*
comterp
()
return nil because this is not a
ComEditor
.
virtual void
comterp
(
ComTerpServ
* terp)
do nothing because this is not a
ComEditor
OverlayPanner
*
make_panner
()
make panner/zoomer/slider buttons, paying attention to command line arguments/default resources for positioning and enable/disable hints.
int
panner_align
()
handle -panner_align or -pal command line argument.
Friend methods:
friend class
OverlayKit
(more documentation)