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.
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
NumFrames
()
number of frames not counting background frame
int
OtherFrame
()
return index of previous (or secondary) frame.
void
OtherFrame
(int other_frame)
set index of previous (or secondary) frame.
int*
OtherFrames
()
return index of previous (or secondary) frames.
void
OtherFrames
(int* other_frames, int num_others)
set index of previous (or secondary) frames.
void
SetFrame
(
FrameView
* f)
set current frame.
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.
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
TelltaleState
*
_autonewframe_tts
int*
_curr_others
FrameView
*
_currframe
FrameListState
*
_frameliststate
FrameNumberState
*
_framenumstate
int
_num_curr_others
int
_num_prev_others
int*
_prev_others
FrameView
*
_prevframe
Friend methods:
friend
FrameKit
(more documentation)