C# Class Vidka.Core.EditorLogic

Inheritance: ISomeCommonEditorOperations
Mostrar archivo Open project: miktemk/VidkaEditor Class Usage Examples

Public Methods

Method Description
AddUndableAction_andFireRedo ( Vidka.Core.UndoableAction action ) : void
AppendToConsole ( VidkaConsoleLogLevel level, string s ) : void
CancelDragDrop ( ) : void
CheckRawDumpFolderIsOkAndGiveItToMe ( ) : string

should be called 1 time, otherwise we might be seeing a lot of that dialog!

ControlPressed ( ) : void
CopyCurClipToClipboard ( ) : void
CutCurClipToClipboard ( ) : void
DialogConfirm ( string title, string question ) : bool
DialogError ( string title, string text ) : void
EditorLogic ( IVideoShitbox editor, IVideoPlayer videoPlayer, IAudioPlayer playerAudio ) : System
EnterPressed ( ) : void
EscapePressed ( ) : void
Fire_PleaseSetFormTitle ( string title ) : void
Fire_PleaseSetPlayerAbsPosition ( PreviewPlayerAbsoluteLocation location ) : void
Fire_PleaseToggleConsoleVisibility ( ) : void
Fire_PleaseTogglePreviewMode ( ) : void
Fire_ProjectUpdated_AsFarAsMenusAreConcerned ( ) : void
GetHorizontalScrollBarHeight ( ) : int
InvokeOpByName ( string name ) : void
KeyPressed ( KeyEventArgs e ) : void

Called on ANY key press

LeftRightArrowKeys ( Keys keyData ) : void
LoadProjFromFile ( string filename ) : void
MediaFileDragDrop ( string filenames ) : void
MediaFileDragEnter ( string filenames, int w ) : void
MediaFileDragMove ( int x ) : void
MouseDragEnd ( int x, int y, int deltaX, int deltaY, int w, int h ) : void
MouseDragStart ( MouseButtons button, int x, int y, int w, int h ) : void
MouseDragged ( int x, int y, int deltaX, int deltaY, int w, int h ) : void
MouseLeave ( ) : void
MouseMoved ( int x, int y, int w, int h ) : void
NewProjectPlease ( ) : void
OpenTriggered ( ) : void
PasteClipFromClipboard ( ) : void
PlayPause ( bool onlyLockedClips = false ) : void
Redo ( ) : void
RenderSegment ( int index ) : void
ReplaceClip ( VidkaClip clip, VidkaClip newClip ) : void
SaveAsTriggered ( ) : void
SaveTriggered ( ) : void
SetCurrentVideoClip_ForceRepaint ( VidkaClipVideoAbstract clip ) : void
SetFrameMarker_0_ForceRepaint ( ) : void

Used when HOME key is pressed

SetFrameMarker_End_ForceRepaint ( ) : void
SetFrameMarker_ForceRepaint ( long frame ) : void

Used during playback for animation of the marker (or cursor, if u like...)

SetFrameMarker_ShowFrameInPlayer ( long frame ) : long

Used from within this class, on mouse press, when arrow keys are pressed, by drag ops and other ops (e.g. or when a clip is deleted)

SetPreviewPlayer ( IVideoPlayer videoPlayer ) : void
ShiftPressed ( ) : void
ShowFrameInVideoPlayer ( long frame ) : void

Navigate to that frame in the damn AVI file and pause the damn WMP

ShowWhereTheClipIsUsed ( ) : void
StopAllPlayback ( ) : void
UiInitialized ( ) : void
Undo ( ) : void
UpdateCanvasWidthFromProjAndDimdim ( ) : void

Call this in ALL spots where proj length is subject to change

ZoomIn ( int width ) : void
ZoomOut ( int width ) : void

width parameter is needed here to prevent user from zooming out too much

checkForErrors ( ) : void
cxzxc ( string text ) : void
deleteAllNonlockedClips ( ) : void
eeee ( string text ) : void
iiii ( string text ) : void
setScrollX ( int x ) : void

Called by VideoShitbox when user scrolls with scrollbar or mousewheel

Private Methods

Method Description
ActivateCorrectOp ( bool>.Func trigger ) : void
AddUndoableAction_insertAudioClipAtMarkerPosition ( VidkaClipAudio newClip ) : void
ArrowKey2FrameDelta ( Keys keyData ) : long

returns 1, -1, MANY_FRAMES_STEP, -MANY_FRAMES_STEP

CapitulateCurOp ( ) : void

Reset gears to neutral... :P

CheckClipEasingCollision_easesTimeline ( int x, int y, VidkaClipVideoAbstract clip ) : void
CheckClipEasingCollision_mainTimeline ( int x, int y, VidkaClipVideoAbstract clip ) : void
CheckClipTrimCollision ( int x ) : void

