public TextToSpeech(bool isQwerty)
        {
            InitializeComponent();

            clearTextConfirmation = new ClearTextConfirmation();

            btnCallouts.setFontSize();
            btnMenu.setFontSize();
            btnSpeak.setFontSize();

            initControlsRecursive(this.Controls);
            this.MouseClick += (sender, e) =>
            {
                updateCursor();
                //*TODO Delete temporary code
                getCurrentSentence();
            };

            if (isQwerty)
            {
                alsKeyboard = new QwertyKeyboard();
            }
            else
            {
                alsKeyboard = new LargeButtonKeyboard();
            }

            Controls.Add(alsKeyboard);
            alsKeyboard.Location = new Point(MainMenu.GAP, MainMenu.GAP);
            alsKeyboard.SendToBack();

            alsKeyboard.setClearConfirmation(true);
        }
Beispiel #2
0
        private void Clear_Click(object sender, EventArgs e)
        {
            this.Enabled = false;
            ClearTextConfirmation confirm = new ClearTextConfirmation();

            confirm.Visible = true;
        }
        public TextToSpeech(bool isQwerty)
        {
            InitializeComponent();

            clearTextConfirmation = new ClearTextConfirmation();

            btnCallouts.setFontSize();
            btnMenu.setFontSize();
            btnSpeak.setFontSize();

            initControlsRecursive(this.Controls);
            this.MouseClick += (sender, e) =>
            {
                updateCursor();
                //*TODO Delete temporary code
                getCurrentSentence();
            };

            if (isQwerty)
                alsKeyboard = new QwertyKeyboard();
            else
                alsKeyboard = new LargeButtonKeyboard();

            Controls.Add(alsKeyboard);
            alsKeyboard.Location = new Point(MainMenu.GAP, MainMenu.GAP);
            alsKeyboard.SendToBack();

            alsKeyboard.setClearConfirmation(true);
        }
Beispiel #4
0
        protected void initialSetup()
        {
            try { presage = new PresagePredictor(); }catch (Exception e) { ALS_App.LogCrash(e); }

            _textBox           = new TextBox();
            _textBox.Font      = new Font(_textBox.Font.FontFamily, 24);
            _textBox.Multiline = true;
            Controls.Add(_textBox);

            frmClearTextConfirmation = new ClearTextConfirmation();
            frmClearTextConfirmation.ClearText_Click += FrmClearTextConfirmation_ClearText_Click;

            predictionKeys  = new ALSButton[5];
            predictionWords = new List <string>();

            for (int i = 0; i < predictionKeys.Length; i++)
            {
                predictionKeys[i] = new ALSButton();
                this.Controls.Add(predictionKeys[i]);
                predictionKeys[i].btnType = ALSButton.ButtonType.key;
                predictionKeys[i].Click  += new System.EventHandler(this.Predictionkey_Click);
            }
            this.Resize += new System.EventHandler(this.Keyboard_Resize);
        }
Beispiel #5
0
        protected void initialSetup()
        {
            try { presage = new PresagePredictor(); }catch(Exception e) { ALS_App.LogCrash(e); }

            _textBox = new TextBox();
            _textBox.Font = new Font(_textBox.Font.FontFamily, 24);
            _textBox.Multiline = true;
            Controls.Add(_textBox);

            frmClearTextConfirmation = new ClearTextConfirmation();
            frmClearTextConfirmation.ClearText_Click += FrmClearTextConfirmation_ClearText_Click;

            predictionKeys = new ALSButton[5];
            predictionWords = new List<string>();

            for (int i = 0; i < predictionKeys.Length; i++)
            {
                predictionKeys[i] = new ALSButton();
                this.Controls.Add(predictionKeys[i]);
                predictionKeys[i].btnType = ALSButton.ButtonType.key;
                predictionKeys[i].Click += new System.EventHandler(this.Predictionkey_Click);
            }
            this.Resize += new System.EventHandler(this.Keyboard_Resize);
        }