[longomatch] Add more code formatting
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Add more code formatting
- Date: Tue, 31 Mar 2015 17:28:47 +0000 (UTC)
commit 95de35651240aab5d40d37317756d3f05f383232
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Thu Mar 19 11:05:40 2015 +0100
Add more code formatting
LongoMatch.Core/Common/Enums.cs | 172 ++++++++++++--------
LongoMatch.Core/Common/EventsBroker.cs | 4 +-
LongoMatch.Core/Handlers/Handlers.cs | 20 ++--
LongoMatch.Core/Handlers/Multimedia.cs | 40 +++---
LongoMatch.Core/Interfaces/GUI/IAnalysisWindow.cs | 28 +++-
LongoMatch.Core/Interfaces/GUI/IBusyDialog.cs | 7 +-
LongoMatch.Core/Interfaces/GUI/ICapturerBin.cs | 31 +++--
LongoMatch.Core/Interfaces/GUI/IGUIToolkit.cs | 92 ++++++-----
LongoMatch.Core/Interfaces/GUI/IPlayerBin.cs | 57 +++++--
.../Interfaces/GUI/IRenderingStateBar.cs | 13 +-
LongoMatch.Core/Interfaces/IDataBaseManager.cs | 5 +
LongoMatch.Core/Interfaces/IDatabase.cs | 44 +++---
LongoMatch.Core/Interfaces/IIDObject.cs | 2 +-
LongoMatch.Core/Interfaces/IPlaylistElement.cs | 4 +-
14 files changed, 316 insertions(+), 203 deletions(-)
---
diff --git a/LongoMatch.Core/Common/Enums.cs b/LongoMatch.Core/Common/Enums.cs
index 223b360..67eab22 100644
--- a/LongoMatch.Core/Common/Enums.cs
+++ b/LongoMatch.Core/Common/Enums.cs
@@ -21,14 +21,16 @@ using System;
namespace LongoMatch.Core.Common
{
- public enum SerializationType {
+ public enum SerializationType
+ {
Binary,
Xml,
Json
}
-
- public enum ProjectType {
+
+ public enum ProjectType
+ {
CaptureProject,
URICaptureProject,
FakeCaptureProject,
@@ -36,32 +38,37 @@ namespace LongoMatch.Core.Common
EditProject,
None,
}
-
- public enum CapturerType {
+
+ public enum CapturerType
+ {
Fake,
Live,
}
- public enum EndCaptureResponse {
+ public enum EndCaptureResponse
+ {
Return = 234,
Quit = 235,
Save = 236
}
- public enum TagMode {
+ public enum TagMode
+ {
Predefined,
Free,
Edit
}
- public enum SortMethodType {
+ public enum SortMethodType
+ {
SortByName = 0,
SortByStartTime = 1,
SortByStopTime = 2,
SortByDuration = 3
}
- public enum ProjectSortType {
+ public enum ProjectSortType
+ {
SortByName = 0,
SortByDate = 1,
SortByModificationDate = 2,
@@ -76,16 +83,18 @@ namespace LongoMatch.Core.Common
VISITOR = 2,
BOTH = 3,
}
-
- public enum JobState {
+
+ public enum JobState
+ {
NotStarted,
Running,
Finished,
Cancelled,
Error,
}
-
- public enum VideoEncoderType {
+
+ public enum VideoEncoderType
+ {
Mpeg4,
Xvid,
Theora,
@@ -94,13 +103,15 @@ namespace LongoMatch.Core.Common
VP8,
}
- public enum AudioEncoderType {
+ public enum AudioEncoderType
+ {
Mp3,
Aac,
Vorbis,
}
- public enum VideoMuxerType {
+ public enum VideoMuxerType
+ {
Avi,
Mp4,
Matroska,
@@ -108,8 +119,9 @@ namespace LongoMatch.Core.Common
MpegPS,
WebM,
}
-
- public enum DrawTool {
+
+ public enum DrawTool
+ {
Pen,
Line,
Ellipse,
@@ -124,20 +136,22 @@ namespace LongoMatch.Core.Common
Text,
Counter,
}
-
- public enum CaptureSourceType {
+
+ public enum CaptureSourceType
+ {
None,
DV,
System,
URI,
}
-
- public enum GameUnitEventType {
- Start,
+
+ public enum GameUnitEventType
+ {
+ Start,
Stop,
Cancel
}
-
+
public enum EditorState
{
START = 0,
@@ -145,13 +159,15 @@ namespace LongoMatch.Core.Common
CANCELED = -1,
ERROR = -2
}
-
- public enum JobType {
+
+ public enum JobType
+ {
VideoEdition,
VideoConversion
}
-
- public enum VideoAnalysisMode {
+
+ public enum VideoAnalysisMode
+ {
PredefinedTagging,
ManualTagging,
Timeline,
@@ -161,7 +177,8 @@ namespace LongoMatch.Core.Common
/// <summary>
/// Node selection mode.
/// </summary>
- public enum NodeSelectionMode {
+ public enum NodeSelectionMode
+ {
/// <summary>
/// The node is not selectable at all.
/// </summary>
@@ -183,7 +200,8 @@ namespace LongoMatch.Core.Common
/// <summary>
/// Node dragging mode.
/// </summary>
- public enum NodeDraggingMode {
+ public enum NodeDraggingMode
+ {
/// <summary>
/// The node is not draggable at all.
/// </summary>
@@ -201,8 +219,9 @@ namespace LongoMatch.Core.Common
/// </summary>
All,
}
-
- public enum SelectionPosition {
+
+ public enum SelectionPosition
+ {
TopLeft,
TopRight,
BottomLeft,
@@ -219,102 +238,117 @@ namespace LongoMatch.Core.Common
CircleBorder,
All,
}
-
- public enum LineStyle {
+
+ public enum LineStyle
+ {
Normal,
Dashed,
Pointed
}
-
- public enum LineType {
+
+ public enum LineType
+ {
Simple,
Arrow,
DoubleArrow,
Dot,
DoubleDot
}
-
- public enum FontSlant {
+
+ public enum FontSlant
+ {
Italic,
Normal,
Oblique,
}
-
- public enum FontWeight {
+
+ public enum FontWeight
+ {
Light,
Normal,
Bold
}
-
- public enum FontAlignment {
+
+ public enum FontAlignment
+ {
Left,
Right,
Center,
}
-
- public enum ButtonType {
+
+ public enum ButtonType
+ {
None,
Left,
Center,
Right
}
-
- public enum ButtonModifier {
+
+ public enum ButtonModifier
+ {
None,
Shift,
Control,
Meta
}
-
- public enum CursorType {
+
+ public enum CursorType
+ {
Arrow,
DoubleArrow,
Selection,
Cross,
}
-
- public enum MultiSelectionMode {
+
+ public enum MultiSelectionMode
+ {
Single,
Multiple,
MultipleWithModifier,
}
-
- public enum PlayersIconSize {
+
+ public enum PlayersIconSize
+ {
Smallest = 20,
Small = 30,
Medium = 40,
Large = 50,
ExtraLarge = 60
}
-
- public enum FieldPositionType {
+
+ public enum FieldPositionType
+ {
Field,
HalfField,
Goal
}
-
- public enum CardShape {
+
+ public enum CardShape
+ {
Rectangle,
Triangle,
Circle
}
-
- public enum FitMode {
+
+ public enum FitMode
+ {
Fill,
Fit,
Original
}
-
+
[Flags]
- public enum CellState {
+ public enum CellState
+ {
Selected = 1,
Prelit = 2,
Insensitive = 4,
Sorted = 8,
Focused = 16
}
-
- public enum SubstitutionReason {
+
+ public enum SubstitutionReason
+ {
PlayersSubstitution,
PositionChange,
BenchPositionChange,
@@ -322,21 +356,24 @@ namespace LongoMatch.Core.Common
TemporalExclusion,
Exclusion,
}
-
- public enum FileChooserMode {
+
+ public enum FileChooserMode
+ {
MediaFile,
File,
Directory,
}
- public enum MediaFileAngle {
+ public enum MediaFileAngle
+ {
Angle1,
Angle2,
Angle3,
Angle4,
}
-
- public enum KeyAction {
+
+ public enum KeyAction
+ {
None,
TogglePlay,
FrameUp,
@@ -365,7 +402,8 @@ namespace LongoMatch.Core.Common
FitTimeline,
}
- public enum ProjectSortMethod {
+ public enum ProjectSortMethod
+ {
Name,
Date,
ModificationDate,
diff --git a/LongoMatch.Core/Common/EventsBroker.cs b/LongoMatch.Core/Common/EventsBroker.cs
index 070b56e..c36ea64 100644
--- a/LongoMatch.Core/Common/EventsBroker.cs
+++ b/LongoMatch.Core/Common/EventsBroker.cs
@@ -385,10 +385,10 @@ namespace LongoMatch.Core.Common
}
}
- public void EmitDrawFrame (TimelineEvent play, int drawingIndex, MediaFileAngle angle, bool
current)
+ public void EmitDrawFrame (TimelineEvent play, int drawingIndex, int cameraIndex, bool
current)
{
if (DrawFrame != null) {
- DrawFrame (play, drawingIndex, angle, current);
+ DrawFrame (play, drawingIndex, cameraIndex, current);
}
}
diff --git a/LongoMatch.Core/Handlers/Handlers.cs b/LongoMatch.Core/Handlers/Handlers.cs
index 4c1d688..30dc2df 100644
--- a/LongoMatch.Core/Handlers/Handlers.cs
+++ b/LongoMatch.Core/Handlers/Handlers.cs
@@ -36,14 +36,14 @@ namespace LongoMatch.Core.Handlers
/* An event has been created */
public delegate void EventCreatedHandler (TimelineEvent evt);
/* A new play needs to be create for a specific category at the current play time */
- public delegate void NewEventHandler (EventType eventType,List<Player> players, TeamType team,
- List<Tag> tags,Time start,Time stop, Time EventTime,
- Score score, PenaltyCard card);
+ public delegate void NewEventHandler (EventType eventType,List<Player> players,TeamType team,
+ List<Tag> tags,Time start,Time stop,Time EventTime,
+ Score score,PenaltyCard card);
/* Add a new play to the current project */
public delegate void NewTimelineEventHandler (TimelineEvent evt);
/* An event was edited */
- public delegate void TimeNodeChangedHandler (TimeNode tNode, Time time);
- public delegate void TimerNodeAddedHandler (Timer timer, TimeNode tn);
+ public delegate void TimeNodeChangedHandler (TimeNode tNode,Time time);
+ public delegate void TimerNodeAddedHandler (Timer timer,TimeNode tn);
/* Edit EventType properties */
public delegate void EditEventTypeHandler (EventType cat);
/* A list of plays needs to be deleted */
@@ -114,13 +114,13 @@ namespace LongoMatch.Core.Handlers
public delegate void PlayerPropertiesHandler (Player player);
public delegate void PlayersPropertiesHandler (List<Player> players);
/* Players selection */
- public delegate void PlayersSubstitutionHandler (Team team, Player p1, Player p2, SubstitutionReason
reason, Time time);
+ public delegate void PlayersSubstitutionHandler (Team team,Player p1,Player p2,SubstitutionReason
reason,Time time);
public delegate void PlayersSelectionChangedHandler (List<Player> players);
public delegate void TeamSelectionChangedHandler (TeamType team);
/* A list of projects have been selected */
public delegate void ProjectsSelectedHandler (List<ProjectDescription> projects);
public delegate void ProjectSelectedHandler (ProjectDescription project);
- public delegate void KeyHandler (object sender, HotKey key);
+ public delegate void KeyHandler (object sender,HotKey key);
/* The plays filter was updated */
public delegate void FilterUpdatedHandler ();
public delegate void DetachPlayerHandler ();
@@ -133,12 +133,12 @@ namespace LongoMatch.Core.Handlers
public delegate void TagSubcategoriesChangedHandler (bool tagsubcategories);
public delegate void ShowTimelineMenuHandler (List<TimelineEvent> plays,EventType cat,Time time);
public delegate void ShowTimersMenuHandler (List<TimeNode> timenodes);
- public delegate void ShowTimerMenuHandler (Timer timer, Time time);
+ public delegate void ShowTimerMenuHandler (Timer timer,Time time);
public delegate void ShowTaggerMenuHandler (List<TimelineEvent> plays);
public delegate void ShowDrawToolMenuHandler (IBlackboardObject drawable);
- public delegate void ConfigureDrawingObjectHandler (IBlackboardObject drawable, DrawTool tool);
+ public delegate void ConfigureDrawingObjectHandler (IBlackboardObject drawable,DrawTool tool);
public delegate void DrawableChangedHandler (IBlackboardObject drawable);
public delegate void BackEventHandle ();
/* Camera dragging */
- public delegate void CameraDraggedHandler (MediaFile file, TimeNode timenode);
+ public delegate void CameraDraggedHandler (MediaFile file,TimeNode timenode);
}
diff --git a/LongoMatch.Core/Handlers/Multimedia.cs b/LongoMatch.Core/Handlers/Multimedia.cs
index 3a0ea56..6d9e2ce 100644
--- a/LongoMatch.Core/Handlers/Multimedia.cs
+++ b/LongoMatch.Core/Handlers/Multimedia.cs
@@ -23,27 +23,27 @@ using LongoMatch.Core.Store;
namespace LongoMatch.Core.Handlers
{
- public delegate void PlayListSegmentDoneHandler();
- public delegate void SegmentClosedHandler();
- public delegate void SegmentDoneHandler();
- public delegate void SeekEventHandler(Time pos, bool accurate);
- public delegate void TogglePlayEventHandler(bool playing);
- public delegate void VolumeChangedHandler(double level);
- public delegate void NextButtonClickedHandler();
- public delegate void PrevButtonClickedHandler();
- public delegate void ProgressHandler(float progress);
- public delegate void FramesProgressHandler(int actual, int total, Image frame);
- public delegate void DrawFrameHandler (TimelineEvent play, int drawingIndex, MediaFileAngle angle,
bool current);
- public delegate void EllpasedTimeHandler(Time ellapsedTime);
+ public delegate void PlayListSegmentDoneHandler ();
+ public delegate void SegmentClosedHandler ();
+ public delegate void SegmentDoneHandler ();
+ public delegate void SeekEventHandler (Time pos,bool accurate);
+ public delegate void TogglePlayEventHandler (bool playing);
+ public delegate void VolumeChangedHandler (double level);
+ public delegate void NextButtonClickedHandler ();
+ public delegate void PrevButtonClickedHandler ();
+ public delegate void ProgressHandler (float progress);
+ public delegate void FramesProgressHandler (int actual,int total,Image frame);
+ public delegate void DrawFrameHandler (TimelineEvent play,int drawingIndex,MediaFileAngle angle,bool
current);
+ public delegate void EllpasedTimeHandler (Time ellapsedTime);
public delegate void PlaybackRateChangedHandler (float rate);
- public delegate void DeviceChangeHandler(int deviceID);
+ public delegate void DeviceChangeHandler (int deviceID);
public delegate void CaptureFinishedHandler (bool close);
- public delegate void ErrorHandler(string message);
- public delegate void PercentCompletedHandler(float percent);
- public delegate void StateChangeHandler(bool playing);
- public delegate void TickHandler(Time currentTime);
- public delegate void MediaInfoHandler(int width, int height, int parN, int parD);
- public delegate void EosHandler();
- public delegate void ReadyToSeekHandler();
+ public delegate void ErrorHandler (string message);
+ public delegate void PercentCompletedHandler (float percent);
+ public delegate void StateChangeHandler (bool playing);
+ public delegate void TickHandler (Time currentTime);
+ public delegate void MediaInfoHandler (int width,int height,int parN,int parD);
+ public delegate void EosHandler ();
+ public delegate void ReadyToSeekHandler ();
}
diff --git a/LongoMatch.Core/Interfaces/GUI/IAnalysisWindow.cs
b/LongoMatch.Core/Interfaces/GUI/IAnalysisWindow.cs
index b82f1de..db622f7 100644
--- a/LongoMatch.Core/Interfaces/GUI/IAnalysisWindow.cs
+++ b/LongoMatch.Core/Interfaces/GUI/IAnalysisWindow.cs
@@ -26,26 +26,42 @@ using LongoMatch.Core.Store.Templates;
namespace LongoMatch.Core.Interfaces.GUI
{
public interface IAnalysisWindow
- {
- void SetProject(Project project, ProjectType projectType, CaptureSettings props, EventsFilter
filter);
+ {
+ void SetProject (Project project, ProjectType projectType, CaptureSettings props,
EventsFilter filter);
+
void ReloadProject ();
+
void CloseOpenedProject ();
- void AddPlay(TimelineEvent play);
+
+ void AddPlay (TimelineEvent play);
+
void UpdateCategories ();
+
void DeletePlays (List<TimelineEvent> plays);
+
void DetachPlayer ();
+
void ZoomIn ();
+
void ZoomOut ();
+
void FitTimeline ();
+
void ShowDashboard ();
+
void ShowTimeline ();
+
void ShowZonalTags ();
+
void ClickButton (DashboardButton button, Tag tag = null);
+
void TagPlayer (Player player);
+
void TagTeam (TeamType team);
-
- IPlayerBin Player{get;}
- ICapturerBin Capturer{get;}
+
+ IPlayerBin Player{ get; }
+
+ ICapturerBin Capturer{ get; }
}
}
diff --git a/LongoMatch.Core/Interfaces/GUI/IBusyDialog.cs b/LongoMatch.Core/Interfaces/GUI/IBusyDialog.cs
index 571fc26..5cdc68d 100644
--- a/LongoMatch.Core/Interfaces/GUI/IBusyDialog.cs
+++ b/LongoMatch.Core/Interfaces/GUI/IBusyDialog.cs
@@ -21,9 +21,12 @@ namespace LongoMatch.Core.Interfaces.GUI
{
public interface IBusyDialog
{
- void Pulse();
- void Destroy();
+ void Pulse ();
+
+ void Destroy ();
+
void Show ();
+
void ShowSync ();
}
}
diff --git a/LongoMatch.Core/Interfaces/GUI/ICapturerBin.cs b/LongoMatch.Core/Interfaces/GUI/ICapturerBin.cs
index b85d1a6..59a3a04 100644
--- a/LongoMatch.Core/Interfaces/GUI/ICapturerBin.cs
+++ b/LongoMatch.Core/Interfaces/GUI/ICapturerBin.cs
@@ -27,20 +27,31 @@ namespace LongoMatch.Core.Interfaces.GUI
{
public interface ICapturerBin
{
- Time CurrentCaptureTime {get;}
- bool Capturing {get;}
- Image CurrentCaptureFrame {get;}
- CaptureSettings CaptureSettings {get;}
- List<string> PeriodsNames {set;}
+ Time CurrentCaptureTime { get; }
+
+ bool Capturing { get; }
+
+ Image CurrentCaptureFrame { get; }
+
+ CaptureSettings CaptureSettings { get; }
+
+ List<string> PeriodsNames { set; }
+
List<Period> Periods { get; set; }
+
ICapturer Capturer { get; }
void Run (CaptureSettings settings, MediaFile outputFile);
- void StartPeriod();
- void PausePeriod();
- void ResumePeriod();
- void StopPeriod();
- void Close();
+
+ void StartPeriod ();
+
+ void PausePeriod ();
+
+ void ResumePeriod ();
+
+ void StopPeriod ();
+
+ void Close ();
}
}
diff --git a/LongoMatch.Core/Interfaces/GUI/IGUIToolkit.cs b/LongoMatch.Core/Interfaces/GUI/IGUIToolkit.cs
index 71a39e6..6b3d65e 100644
--- a/LongoMatch.Core/Interfaces/GUI/IGUIToolkit.cs
+++ b/LongoMatch.Core/Interfaces/GUI/IGUIToolkit.cs
@@ -31,66 +31,82 @@ namespace LongoMatch.Core.Interfaces.GUI
{
public interface IGUIToolkit
{
- IMainController MainController {get;}
- IRenderingStateBar RenderingStateBar {get;}
- Version Version {get;}
- bool FullScreen {set;}
-
+ IMainController MainController { get; }
+
+ IRenderingStateBar RenderingStateBar { get; }
+
+ Version Version { get; }
+
+ bool FullScreen { set; }
+
void Quit ();
/* Messages */
- void InfoMessage(string message, object parent=null);
- void WarningMessage(string message, object parent=null);
- void ErrorMessage(string message, object parent=null);
- bool QuestionMessage(string message, string title, object parent=null);
- string QueryMessage (string key, string title=null, string value="", object parent=null);
+ void InfoMessage (string message, object parent = null);
+
+ void WarningMessage (string message, object parent = null);
+
+ void ErrorMessage (string message, object parent = null);
+
+ bool QuestionMessage (string message, string title, object parent = null);
+
+ string QueryMessage (string key, string title = null, string value = "", object parent =
null);
/* Files/Folders IO */
- string SaveFile(string title, string defaultName, string defaultFolder,
- string filterName, string[] extensionFilter);
- string OpenFile(string title, string defaultName, string defaultFolder,
- string filterName = null, string[] extensionFilter = null);
- List<string> OpenFiles(string title, string defaultName, string defaultFolder,
- string filterName, string[] extensionFilter);
- string SelectFolder(string title, string defaultName, string defaultFolder,
- string filterName, string[] extensionFilter);
-
- object ChooseOption (Dictionary<string, object> options, object parent=null);
-
- IBusyDialog BusyDialog(string message, object parent=null);
-
+ string SaveFile (string title, string defaultName, string defaultFolder,
+ string filterName, string[] extensionFilter);
+
+ string OpenFile (string title, string defaultName, string defaultFolder,
+ string filterName = null, string[] extensionFilter = null);
+
+ List<string> OpenFiles (string title, string defaultName, string defaultFolder,
+ string filterName, string[] extensionFilter);
+
+ string SelectFolder (string title, string defaultName, string defaultFolder,
+ string filterName, string[] extensionFilter);
+
+ object ChooseOption (Dictionary<string, object> options, object parent = null);
+
+ IBusyDialog BusyDialog (string message, object parent = null);
+
List<EditionJob> ConfigureRenderingJob (Playlist playlist);
- void ExportFrameSeries(Project openenedProject, TimelineEvent play, string snapshotDir);
-
+
+ void ExportFrameSeries (Project openenedProject, TimelineEvent play, string snapshotDir);
+
void OpenProject (Project project, ProjectType projectType,
CaptureSettings props, EventsFilter filter,
out IAnalysisWindow analysisWindow);
+
void CloseProject ();
-
- void SelectProject(List<ProjectDescription> projects);
- ProjectDescription ChooseProject(List<ProjectDescription> projects);
-
- void CreateNewProject (Project project=null);
-
+ void SelectProject (List<ProjectDescription> projects);
+
+ ProjectDescription ChooseProject (List<ProjectDescription> projects);
+
+ void CreateNewProject (Project project = null);
+
void ShowProjectStats (Project project);
-
+
void OpenProjectsManager (Project openedProject);
+
void OpenCategoriesTemplatesManager ();
+
void OpenTeamsTemplatesManager ();
+
void OpenDatabasesManager ();
+
void OpenPreferencesEditor ();
-
+
void ManageJobs ();
-
+
void EditPlay (TimelineEvent play, Project project, bool editTags, bool editPositions, bool
editPlayers, bool editNotes);
- void DrawingTool(Image pixbuf, TimelineEvent play, FrameDrawing drawing, Project project);
-
+ void DrawingTool (Image pixbuf, TimelineEvent play, FrameDrawing drawing, Project project);
+
string RemuxFile (string filePath, string outputFile, VideoMuxerType muxer);
-
+
DateTime SelectDate (DateTime date, object widget);
-
+
EndCaptureResponse EndCapture (string filepath);
bool SelectMediaFiles (Project project);
diff --git a/LongoMatch.Core/Interfaces/GUI/IPlayerBin.cs b/LongoMatch.Core/Interfaces/GUI/IPlayerBin.cs
index 0e0fe34..fbacdfe 100644
--- a/LongoMatch.Core/Interfaces/GUI/IPlayerBin.cs
+++ b/LongoMatch.Core/Interfaces/GUI/IPlayerBin.cs
@@ -27,33 +27,54 @@ namespace LongoMatch.Core.Interfaces.GUI
public interface IPlayerBin
{
event StateChangeHandler PlayStateChanged;
-
- Time CurrentTime {get;}
- Time StreamLength {get;}
- Image CurrentMiniatureFrame {get;}
- Image CurrentFrame {get;}
- bool Opened {get;}
- bool SeekingEnabled {set;}
- bool Sensitive {set; get;}
+
+ Time CurrentTime { get; }
+
+ Time StreamLength { get; }
+
+ Image CurrentMiniatureFrame { get; }
+
+ Image CurrentFrame { get; }
+
+ bool Opened { get; }
+
+ bool SeekingEnabled { set; }
+
+ bool Sensitive { set; get; }
+
bool Playing { get; }
- MediaFileAngle ActiveAngle { get; }
void Open (MediaFileSet fileSet);
- void Close();
+
+ void Close ();
+
void Play ();
+
void Pause ();
+
void TogglePlay ();
- void ResetGui();
+
+ void ResetGui ();
+
void Seek (Time time, bool accurate);
- void StepForward();
- void StepBackward();
- void SeekToNextFrame();
- void SeekToPreviousFrame();
- void FramerateUp();
- void FramerateDown();
+
+ void StepForward ();
+
+ void StepBackward ();
+
+ void SeekToNextFrame ();
+
+ void SeekToPreviousFrame ();
+
+ void FramerateUp ();
+
+ void FramerateDown ();
+
void LoadPlay (MediaFileSet file, TimelineEvent play, Time seekTime, bool playing);
+
void LoadPlayListPlay (Playlist playlist, IPlaylistElement play);
- void CloseSegment();
+
+ void CloseSegment ();
}
}
diff --git a/LongoMatch.Core/Interfaces/GUI/IRenderingStateBar.cs
b/LongoMatch.Core/Interfaces/GUI/IRenderingStateBar.cs
index 28c7daa..66dfb2d 100644
--- a/LongoMatch.Core/Interfaces/GUI/IRenderingStateBar.cs
+++ b/LongoMatch.Core/Interfaces/GUI/IRenderingStateBar.cs
@@ -23,11 +23,14 @@ namespace LongoMatch.Core.Interfaces.GUI
{
event EventHandler Cancel;
event EventHandler ManageJobs;
-
- bool JobRunning {set;}
- string Text {set;}
- string ProgressText {set;}
- double Fraction {set; get;}
+
+ bool JobRunning { set; }
+
+ string Text { set; }
+
+ string ProgressText { set; }
+
+ double Fraction { set; get; }
}
}
diff --git a/LongoMatch.Core/Interfaces/IDataBaseManager.cs b/LongoMatch.Core/Interfaces/IDataBaseManager.cs
index a0b4323..d9a929b 100644
--- a/LongoMatch.Core/Interfaces/IDataBaseManager.cs
+++ b/LongoMatch.Core/Interfaces/IDataBaseManager.cs
@@ -23,10 +23,15 @@ namespace LongoMatch.Core.Interfaces
public interface IDataBaseManager
{
void SetActiveByName (string name);
+
IDatabase Add (string name);
+
bool Delete (IDatabase db);
+
IDatabase ActiveDB { get; set; }
+
void UpdateDatabases ();
+
List<IDatabase> Databases { get; set; }
}
}
diff --git a/LongoMatch.Core/Interfaces/IDatabase.cs b/LongoMatch.Core/Interfaces/IDatabase.cs
index c050463..6e59eeb 100644
--- a/LongoMatch.Core/Interfaces/IDatabase.cs
+++ b/LongoMatch.Core/Interfaces/IDatabase.cs
@@ -23,31 +23,31 @@ namespace LongoMatch.Core.Interfaces
{
public interface IDatabase
{
- List<ProjectDescription> GetAllProjects();
-
- Project GetProject(Guid id);
-
- void AddProject(Project project);
-
- bool RemoveProject(Guid id);
-
- void UpdateProject(Project project);
-
- bool Exists(Project project);
-
+ List<ProjectDescription> GetAllProjects ();
+
+ Project GetProject (Guid id);
+
+ void AddProject (Project project);
+
+ bool RemoveProject (Guid id);
+
+ void UpdateProject (Project project);
+
+ bool Exists (Project project);
+
bool Backup ();
-
+
bool Delete ();
-
+
void Reload ();
-
- string Name {get;}
-
- DateTime LastBackup {get;}
-
- int Count {get;}
-
- Version Version {get; set;}
+
+ string Name { get; }
+
+ DateTime LastBackup { get; }
+
+ int Count { get; }
+
+ Version Version { get; set; }
}
}
diff --git a/LongoMatch.Core/Interfaces/IIDObject.cs b/LongoMatch.Core/Interfaces/IIDObject.cs
index 876f9ba..bd5c844 100644
--- a/LongoMatch.Core/Interfaces/IIDObject.cs
+++ b/LongoMatch.Core/Interfaces/IIDObject.cs
@@ -21,7 +21,7 @@ namespace LongoMatch.Core.Interfaces
{
public interface IIDObject
{
- Guid ID {get;set;}
+ Guid ID { get; set; }
}
}
diff --git a/LongoMatch.Core/Interfaces/IPlaylistElement.cs b/LongoMatch.Core/Interfaces/IPlaylistElement.cs
index 127c741..4ca3c74 100644
--- a/LongoMatch.Core/Interfaces/IPlaylistElement.cs
+++ b/LongoMatch.Core/Interfaces/IPlaylistElement.cs
@@ -25,11 +25,11 @@ namespace LongoMatch.Core.Interfaces
string Description {
get;
}
-
+
Image Miniature {
get;
}
-
+
bool Selected {
get;
set;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]