client/src/Iri.Modernisation.BaseMVVM/Commands/Commands.cs
changeset 0 249d70e7b32d
child 7 de7ba61f66c7
equal deleted inserted replaced
-1:000000000000 0:249d70e7b32d
       
     1 using SLExtensions.Input;
       
     2 
       
     3 namespace Iri.Modernisation.BaseMVVM.Commands
       
     4 {
       
     5        /// <summary>
       
     6     /// Commandes
       
     7     /// </summary>
       
     8     public static class Commands
       
     9     {    
       
    10         /// <summary>
       
    11         /// Horloge Interne, Principalement pour syncroniser la position d'une video avec sa barre de défilement
       
    12         /// </summary>
       
    13        public static System.Windows.Threading.DispatcherTimer VideoPositionTimer = new System.Windows.Threading.DispatcherTimer();
       
    14        
       
    15         /// <summary>
       
    16         /// Commandes relatives au ConsultMenu
       
    17         /// </summary>
       
    18         public static class ConsultMenu
       
    19         {
       
    20             static ConsultMenu()
       
    21             {
       
    22               GetBook = new Command("GetBook");
       
    23               ClickBook = new Command("ClickBook");
       
    24             }
       
    25             public static Command GetBook
       
    26             {
       
    27                 get;
       
    28                 private set;
       
    29             }
       
    30             public static Command ClickBook
       
    31             {
       
    32                 get;
       
    33                 private set;
       
    34             }
       
    35             public static void Initialize()
       
    36             {
       
    37                
       
    38             }
       
    39        
       
    40         }
       
    41        
       
    42         /// <summary>
       
    43         /// Commandes relatives au PersonnalChutier
       
    44         /// </summary>
       
    45         public static class PersonnalChutier 
       
    46         {
       
    47             static PersonnalChutier()
       
    48             {
       
    49                 //PersonnalChutier
       
    50                 Search = new Command("Search");
       
    51                 ClickAnnotation = new Command("ClickAnnotation");
       
    52             }
       
    53             public static Command Search
       
    54             {
       
    55                 get;
       
    56                 private set;
       
    57             }
       
    58             public static Command ClickAnnotation
       
    59             {
       
    60                 get;
       
    61                 private set;
       
    62             }
       
    63             public static void Initialize()
       
    64             {
       
    65 
       
    66             }
       
    67         }
       
    68 
       
    69         /// <summary>
       
    70         /// Commandes relatives au ReferencesChutier
       
    71         /// </summary>
       
    72         public static class ReferencesChutier
       
    73         {
       
    74             static ReferencesChutier()
       
    75             {
       
    76                 //PersonnalChutier
       
    77                 Search = new Command("iSearch");
       
    78                 ClickAnnotation = new Command("iClickAnnotation");
       
    79             }
       
    80             public static Command Search
       
    81             {
       
    82                 get;
       
    83                 private set;
       
    84             }
       
    85             public static Command ClickAnnotation
       
    86             {
       
    87                 get;
       
    88                 private set;
       
    89             }
       
    90             public static void Initialize()
       
    91             {
       
    92 
       
    93             }
       
    94         }
       
    95         
       
    96         /// <summary>
       
    97         /// Commandes relatives au AnnotationMaker
       
    98         /// </summary>
       
    99         public static class AnnotationMaker
       
   100         {
       
   101             static AnnotationMaker()
       
   102             {
       
   103                 OkClick = new Command("OkClick");
       
   104                 Play = new Command("Play");
       
   105                 Pause = new Command("Pause");
       
   106                 LeftTrim = new Command("LeftTrim");
       
   107                 RightTrim = new Command("RightTrim");
       
   108             }
       
   109             public static Command OkClick
       
   110             {
       
   111                 get;
       
   112                 private set;
       
   113             }
       
   114             public static Command Play
       
   115             {
       
   116                 get;
       
   117                 private set;
       
   118             }
       
   119             public static Command Pause
       
   120             {
       
   121                 get;
       
   122                 private set;
       
   123             }
       
   124             public static Command LeftTrim
       
   125             {
       
   126                 get;
       
   127                 private set;
       
   128             }
       
   129             public static Command RightTrim
       
   130             {
       
   131                 get;
       
   132                 private set;
       
   133             }
       
   134             public static void Initialize()
       
   135             { 
       
   136             }
       
   137 
       
   138 
       
   139         }
       
   140 
       
   141         /// <summary>
       
   142         /// Commandes relatives au ClickMenu
       
   143         /// </summary>
       
   144         public static class ClickMenu
       
   145         {
       
   146             static ClickMenu()
       
   147             {
       
   148                 ActionReleased = new Command("ActionReleased");
       
   149                 CreateNewTextualAnnotation = new Command("CreateNewTextualAnnotation");
       
   150             }
       
   151             static public Command CreateNewTextualAnnotation
       
   152             {
       
   153                 get;
       
   154                 private set;
       
   155             }
       
   156 
       
   157             static public Command ActionReleased
       
   158             {
       
   159                 get;
       
   160                 private set;
       
   161             }
       
   162         }
       
   163 
       
   164         /// <summary>
       
   165         /// Commandes relatives au HeaderControl
       
   166         /// </summary>
       
   167         public static class HeaderControl
       
   168         {
       
   169             static HeaderControl()
       
   170             {
       
   171                 ButtonClick = new Command("ButtonClick");
       
   172             }
       
   173 
       
   174             static public Command ButtonClick
       
   175             {
       
   176                 get;
       
   177                 private set;
       
   178             }
       
   179             public static void Initialize()
       
   180             {
       
   181              
       
   182             }
       
   183 
       
   184         }
       
   185 
       
   186         /// <summary>
       
   187         /// Commandes relatives au PolemicElement
       
   188         /// </summary>
       
   189         public static class PolemicElement
       
   190         {
       
   191             static PolemicElement()
       
   192             {
       
   193                 ElementSelected = new Command("ElementSelected");
       
   194                 SelectPolemicElement = new Command("SelectPolemicElement");
       
   195             }
       
   196             public static Command ElementSelected
       
   197             {
       
   198                 get;
       
   199                 private set;
       
   200             }
       
   201             public static Command SelectPolemicElement
       
   202             {
       
   203                 get;
       
   204                 private set;
       
   205             }
       
   206 
       
   207             public static void Initialize()
       
   208               {
       
   209                  }
       
   210 
       
   211         }
       
   212 
       
   213         /// <summary>
       
   214         /// Commandes relatives au ConsultationBookView
       
   215         /// </summary>
       
   216         public static class ConsultationBookView
       
   217         {
       
   218             static ConsultationBookView()
       
   219             {
       
   220 
       
   221             }
       
   222 
       
   223             public static Command Action
       
   224             {
       
   225                 get;
       
   226                 private set;
       
   227             }
       
   228 
       
   229         }
       
   230         
       
   231         /// <summary>
       
   232         /// Commandes relatives au ContextualBinderLayer
       
   233         /// </summary>
       
   234         public static class ContextualBinderLayer
       
   235         {
       
   236             static ContextualBinderLayer()
       
   237             {
       
   238                 BeginBind = new Command("BeginBind");
       
   239                 EndBind = new Command("EndBind");
       
   240                 ActiveBind = new Command("InBind");
       
   241                 DesactiveBind = new Command("ActiveBind");
       
   242                 SelectBind = new Command("SelectBind");
       
   243                 UnSelectBind = new Command("UnSelectBind");
       
   244             }
       
   245             public static Command SelectBind
       
   246             {
       
   247                 get;
       
   248                 private set;
       
   249             }
       
   250             public static Command UnSelectBind
       
   251             {
       
   252                 get;
       
   253                 private set;
       
   254             }
       
   255             public static Command ActiveBind
       
   256             {
       
   257                 get;
       
   258                 private set;
       
   259             }
       
   260             public static Command DesactiveBind
       
   261             {
       
   262                 get;
       
   263                 private set;
       
   264             }
       
   265             public static Command BeginBind
       
   266             {
       
   267                 get;
       
   268                 private set;
       
   269             }
       
   270 
       
   271             public static Command EndBind
       
   272             {
       
   273                 get;
       
   274                 private set;
       
   275             }
       
   276             public static void Initialize()
       
   277             {
       
   278             }
       
   279         }
       
   280 
       
   281         /// <summary>
       
   282         /// Commandes relatives au HeaderProduction
       
   283         /// </summary>
       
   284         public static class HeaderProduction
       
   285         {
       
   286             static HeaderProduction()
       
   287             {
       
   288                 Chap01EditingOkClick = new Command("Chap01EditingOkClick");
       
   289                 Chap01IndexingOkClick = new Command("Chap01IndexingOkClick");
       
   290 
       
   291                 Chap02EditingOkClick = new Command("Chap02EditingOkClick");
       
   292                 Chap02IndexingOkClick = new Command("Chap02IndexingOkClick");
       
   293 
       
   294                 Chap03EditingOkClick = new Command("Chap03EditingOkClick");
       
   295                 Chap03IndexingOkClick = new Command("Chap03IndexingOkClick");
       
   296 
       
   297                 Chap04EditingOkClick = new Command("Chap04EditingOkClick");
       
   298                 Chap04IndexingOkClick = new Command("Chap04IndexingOkClick");
       
   299 
       
   300                 PublishClick = new Command("PublishClick");
       
   301                 SaveClick = new Command("SaveClick");
       
   302 
       
   303             }
       
   304             public static Command Chap01EditingOkClick
       
   305             {
       
   306                 get;
       
   307                 private set;
       
   308             }
       
   309             public static Command Chap01IndexingOkClick
       
   310             {
       
   311                 get;
       
   312                 private set;
       
   313             }
       
   314             public static Command Chap02EditingOkClick
       
   315             {
       
   316                 get;
       
   317                 private set;
       
   318             }
       
   319             public static Command Chap02IndexingOkClick
       
   320             {
       
   321                 get;
       
   322                 private set;
       
   323             }
       
   324             public static Command Chap03EditingOkClick
       
   325             {
       
   326                 get;
       
   327                 private set;
       
   328             }
       
   329             public static Command Chap03IndexingOkClick
       
   330             {
       
   331                 get;
       
   332                 private set;
       
   333             }
       
   334             public static Command Chap04EditingOkClick
       
   335             {
       
   336                 get;
       
   337                 private set;
       
   338             }
       
   339             public static Command Chap04IndexingOkClick
       
   340             {
       
   341                 get;
       
   342                 private set;
       
   343             }
       
   344             public static Command PublishClick
       
   345             {
       
   346                 get;
       
   347                 private set;
       
   348             }
       
   349             public static Command SaveClick
       
   350             {
       
   351                 get;
       
   352                 private set;
       
   353             }
       
   354             static public void Initialize()
       
   355             {}
       
   356         }
       
   357 
       
   358         /// <summary>
       
   359         /// Commandes relatives au ProductionTimeLine
       
   360         /// </summary>
       
   361         public static class ProductionTimeLine
       
   362         {
       
   363             static  ProductionTimeLine()
       
   364             {
       
   365             }
       
   366 
       
   367             static public void Initialize()
       
   368             { }
       
   369         }
       
   370 
       
   371         /// <summary>
       
   372         /// Commandes relatives au VideoViewer
       
   373         /// </summary>
       
   374         public static class VideoViewer
       
   375         {
       
   376             static VideoViewer()
       
   377             {
       
   378                 Play = new Command("PlayVideo");
       
   379                 Pause = new Command("PauseVideo");
       
   380                 Next = new Command("NextVideo");
       
   381                 Previous = new Command("PreviousVideo");
       
   382                 Record = new Command("RecordVideo");
       
   383                 Close = new Command("CloseVideo");
       
   384                 SendPosition = new Command("SendPosition");
       
   385             }
       
   386             public static Command SendPosition
       
   387             {
       
   388                 get;
       
   389                 private set;
       
   390             }
       
   391             public static Command Play
       
   392             {
       
   393                 get;
       
   394                 private set;
       
   395             }
       
   396             public static Command Pause
       
   397             {
       
   398                 get;
       
   399                 private set;
       
   400             }
       
   401             public static Command Next
       
   402             {
       
   403                 get;
       
   404                 private set;
       
   405             }
       
   406             public static Command Previous
       
   407             {
       
   408                 get;
       
   409                 private set;
       
   410             }
       
   411             public static Command Record
       
   412             {
       
   413                 get;
       
   414                 private set;
       
   415             }
       
   416             public static Command Close
       
   417             {
       
   418                 get;
       
   419                 private set;
       
   420             }
       
   421 
       
   422             static public void Initialize()
       
   423             {
       
   424 
       
   425             }
       
   426         }
       
   427 
       
   428         /// <summary>
       
   429         /// Constructeur
       
   430         /// </summary>
       
   431         static Commands()
       
   432         {
       
   433             Action = new Command("Action");
       
   434             TimeChange = new Command("TimeChange");
       
   435             FlipView = new Command("FlipView");
       
   436             GoToTime = new Command("GoToTime");
       
   437             VideoPositionTimer.Interval = new System.TimeSpan(0, 0,0,0,1000); 
       
   438            // VideoPositionTimer.Tick += new EventHandler(Each_Tick);
       
   439            
       
   440            
       
   441         }
       
   442         public static Command Action
       
   443         {
       
   444             get;
       
   445             private set;
       
   446         }
       
   447 
       
   448         public static Command FlipView
       
   449         {
       
   450             get;
       
   451             private set;
       
   452         }
       
   453     
       
   454 
       
   455         public static Command TimeChange
       
   456         {
       
   457             get;
       
   458             private set;
       
   459         }
       
   460 
       
   461         public static Command GoToTime
       
   462         {
       
   463             get;
       
   464             private set;
       
   465         }
       
   466 
       
   467         
       
   468         /// <summary>
       
   469         /// Ensure static fields are initialized
       
   470         /// </summary>
       
   471         public static void Initialize()
       
   472         {
       
   473             ConsultMenu.Initialize();
       
   474             ReferencesChutier.Initialize();
       
   475             PersonnalChutier.Initialize();
       
   476             AnnotationMaker.Initialize();
       
   477             HeaderControl.Initialize();
       
   478             PolemicElement.Initialize();
       
   479             ContextualBinderLayer.Initialize();
       
   480             HeaderProduction.Initialize();
       
   481             ProductionTimeLine.Initialize();
       
   482             VideoViewer.Initialize();
       
   483         }
       
   484     }
       
   485 }