Exemple #1
0
        /// <summary>
        /// Instantiates a new instance of the class
        /// </summary>
        /// <param name="iScannerPanel">The scanner Form object</param>
        public ScannerCommon(IScannerPanel iScannerPanel)
        {
            ScannerForm = iScannerPanel.Form;
            StartupArg = null;
            _scannerPanel = iScannerPanel;
            ScannerForm.ShowInTaskbar = false;
            PositionSizeController = new ScannerPositionSizeController(this);
            TextController = new TextController();
            KeepTalkWindowActive = false;
            _syncLock = new SyncLock();

            var scannerStatusBar = (ScannerForm is ISupportsStatusBar) ?
                                                ((ISupportsStatusBar)ScannerForm).ScannerStatusBar :
                                                null;
            StatusBarController = new StatusBarController(scannerStatusBar);
        }
        /// <summary>
        /// Initializes a new instance of the class.
        /// </summary>
        public LectureManagerMainForm()
        {
            InitializeComponent();
            _syncObj = new SyncLock();
            Mode = SpeechMode.Paragraph;
            FileLoaded = false;
            ShowInTaskbar = false;
            _paragraphs = new List<Paragraph>();
            _sentences = new List<Sentence>();
            _invoker = new ExtensionInvoker(this);
            LectureText = String.Empty;

            Top = 0;
            Left = 0;

            _speakAllParagraphTimer = new Timer();
            _speakAllParagraphTimer.Tick += _speakAllParagraphTimer_Tick;
            LocationChanged += LectureManagerMainForm_LocationChanged;
        }
Exemple #3
0
        /// <summary>
        /// Instantiates a new instance of the class
        /// </summary>
        /// <param name="iScannerPanel">The scanner Form object</param>
        public ScannerCommon(IScannerPanel iScannerPanel)
        {
            ScannerForm = iScannerPanel.Form;

            StartupArg = null;
            _scannerPanel = iScannerPanel;
            ScannerForm.ShowInTaskbar = false;
            PositionSizeController = new ScannerPositionSizeController(this);
            TextController = new TextController();
            KeepTalkWindowActive = false;
            HideScannerOnIdle = CoreGlobals.AppPreferences.HideScannerOnIdle;
            _syncLock = new SyncLock();
        }
Exemple #4
0
        /// <summary>
        /// Initializes a new instance of the class.
        /// </summary>
        public ACATMuteForm()
        {
            InitializeComponent();

            _syncObj = new SyncLock();

            ShowInTaskbar = false;
            if (!initialize())
            {
                Log.Debug("Initialization error!");
            }

            TopMost = true;

            RoundedCornerControl.CreateRoundedControl(Title);

            Windows.ShowWindowBorder(this, Common.AppPreferences.ScannerShowBorder);

            Windows.SetWindowPosition(this, Windows.WindowPosition.CenterScreen);

            _windowOverlapWatchdog = new WindowOverlapWatchdog(this);

            updateDateTime();

            // Title isn't used on this form, but we keep it hidden instead of removing it
            // so we don't have to modify the IScreenInterface GetTitle() method
            Title.Hide();

            // timer used for displaying the time
            timer.Start();

            FormBorderStyle = FormBorderStyle.None;
            WindowState = FormWindowState.Maximized;

            Load += MuteForm_Load;
            FormClosing += MuteForm_FormClosing;

            var actuator = ActuatorManager.Instance.GetActuator(typeof(KeyboardActuator));
            if (actuator != null)
            {
                _keyboardActuator = actuator as KeyboardActuator;
                if (_keyboardActuator != null)
                {
                    _keyboardActuator.EvtKeyDown += _keyboardActuator_EvtKeyDown;
                    _keyboardActuator.EvtKeyUp += _keyboardActuator_EvtKeyUp;
                }
            }
        }
Exemple #5
0
 /// <summary>
 /// Initializes an new instance of the DialogCommon class.  Create this
 /// class in the constructor of the form.
 /// </summary>
 /// <param name="form">The dialog form </param>
 public DialogCommon(Form form)
 {
     _form = form;
     _form.ShowInTaskbar = false;
     _panelName = String.Empty;
     _dialogPanel = (IDialogPanel)_form;
     _syncLock = new SyncLock();
 }
Exemple #6
0
        /// <summary>
        /// Initializes a new instance of the class.
        /// </summary>
        public TalkWindowBase()
        {
            _syncObj = new SyncLock();

            Load += TalkWindowBase_Load;
        }
Exemple #7
0
        /// <summary>   
        /// Initializes a new instance of the class.
        /// </summary>
        public TalkWindowBase()
        {
            _syncObj = new SyncLock();
            _accentManagerStorage = new AccentManagerStorage(Thread.CurrentThread.CurrentCulture);

            Load += TalkWindowBase_Load;
        }
Exemple #8
0
        /// <summary>
        /// Initializes the player
        /// </summary>
        /// <param name="rootWidget">root widget for the scanner</param>
        /// <param name="interpreter">the interpreter object</param>
        /// <param name="variables">variables and their values</param>
        public AnimationPlayer(Widget rootWidget, Interpret interpreter, Variables variables)
        {
            Log.Debug("CTOR(" + rootWidget.Name + ")");
            if (rootWidget.UIControl is IPanel)
            {
                _syncObj = ((IPanel) rootWidget.UIControl).SyncObj;
            }

            _transitionSync = _syncObj;

            _interpreter = interpreter;
            _timer = new System.Timers.Timer();
            _timer.Elapsed += timer_Elapsed;
            _highlightedWidget = null;
            _currentAnimation = null;
            _rootWidget = rootWidget;
            _playerState = PlayerState.Stopped;
            _variables = variables;
            _inTimer = false;
            IsSwitchActive = false;
        }
        /// <summary>
        /// Initializes a new instance of the class.
        /// </summary>
        public VolumeSettingsScanner()
        {
            InitializeComponent();

            _syncObj = new SyncLock();

            Load += VolumeSettingsScanner_Load;
            FormClosing += VolumeSettingsScanner_FormClosing;

            PanelClass = "VolumeSettingsScanner";

            _dispatcher = new Dispatcher(this);
        }
Exemple #10
0
        /// <summary>
        /// Initializes a new instance of the class.
        /// </summary>
        public TalkWindowBase()
        {
            _syncObj = new SyncLock();

            Load += TalkWindowBase_Load;
            FormClosing += TalkWindowBase_FormClosing;
        }