class
FrameEditor
: public
ComEditor
(Return to index)
ComEditor
specialized for multi-frame use.
Type:
Instantiable
Base Classes:
public
ComEditor
Derived Classes
Include file:
FrameUnidraw/frameeditor.h
Public:
virtual void
AddCommands
(
ComTerp
*)
add interpreter commands to
ComTerp
associated with this
ComEditor
.
boolean
AutoNewFrame
()
return flag which indicates a new frame should be automatically created whenever anything is imported.
void
ClearText
()
clear contents of text-editor.
virtual void
DoAutoNewFrame
()
virtual method which does the work of creating a new frame if flag is set.
FrameEditor
(
OverlayComp
*,
OverlayKit
* =
FrameKit
::Instance())
construct based on pre-existing
FrameIdrawComp
.
FrameEditor
(boolean initflag,
OverlayKit
* =
FrameKit
::Instance())
constructor for use of derived classes.
FrameEditor
(const char*,
OverlayKit
* =
FrameKit
::Instance())
construct from pathname of a flipbook document.
virtual
OverlaysView
*
GetFrame
(int index=-1)
return current frame.
void
Init
(
OverlayComp
* = nil, const char* = "
FrameEditor
")
virtual void
InitCommands
()
execute
Unidraw
commands as needed after
FrameEditor
is constructed.
virtual void
InitFrame
()
initialize multi-frame display mechanism.
int
OtherFrame
()
return index of previous (or secondary) frame.
void
OtherFrame
(int other_frame)
set index of previous (or secondary) frame.
void
SetFrame
(
FrameView
* f)
set current frame.
void
SetText
()
set contents of text-editor as frame annotation.
EivTextEditor
*
TextEditor
()
return pointer to text-editor that holds current frame annotation.
void
ToggleAutoNewFrame
()
toggle flag which indicates a new frame should be automatically created whenever anything is imported.
virtual void
Update
()
pass to
ComEditor
.
virtual void
UpdateFrame
(boolean txtupdate =true)
update state variables and text-editor display for current frame.
void
UpdateText
(
OverlayComp
*, boolean update =true)
update contents of text-editor with frame annotation.
FrameListState
*&
frameliststate
()
return reference to pointer to current-frame-count state variable
FrameNumberState
*&
framenumstate
()
return reference to pointer to current-frame-number state variable
virtual
~FrameEditor
()
Protected:
boolean
_autonewframe
int
_curr_other
FrameView
*
_currframe
FrameListState
*
_frameliststate
FrameNumberState
*
_framenumstate
int
_prev_other
FrameView
*
_prevframe
EivTextEditor
*
_texteditor
Friend methods:
friend
FrameKit
(more documentation)