C# Class CatEye.UI.Base.ExtendedStage

Inheritance: CatEye.Core.Stage
Exibir arquivo Open project: bigfatbrowncat/CatEye Class Usage Examples

Protected Properties

Property Type Description
_Holders IStageOperationHolder>.Dictionary

Public Methods

Method Description
AskLoadImage ( string filename, int downscale_by ) : void
AskUpdate ( ) : void
AskUpdate ( bool processImage ) : void
CreateAndAddNewItem ( Type sot ) : StageOperationParameters
DrawEditor ( IBitmapView target ) : void
ExtendedStage ( StageOperationFactory stageOperationFactory, StageOperationParametersFactory stageOperationParametersFactoryFromID, StageOperationParametersEditorFactory SOParametersEditorFactory, StageOperationHolderFactory SOHolderFactory, BitmapCoreFactory imageLoader ) : System
LoadStage ( string filename ) : void
LoadStage ( string filename, bool setStageFilename ) : void
ProcessPending ( ) : void
ReportEditorMouseButton ( int x, int y, int width, int height, uint button_id, bool is_down ) : bool

Handles mouse button state change i.e. the user pushed or released the button. Base method should not be called when overridden.

ReportEditorMousePosition ( int x, int y, int width, int height ) : bool

Handles mouse position change. Base method should not be called when overridden.

SaveStage ( ) : void
SaveStage ( string filename ) : void

Protected Methods

Method Description
DoProcess ( ) : void
HandleOperationReportProgress ( object sender, ReportStageOperationProgressEventArgs e ) : void
HandleSohwDownTitleButtonClicked ( object sender, EventArgs e ) : void
HandleSohwEditButtonClicked ( object sender, EventArgs e ) : void
HandleSohwFreezeButtonClicked ( object sender, EventArgs e ) : void
HandleSohwOperationParametersEditorUserModified ( object sender, EventArgs e ) : void
HandleSohwRemoveButtonClicked ( object sender, EventArgs e ) : void
HandleSohwStageActiveButtonClicked ( object sender, EventArgs e ) : void
HandleSohwUpTitleButtonClicked ( object sender, EventArgs e ) : void
OnEditingOperationChanged ( ) : void
OnItemAdded ( StageOperationParameters item ) : void
OnItemChanged ( StageOperationParameters item ) : void
OnItemIndexChanged ( StageOperationParameters item ) : void
OnItemRemoved ( StageOperationParameters item ) : void
OnOperationDefrozen ( ) : void
OnOperationFrozen ( ) : void
OnViewNeedsUpdate ( ) : void
SetUIState ( UIState value ) : void
StageOperationByHolder ( IStageOperationHolder h ) : StageOperationParameters

Private Methods

Method Description
DoLoading ( ) : void

Method Details

AskLoadImage() public method

public AskLoadImage ( string filename, int downscale_by ) : void
filename string
downscale_by int
return void

AskUpdate() public method

public AskUpdate ( ) : void
return void

AskUpdate() public method

public AskUpdate ( bool processImage ) : void
processImage bool
return void

CreateAndAddNewItem() public method

public CreateAndAddNewItem ( Type sot ) : StageOperationParameters
sot System.Type
return StageOperationParameters

DoProcess() protected method

protected DoProcess ( ) : void
return void

DrawEditor() public method

public DrawEditor ( IBitmapView target ) : void
target IBitmapView
return void

ExtendedStage() public method

public ExtendedStage ( StageOperationFactory stageOperationFactory, StageOperationParametersFactory stageOperationParametersFactoryFromID, StageOperationParametersEditorFactory SOParametersEditorFactory, StageOperationHolderFactory SOHolderFactory, BitmapCoreFactory imageLoader ) : System
stageOperationFactory StageOperationFactory
stageOperationParametersFactoryFromID StageOperationParametersFactory
SOParametersEditorFactory StageOperationParametersEditorFactory
SOHolderFactory StageOperationHolderFactory
imageLoader BitmapCoreFactory
return System

HandleOperationReportProgress() protected method

protected HandleOperationReportProgress ( object sender, ReportStageOperationProgressEventArgs e ) : void
sender object
e CatEye.Core.ReportStageOperationProgressEventArgs
return void

HandleSohwDownTitleButtonClicked() protected method

protected HandleSohwDownTitleButtonClicked ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

HandleSohwEditButtonClicked() protected method

protected HandleSohwEditButtonClicked ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

HandleSohwFreezeButtonClicked() protected method

protected HandleSohwFreezeButtonClicked ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

HandleSohwOperationParametersEditorUserModified() protected method

protected HandleSohwOperationParametersEditorUserModified ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

HandleSohwRemoveButtonClicked() protected method

protected HandleSohwRemoveButtonClicked ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

HandleSohwStageActiveButtonClicked() protected method

protected HandleSohwStageActiveButtonClicked ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

HandleSohwUpTitleButtonClicked() protected method

protected HandleSohwUpTitleButtonClicked ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

LoadStage() public method

public LoadStage ( string filename ) : void
filename string
return void

LoadStage() public method

public LoadStage ( string filename, bool setStageFilename ) : void
filename string
setStageFilename bool
return void

OnEditingOperationChanged() protected method

protected OnEditingOperationChanged ( ) : void
return void

OnItemAdded() protected method

protected OnItemAdded ( StageOperationParameters item ) : void
item StageOperationParameters
return void

OnItemChanged() protected method

protected OnItemChanged ( StageOperationParameters item ) : void
item StageOperationParameters
return void

OnItemIndexChanged() protected method

protected OnItemIndexChanged ( StageOperationParameters item ) : void
item StageOperationParameters
return void

OnItemRemoved() protected method

protected OnItemRemoved ( StageOperationParameters item ) : void
item StageOperationParameters
return void

OnOperationDefrozen() protected method

protected OnOperationDefrozen ( ) : void
return void

OnOperationFrozen() protected method

protected OnOperationFrozen ( ) : void
return void

OnViewNeedsUpdate() protected method

protected OnViewNeedsUpdate ( ) : void
return void

ProcessPending() public method

public ProcessPending ( ) : void
return void

ReportEditorMouseButton() public method

Handles mouse button state change i.e. the user pushed or released the button. Base method should not be called when overridden.
public ReportEditorMouseButton ( int x, int y, int width, int height, uint button_id, bool is_down ) : bool
x int /// X coordinate from the left top corner of the image ///
y int /// Y coordinate from the left top corner of the image ///
width int
height int
button_id uint /// The button which state is changed. ///
is_down bool /// true if the button is down now, false if it's up. ///
return bool

ReportEditorMousePosition() public method

Handles mouse position change. Base method should not be called when overridden.
public ReportEditorMousePosition ( int x, int y, int width, int height ) : bool
x int
y int
width int
height int
return bool

SaveStage() public method

public SaveStage ( ) : void
return void

SaveStage() public method

public SaveStage ( string filename ) : void
filename string
return void

SetUIState() protected method

protected SetUIState ( UIState value ) : void
value UIState
return void

StageOperationByHolder() protected method

protected StageOperationByHolder ( IStageOperationHolder h ) : StageOperationParameters
h IStageOperationHolder
return StageOperationParameters

Property Details

_Holders protected_oe property

protected Dictionary _Holders
return IStageOperationHolder>.Dictionary