abstract classcamembert::View
sys::Obj fwt::Widget fwt::Pane fwt::ContentPane camembert::View
View is used to view/edit a file
- curPos
virtual Pos curPos()
Current caret position of view
- curSelection
virtual Str curSelection()
Current selected string or empty
- curStatus
virtual Str curStatus()
Current status string for status bar
- dirty
Bool dirty := false
The dirty state indicates if unsaved changes have been made to the view. Views should set dirty to true on modification. Dirty is automatically cleared onSave.
- file
const File file
- frame
Frame frame { private set }
- make
- makeBest
- onGoto
virtual Void onGoto(Item item)
If a space loads a view from a goto event, then this callback is made after the space has finished loading
- onMarks
virtual Void onMarks(Item[] marks)
Highlight marks
- onReady
virtual Void onReady()
Focus and ready for editing
- onSave
virtual Void onSave()
Save current state
- onUnload
virtual Void onUnload()
Callback to cleanup resources