Check trim mouse collision and set TrimHover in UiObjects. recycled lastCollision_x1 and lastCollision_x2 are used.

FireHandler ( VoidHandler x ) : void
SaveProject ( string filename ) : void
SetFileChanged ( bool changed ) : void
SetProj ( VidkaProj proj ) : void
SetupTmpProjForOriginalPlayback ( ) : VidkaProj
UpdateCanvasScrollXFromDimdim ( ) : void

Call this in ALL spots where scrollx is subject to change

___UiTransactionBegin ( ) : void

Call this at the begging of every method that potentially changes the state of UI

___UiTransactionEnd ( ) : void

Call this at the end of every method that potentially changes the state of UI

___Ui_stateChanged ( ) : void

Call this b/w _begin and _end to force repaint

___Ui_updateCanvasWidth ( int w ) : void

Call this to update canvas width (forces repaint)

___Ui_updateScrollX ( int scrollX ) : void

Call this to update scrollX (forces repaint)

dragAndDropMan_MetaReadyForDraggy ( string filename, VideoMetadataUseful meta ) : void
dragAndDropMan_MetaReadyForOutstandingAudio ( VidkaClipAudio aclip, VideoMetadataUseful meta ) : void
dragAndDropMan_MetaReadyForOutstandingVideo ( VidkaClipVideoAbstract vclip, VideoMetadataUseful meta ) : void
dragAndDropMan_PleaseUnlockThisFile ( string filename ) : void
dragAndDropMan_ThumbOrWaveReady ( ) : void
printFrameToConsole ( long frame ) : void
setCurFrameMarkerPositionToNextOrPrevClip ( Keys keyData ) : long

This is a marker-related function, so we keep it in the marker region

setProjToAllEditOps ( VidkaProj Proj ) : void

Calls setProj for all our EditOps. Call whenever Proj gets reassigned to

updateFrameOfViewFromMarker ( ) : void

Method Details

AddUndableAction_andFireRedo() public method

public AddUndableAction_andFireRedo ( Vidka.Core.UndoableAction action ) : void
action Vidka.Core.UndoableAction
return void

AppendToConsole() public method

public AppendToConsole ( VidkaConsoleLogLevel level, string s ) : void
level VidkaConsoleLogLevel
s string
return void

CancelDragDrop() public method

public CancelDragDrop ( ) : void
return void

CheckRawDumpFolderIsOkAndGiveItToMe() public method

should be called 1 time, otherwise we might be seeing a lot of that dialog!
public CheckRawDumpFolderIsOkAndGiveItToMe ( ) : string
return string

ControlPressed() public method

public ControlPressed ( ) : void
return void

CopyCurClipToClipboard() public method

public CopyCurClipToClipboard ( ) : void
return void

CutCurClipToClipboard() public method

public CutCurClipToClipboard ( ) : void
return void

DialogConfirm() public method

public DialogConfirm ( string title, string question ) : bool
title string
question string
return bool

DialogError() public method

public DialogError ( string title, string text ) : void
title string
text string
return void

EditorLogic() public method

public EditorLogic ( IVideoShitbox editor, IVideoPlayer videoPlayer, IAudioPlayer playerAudio ) : System
editor IVideoShitbox
videoPlayer IVideoPlayer
playerAudio IAudioPlayer
return System

EnterPressed() public method

public EnterPressed ( ) : void
return void

EscapePressed() public method

public EscapePressed ( ) : void
return void

Fire_PleaseSetFormTitle() public method

public Fire_PleaseSetFormTitle ( string title ) : void
title string
return void

Fire_PleaseSetPlayerAbsPosition() public method

public Fire_PleaseSetPlayerAbsPosition ( PreviewPlayerAbsoluteLocation location ) : void
location PreviewPlayerAbsoluteLocation
return void

Fire_PleaseToggleConsoleVisibility() public method

public Fire_PleaseToggleConsoleVisibility ( ) : void
return void

Fire_PleaseTogglePreviewMode() public method

public Fire_PleaseTogglePreviewMode ( ) : void
return void

Fire_ProjectUpdated_AsFarAsMenusAreConcerned() public method

public Fire_ProjectUpdated_AsFarAsMenusAreConcerned ( ) : void
return void

GetHorizontalScrollBarHeight() public method

public GetHorizontalScrollBarHeight ( ) : int
return int

InvokeOpByName() public method

public InvokeOpByName ( string name ) : void
name string
return void

KeyPressed() public method

Called on ANY key press
public KeyPressed ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
return void

LeftRightArrowKeys() public method

public LeftRightArrowKeys ( Keys keyData ) : void
keyData Keys
return void

LoadProjFromFile() public method

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

MediaFileDragDrop() public method

