Exemple #1
0
 public HistoryItem(string operationName, EnumerateTarget target, IWidgetEnumerator enumerator)
 {
     OperationName = operationName;
     Target        = target;
     Enumerator    = enumerator;
     window        = HitaHint.UIAssistantAPI.WindowAPI.ActiveWindow;
 }
Exemple #2
0
        public static IWidgetEnumerator Factory(EnumerateTarget target)
        {
            switch (target)
            {
            case EnumerateTarget.WidgetsInWindow:
                return(new WidgetsInWindow());

            case EnumerateTarget.RunningApps:
                return(new RunningApps());

            case EnumerateTarget.WidgetsInTaskbar:
                return(new WidgetsInTaskbar());

            case EnumerateTarget.DividedScreen:
                return(new DividedScreen());

            default:
                return(new WidgetsInWindow());
            }
        }
Exemple #3
0
        public static ISearchByTextEnumerator Factory(EnumerateTarget target)
        {
            switch (target)
            {
            case EnumerateTarget.Commands:
                return(new SearchForCommand());

            case EnumerateTarget.TextsInWindow:
                return(new SearchForText());

            case EnumerateTarget.TextsInContainer:
                return(new SearchContainer());

            case EnumerateTarget.RunningApps:
                return(new SearchRunningApps());

            case EnumerateTarget.ContextMenu:
                return(new SearchContextMenu());

            default:
                return(new SearchForText());
            }
        }
Exemple #4
0
 internal void ChangeTarget(EnumerateTarget target)
 {
     _enumerator = Enumerator.Factory(target);
 }
Exemple #5
0
 public void ChangeTarget(EnumerateTarget target)
 {
     State.ChangeTarget(target);
 }
Exemple #6
0
 internal void ChangeTarget(EnumerateTarget target)
 {
     Target     = target;
     Enumerator = Enumerators.Enumerator.Factory(target);
 }
Exemple #7
0
 internal void PushState(string operationName, EnumerateTarget target, IWidgetEnumerator enumerator)
 {
     _history.Push(new HistoryItem(operationName, target, enumerator));
 }