C# Class Sphere.Core.Editor.EditorObject

Inheritance: System.Windows.Forms.UserControl
Mostra file Open project: Radnen/spherestudio

Public Methods

Method Description
Activate ( ) : void

Occurs when entering the control on the main dock panel.

Copy ( ) : void

Override this to add copy logic.

CreateNew ( ) : void

Override this to do something on new file.

Cut ( ) : void

Override this to add cut logic.

Deactivate ( ) : void

Occurs when leaving the control on the main dock panel.

LoadFile ( string filename ) : void

Override this to add custom file loading logic.

Paste ( ) : void

Override this to add paste logic.

Redo ( ) : void

Override this to add redo logic.

Restyle ( ) : void

Invoke the restyle callback.

Save ( ) : void

Override this to add custom saving logic.

SaveAs ( ) : void

Override this to add custom save as logic.

SaveLayout ( ) : void

Override this to save it's layout.

SelectAll ( ) : void

Override this to add select all logic.

SetTabText ( string text ) : void

Sets the tab text on the main dock panel.

Undo ( ) : void

Override this to add undo logic.

ZoomIn ( ) : void

Override this to add zoom in logic.

ZoomOut ( ) : void

Override this to add zoom out logic.

Protected Methods

Method Description
IsDirty ( ) : bool

Gets whether or not the file has been modified.

IsSaved ( ) : bool

Gets whether or not the file has a save path.

MakeDirty ( ) : void

Marks the document as modified if it already hasn't.

Method Details

Activate() public method

Occurs when entering the control on the main dock panel.
public Activate ( ) : void
return void

Copy() public method

Override this to add copy logic.
public Copy ( ) : void
return void

CreateNew() public method

Override this to do something on new file.
public CreateNew ( ) : void
return void

Cut() public method

Override this to add cut logic.
public Cut ( ) : void
return void

Deactivate() public method

Occurs when leaving the control on the main dock panel.
public Deactivate ( ) : void
return void

IsDirty() protected method

Gets whether or not the file has been modified.
protected IsDirty ( ) : bool
return bool

IsSaved() protected method

Gets whether or not the file has a save path.
protected IsSaved ( ) : bool
return bool

LoadFile() public method

Override this to add custom file loading logic.
public LoadFile ( string filename ) : void
filename string
return void

MakeDirty() protected method

Marks the document as modified if it already hasn't.
protected MakeDirty ( ) : void
return void

Paste() public method

Override this to add paste logic.
public Paste ( ) : void
return void

Redo() public method

Override this to add redo logic.
public Redo ( ) : void
return void

Restyle() public method

Invoke the restyle callback.
public Restyle ( ) : void
return void

Save() public method

Override this to add custom saving logic.
public Save ( ) : void
return void

SaveAs() public method

Override this to add custom save as logic.
public SaveAs ( ) : void
return void

SaveLayout() public method

Override this to save it's layout.
public SaveLayout ( ) : void
return void

SelectAll() public method

Override this to add select all logic.
public SelectAll ( ) : void
return void

SetTabText() public method

Sets the tab text on the main dock panel.
public SetTabText ( string text ) : void
text string The title of this editor.
return void

Undo() public method

Override this to add undo logic.
public Undo ( ) : void
return void

ZoomIn() public method

Override this to add zoom in logic.
public ZoomIn ( ) : void
return void

ZoomOut() public method

Override this to add zoom out logic.
public ZoomOut ( ) : void
return void