public MediaFileDragDrop ( string filenames ) : void
filenames string
return void

MediaFileDragEnter() public method

public MediaFileDragEnter ( string filenames, int w ) : void
filenames string
w int
return void

MediaFileDragMove() public method

public MediaFileDragMove ( int x ) : void
x int
return void

MouseDragEnd() public method

public MouseDragEnd ( int x, int y, int deltaX, int deltaY, int w, int h ) : void
x int
y int
deltaX int relative to where the mouse was pressed down
deltaY int relative to where the mouse was pressed down
w int
h int
return void

MouseDragStart() public method

public MouseDragStart ( MouseButtons button, int x, int y, int w, int h ) : void
button MouseButtons
x int
y int
w int
h int
return void

MouseDragged() public method

public MouseDragged ( int x, int y, int deltaX, int deltaY, int w, int h ) : void
x int
y int
deltaX int relative to where the mouse was pressed down
deltaY int relative to where the mouse was pressed down
w int
h int
return void

MouseLeave() public method

public MouseLeave ( ) : void
return void

MouseMoved() public method

public MouseMoved ( int x, int y, int w, int h ) : void
x int
y int
w int Width of the canvas
h int Height of the canvas
return void

NewProjectPlease() public method

public NewProjectPlease ( ) : void
return void

OpenTriggered() public method

public OpenTriggered ( ) : void
return void

PasteClipFromClipboard() public method

public PasteClipFromClipboard ( ) : void
return void

PlayPause() public method

public PlayPause ( bool onlyLockedClips = false ) : void
onlyLockedClips bool
return void

Redo() public method

public Redo ( ) : void
return void

RenderSegment() public method

public RenderSegment ( int index ) : void
index int
return void

ReplaceClip() public method

public ReplaceClip ( VidkaClip clip, VidkaClip newClip ) : void
clip Vidka.Core.Model.VidkaClip
newClip Vidka.Core.Model.VidkaClip
return void

SaveAsTriggered() public method

public SaveAsTriggered ( ) : void
return void

SaveTriggered() public method

public SaveTriggered ( ) : void
return void

SetCurrentVideoClip_ForceRepaint() public method

public SetCurrentVideoClip_ForceRepaint ( VidkaClipVideoAbstract clip ) : void
clip Vidka.Core.Model.VidkaClipVideoAbstract
return void

SetFrameMarker_0_ForceRepaint() public method

Used when HOME key is pressed
public SetFrameMarker_0_ForceRepaint ( ) : void
return void

SetFrameMarker_End_ForceRepaint() public method

public SetFrameMarker_End_ForceRepaint ( ) : void
return void

SetFrameMarker_ForceRepaint() public method

Used during playback for animation of the marker (or cursor, if u like...)
public SetFrameMarker_ForceRepaint ( long frame ) : void
frame long
return void

SetFrameMarker_ShowFrameInPlayer() public method

Used from within this class, on mouse press, when arrow keys are pressed, by drag ops and other ops (e.g. or when a clip is deleted)
public SetFrameMarker_ShowFrameInPlayer ( long frame ) : long
frame long
return long

SetPreviewPlayer() public method

public SetPreviewPlayer ( IVideoPlayer videoPlayer ) : void
videoPlayer IVideoPlayer
return void

ShiftPressed() public method

public ShiftPressed ( ) : void
return void

ShowFrameInVideoPlayer() public method

Navigate to that frame in the damn AVI file and pause the damn WMP
public ShowFrameInVideoPlayer ( long frame ) : void
frame long
return void

ShowWhereTheClipIsUsed() public method

public ShowWhereTheClipIsUsed ( ) : void
return void

StopAllPlayback() public method

public StopAllPlayback ( ) : void
return void

UiInitialized() public method

public UiInitialized ( ) : void
return void

Undo() public method

public Undo ( ) : void
return void

UpdateCanvasWidthFromProjAndDimdim() public method

Call this in ALL spots where proj length is subject to change
public UpdateCanvasWidthFromProjAndDimdim ( ) : void
return void

ZoomIn() public method

public ZoomIn ( int width ) : void
width int
return void

ZoomOut() public method

width parameter is needed here to prevent user from zooming out too much
public ZoomOut ( int width ) : void
width int
return void

checkForErrors() public method

public checkForErrors ( ) : void
return void

cxzxc() public method

public cxzxc ( string text ) : void
text string
return void

deleteAllNonlockedClips() public method

public deleteAllNonlockedClips ( ) : void
return void

eeee() public method

public eeee ( string text ) : void
text string
return void

iiii() public method

public iiii ( string text ) : void
text string
return void

setScrollX() public method

Called by VideoShitbox when user scrolls with scrollbar or mousewheel
public setScrollX ( int x ) : void
x int
return void