class
Unidraw
(Return to index)
singleton for coordinating and controlling a
Unidraw
application.
Type:
Instantiable
Derived Classes
Include file:
Unidraw/unidraw.h
Description:
man page
Public:
void
ClearHistory
(
Component
* = nil)
void
ClearHistory
(
Editor
*)
virtual void
Close
(
Editor
*)
delete editor
virtual void
CloseAll
()
virtual void
CloseDependents
(
Component
*)
boolean
Done
(
Iterator
)
virtual void
ExecuteCmd
(
Command
*)
indirection for command execution, will delete object
Editor
*
Find
(
Component
*)
Editor
*
FindAny
(
Component
*)
void
First
(
Iterator
&)
Catalog
*
GetCatalog
()
Editor
*
GetEditor
(
Iterator
)
int
GetHistoryLength
()
World
*
GetWorld
()
virtual void
Log
(
Command
*)
void
Next
(
Iterator
&)
virtual void
Open
(
Editor
*)
virtual boolean
Opened
(
Editor
*)
virtual void
Quit
()
void
Redo
(
Component
*, int = 1)
virtual void
Run
()
void
SetHistoryLength
(int)
void
Undo
(
Component
*, int = 1)
Unidraw
(
Catalog
*,
World
*)
Unidraw
(
Catalog
*, int& argc, char** argv,
OptionDesc
* = nil,
PropertyData
* = nil )
virtual void
Update
(boolean immediate = false)
boolean
alive
()
void
alive
(boolean)
boolean
updated
()
void
updated
(boolean)
virtual
~Unidraw
()
Protected:
void
ClearHistory
(
UList
*, int = 1)
void
DeleteComponent
(
Component
*)
void
DoUpdate
()
Editor
*
FindAny
(
Component
*,
UList
*)
Editor
*
FindAnyDead
(
Component
*)
void
GetHistory
(
Component
*,
UList
*& past,
UList
*& future)
void
Init
(
Catalog
*,
World
*)
void
InitAttributes
()
boolean
IsClean
(
Editor
*)
void
Mark
(
Editor
*)
virtual void
Process
()
void
Sweep
()
boolean
_alive
Catalog
*
_catalog
UList
*
_deadEditors
UList
*
_editors
int
_histlen
HistoryMap*
_histories
boolean
_updated
World
*
_world
Command
*
command
(
UList
*)
Editor
*
editor
(
UList
*)
UList
*
elem
(
Iterator
)
(more documentation)