C# 클래스 Vidka.Core.EditorLogic

상속: ISomeCommonEditorOperations
파일 보기 프로젝트 열기: miktemk/VidkaEditor 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

AddUndableAction_andFireRedo() 공개 메소드

public AddUndableAction_andFireRedo ( Vidka.Core.UndoableAction action ) : void
action Vidka.Core.UndoableAction
리턴 void

AppendToConsole() 공개 메소드

public AppendToConsole ( VidkaConsoleLogLevel level, string s ) : void
level VidkaConsoleLogLevel
s string
리턴 void

CancelDragDrop() 공개 메소드

public CancelDragDrop ( ) : void
리턴 void

CheckRawDumpFolderIsOkAndGiveItToMe() 공개 메소드

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

ControlPressed() 공개 메소드

public ControlPressed ( ) : void
리턴 void

CopyCurClipToClipboard() 공개 메소드

public CopyCurClipToClipboard ( ) : void
리턴 void

CutCurClipToClipboard() 공개 메소드

public CutCurClipToClipboard ( ) : void
리턴 void

DialogConfirm() 공개 메소드

public DialogConfirm ( string title, string question ) : bool
title string
question string
리턴 bool

DialogError() 공개 메소드

public DialogError ( string title, string text ) : void
title string
text string
리턴 void

EditorLogic() 공개 메소드

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

EnterPressed() 공개 메소드

public EnterPressed ( ) : void
리턴 void

EscapePressed() 공개 메소드

public EscapePressed ( ) : void
리턴 void

Fire_PleaseSetFormTitle() 공개 메소드

public Fire_PleaseSetFormTitle ( string title ) : void
title string
리턴 void

Fire_PleaseSetPlayerAbsPosition() 공개 메소드

public Fire_PleaseSetPlayerAbsPosition ( PreviewPlayerAbsoluteLocation location ) : void
location PreviewPlayerAbsoluteLocation
리턴 void

Fire_PleaseToggleConsoleVisibility() 공개 메소드

public Fire_PleaseToggleConsoleVisibility ( ) : void
리턴 void

Fire_PleaseTogglePreviewMode() 공개 메소드

public Fire_PleaseTogglePreviewMode ( ) : void
리턴 void

Fire_ProjectUpdated_AsFarAsMenusAreConcerned() 공개 메소드

public Fire_ProjectUpdated_AsFarAsMenusAreConcerned ( ) : void
리턴 void

GetHorizontalScrollBarHeight() 공개 메소드

public GetHorizontalScrollBarHeight ( ) : int
리턴 int

InvokeOpByName() 공개 메소드

public InvokeOpByName ( string name ) : void
name string
리턴 void

KeyPressed() 공개 메소드

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

LeftRightArrowKeys() 공개 메소드

public LeftRightArrowKeys ( Keys keyData ) : void
keyData Keys
리턴 void

LoadProjFromFile() 공개 메소드

public LoadProjFromFile ( string filename ) : void
filename string
리턴 void

MediaFileDragDrop() 공개 메소드

public MediaFileDragDrop ( string filenames ) : void
filenames string
리턴 void

MediaFileDragEnter() 공개 메소드

public MediaFileDragEnter ( string filenames, int w ) : void
filenames string
w int
리턴 void

MediaFileDragMove() 공개 메소드

public MediaFileDragMove ( int x ) : void
x int
리턴 void

MouseDragEnd() 공개 메소드

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
리턴 void

MouseDragStart() 공개 메소드

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

MouseDragged() 공개 메소드

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
리턴 void

MouseLeave() 공개 메소드

public MouseLeave ( ) : void
리턴 void

MouseMoved() 공개 메소드

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
리턴 void

NewProjectPlease() 공개 메소드

public NewProjectPlease ( ) : void
리턴 void

OpenTriggered() 공개 메소드

public OpenTriggered ( ) : void
리턴 void

PasteClipFromClipboard() 공개 메소드

public PasteClipFromClipboard ( ) : void
리턴 void

PlayPause() 공개 메소드

public PlayPause ( bool onlyLockedClips = false ) : void
onlyLockedClips bool
리턴 void

Redo() 공개 메소드

public Redo ( ) : void
리턴 void

RenderSegment() 공개 메소드

public RenderSegment ( int index ) : void
index int
리턴 void

ReplaceClip() 공개 메소드

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

SaveAsTriggered() 공개 메소드

public SaveAsTriggered ( ) : void
리턴 void

SaveTriggered() 공개 메소드

public SaveTriggered ( ) : void
리턴 void

SetCurrentVideoClip_ForceRepaint() 공개 메소드

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

SetFrameMarker_0_ForceRepaint() 공개 메소드

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

SetFrameMarker_End_ForceRepaint() 공개 메소드

public SetFrameMarker_End_ForceRepaint ( ) : void
리턴 void

SetFrameMarker_ForceRepaint() 공개 메소드

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

SetFrameMarker_ShowFrameInPlayer() 공개 메소드

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
리턴 long

SetPreviewPlayer() 공개 메소드

public SetPreviewPlayer ( IVideoPlayer videoPlayer ) : void
videoPlayer IVideoPlayer
리턴 void

ShiftPressed() 공개 메소드

public ShiftPressed ( ) : void
리턴 void

ShowFrameInVideoPlayer() 공개 메소드

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

ShowWhereTheClipIsUsed() 공개 메소드

public ShowWhereTheClipIsUsed ( ) : void
리턴 void

StopAllPlayback() 공개 메소드

public StopAllPlayback ( ) : void
리턴 void

UiInitialized() 공개 메소드

public UiInitialized ( ) : void
리턴 void

Undo() 공개 메소드

public Undo ( ) : void
리턴 void

UpdateCanvasWidthFromProjAndDimdim() 공개 메소드

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

ZoomIn() 공개 메소드

public ZoomIn ( int width ) : void
width int
리턴 void

ZoomOut() 공개 메소드

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

checkForErrors() 공개 메소드

public checkForErrors ( ) : void
리턴 void

cxzxc() 공개 메소드

public cxzxc ( string text ) : void
text string
리턴 void

deleteAllNonlockedClips() 공개 메소드

public deleteAllNonlockedClips ( ) : void
리턴 void

eeee() 공개 메소드

public eeee ( string text ) : void
text string
리턴 void

iiii() 공개 메소드

public iiii ( string text ) : void
text string
리턴 void

setScrollX() 공개 메소드

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