C# Class Vidka.Core.EditorLogic

Inheritance: ISomeCommonEditorOperations
Afficher le fichier Open project: miktemk/VidkaEditor Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public AddUndableAction_andFireRedo ( Vidka.Core.UndoableAction action ) : void
action Vidka.Core.UndoableAction
Résultat void

AppendToConsole() public méthode

public AppendToConsole ( VidkaConsoleLogLevel level, string s ) : void
level VidkaConsoleLogLevel
s string
Résultat void

CancelDragDrop() public méthode

public CancelDragDrop ( ) : void
Résultat void

CheckRawDumpFolderIsOkAndGiveItToMe() public méthode

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

ControlPressed() public méthode

public ControlPressed ( ) : void
Résultat void

CopyCurClipToClipboard() public méthode

public CopyCurClipToClipboard ( ) : void
Résultat void

CutCurClipToClipboard() public méthode

public CutCurClipToClipboard ( ) : void
Résultat void

DialogConfirm() public méthode

public DialogConfirm ( string title, string question ) : bool
title string
question string
Résultat bool

DialogError() public méthode

public DialogError ( string title, string text ) : void
title string
text string
Résultat void

EditorLogic() public méthode

public EditorLogic ( IVideoShitbox editor, IVideoPlayer videoPlayer, IAudioPlayer playerAudio ) : System
editor IVideoShitbox
videoPlayer IVideoPlayer
playerAudio IAudioPlayer
Résultat System

EnterPressed() public méthode

public EnterPressed ( ) : void
Résultat void

EscapePressed() public méthode

public EscapePressed ( ) : void
Résultat void

Fire_PleaseSetFormTitle() public méthode

public Fire_PleaseSetFormTitle ( string title ) : void
title string
Résultat void

Fire_PleaseSetPlayerAbsPosition() public méthode

public Fire_PleaseSetPlayerAbsPosition ( PreviewPlayerAbsoluteLocation location ) : void
location PreviewPlayerAbsoluteLocation
Résultat void

Fire_PleaseToggleConsoleVisibility() public méthode

public Fire_PleaseToggleConsoleVisibility ( ) : void
Résultat void

Fire_PleaseTogglePreviewMode() public méthode

public Fire_PleaseTogglePreviewMode ( ) : void
Résultat void

Fire_ProjectUpdated_AsFarAsMenusAreConcerned() public méthode

public Fire_ProjectUpdated_AsFarAsMenusAreConcerned ( ) : void
Résultat void

GetHorizontalScrollBarHeight() public méthode

public GetHorizontalScrollBarHeight ( ) : int
Résultat int

InvokeOpByName() public méthode

public InvokeOpByName ( string name ) : void
name string
Résultat void

KeyPressed() public méthode

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

LeftRightArrowKeys() public méthode

public LeftRightArrowKeys ( Keys keyData ) : void
keyData Keys
Résultat void

LoadProjFromFile() public méthode

public LoadProjFromFile ( string filename ) : void
filename string
Résultat void

MediaFileDragDrop() public méthode

public MediaFileDragDrop ( string filenames ) : void
filenames string
Résultat void

MediaFileDragEnter() public méthode

public MediaFileDragEnter ( string filenames, int w ) : void
filenames string
w int
Résultat void

MediaFileDragMove() public méthode

public MediaFileDragMove ( int x ) : void
x int
Résultat void

MouseDragEnd() public méthode

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
Résultat void

MouseDragStart() public méthode

public MouseDragStart ( MouseButtons button, int x, int y, int w, int h ) : void
button MouseButtons
x int
y int
w int
h int
Résultat void

MouseDragged() public méthode

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
Résultat void

MouseLeave() public méthode

public MouseLeave ( ) : void
Résultat void

MouseMoved() public méthode

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
Résultat void

NewProjectPlease() public méthode

public NewProjectPlease ( ) : void
Résultat void

OpenTriggered() public méthode

public OpenTriggered ( ) : void
Résultat void

PasteClipFromClipboard() public méthode

public PasteClipFromClipboard ( ) : void
Résultat void

PlayPause() public méthode

public PlayPause ( bool onlyLockedClips = false ) : void
onlyLockedClips bool
Résultat void

Redo() public méthode

public Redo ( ) : void
Résultat void

RenderSegment() public méthode

public RenderSegment ( int index ) : void
index int
Résultat void

ReplaceClip() public méthode

public ReplaceClip ( VidkaClip clip, VidkaClip newClip ) : void
clip Vidka.Core.Model.VidkaClip
newClip Vidka.Core.Model.VidkaClip
Résultat void

SaveAsTriggered() public méthode

public SaveAsTriggered ( ) : void
Résultat void

SaveTriggered() public méthode

public SaveTriggered ( ) : void
Résultat void

SetCurrentVideoClip_ForceRepaint() public méthode

public SetCurrentVideoClip_ForceRepaint ( VidkaClipVideoAbstract clip ) : void
clip Vidka.Core.Model.VidkaClipVideoAbstract
Résultat void

SetFrameMarker_0_ForceRepaint() public méthode

Used when HOME key is pressed
public SetFrameMarker_0_ForceRepaint ( ) : void
Résultat void

SetFrameMarker_End_ForceRepaint() public méthode

public SetFrameMarker_End_ForceRepaint ( ) : void
Résultat void

SetFrameMarker_ForceRepaint() public méthode

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

SetFrameMarker_ShowFrameInPlayer() public méthode

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
Résultat long

SetPreviewPlayer() public méthode

public SetPreviewPlayer ( IVideoPlayer videoPlayer ) : void
videoPlayer IVideoPlayer
Résultat void

ShiftPressed() public méthode

public ShiftPressed ( ) : void
Résultat void

ShowFrameInVideoPlayer() public méthode

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

ShowWhereTheClipIsUsed() public méthode

public ShowWhereTheClipIsUsed ( ) : void
Résultat void

StopAllPlayback() public méthode

public StopAllPlayback ( ) : void
Résultat void

UiInitialized() public méthode

public UiInitialized ( ) : void
Résultat void

Undo() public méthode

public Undo ( ) : void
Résultat void

UpdateCanvasWidthFromProjAndDimdim() public méthode

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

ZoomIn() public méthode

public ZoomIn ( int width ) : void
width int
Résultat void

ZoomOut() public méthode

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

checkForErrors() public méthode

public checkForErrors ( ) : void
Résultat void

cxzxc() public méthode

public cxzxc ( string text ) : void
text string
Résultat void

deleteAllNonlockedClips() public méthode

public deleteAllNonlockedClips ( ) : void
Résultat void

eeee() public méthode

public eeee ( string text ) : void
text string
Résultat void

iiii() public méthode

public iiii ( string text ) : void
text string
Résultat void

setScrollX() public méthode

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