Ejemplo n.º 1
0
 public TouchAnalyzer(MainWindow window, SoftKeyboard keyboard)
 {
     this.window = window;
     this.keyboard = keyboard;
     screenHandPoints = new Dictionary<int, HandPoint>();
     this.behaviorLog = new Log(window, true);
     this.behaviorLog.setTasks(window.task);
 }
Ejemplo n.º 2
0
 public WordPredictor(SoftKeyboard keyboard)
 {
     this.keyboard = keyboard;
     this.canvas = keyboard.canvas;
     loadCorpus();
     pointList = new List<Point>();
     hintBlocks = new TextBlock[Config.hintBlockNum];
     this.reRenderHintBlocks();
     
 }
Ejemplo n.º 3
0
 public Tasks(TextBox taskb, TextBox inputb, TextBlock statusb, SoftKeyboard keyboard)
 {
     this.taskBlock = taskb;
     this.inputBlock = inputb;
     this.statusBlock = statusb;
     this.keyboard = keyboard;
     loadTask();
     inputBlock.TextChanged += new TextChangedEventHandler((a, b) =>
     {
         this.updateStatusBlock();
     });
 }
Ejemplo n.º 4
0
        private void initializeVars()
        {
            this.log = new Log(this);
            this.softKeyboard = new SoftKeyboard(this.softKeyboardCanvas, this.log);
            this.taskTextBlock = new TextBox();
            Canvas.SetLeft(this.taskTextBlock, Canvas.GetLeft(this.inputTextBox));
            Canvas.SetTop(this.taskTextBlock, Canvas.GetTop(this.inputTextBox) - Config.taskInputBlockHeight);
            this.taskTextBlock.Width = Config.taskTextBlockWidth;
            this.taskTextBlock.Height = Config.taskTextBlockHeith;
            this.taskTextBlock.Background = Config.taskTextBlockBackground;
            this.taskTextBlock.Foreground = Config.taskTextBlockForeground;
            this.taskTextBlock.FontSize = Config.taskTextBlockFontSize;
            this.taskTextBlock.BorderThickness = new Thickness(0);
            this.taskTextBlock.Focusable = false;
            //this.taskTextBlock.ena
            this.inputCanvas.Children.Add(this.taskTextBlock);
            this.taskTextBlock.Visibility = Config.showTask ? Visibility.Visible : Visibility.Hidden;
            this.taskTextBlock.Text = "task";
            this.taskTextBlock.FontFamily = Config.fontFamily;
            this.inputTextBox.Width = Config.taskInputBlockWidth;
            this.inputTextBox.Height = Config.taskInputBlockHeight;
            this.inputTextBox.Background = Config.taskInputBlockBackground;
            this.inputTextBox.Foreground = Config.taskInputBlockForeground;
            this.inputTextBox.FontSize = Config.taskInputBlockFontSize;
            this.inputTextBox.VerticalAlignment = VerticalAlignment.Center;
            this.inputTextBox.FontFamily = Config.fontFamily;

            this.task = new Tasks(this.taskTextBlock, this.inputTextBox, this.taskStatusBlock, this.softKeyboard);
            this.log.setTasks(this.task);
            //this.behaviorLog.setTasks(this.task);
            this.softKeyboard.setTasks(this.task);
            this.touchAnalyzer = new TouchAnalyzer(this, this.softKeyboard);
        }