Ejemplo n.º 1
0
        protected override void OnInitialize()
        {
            _keyboardEditorId = new Guid( "{66AD1D1C-BF19-405D-93D3-30CA39B9E52F}" );

            var profiles = this.AddCurrentItem( R.Profile, "", _app.CivikeyHost.Context.ConfigManager.SystemConfiguration, a => a.CurrentUserProfile, a => a.UserProfiles, false, "" );
            _app.CivikeyHost.Context.ConfigManager.SystemConfiguration.UserProfiles.CollectionChanged += ( s, e ) =>
            {
                profiles.RefreshValues( s, e );
            };

            //JL : this feature has been removed.
            //this.AddLink( _sVm ?? ( _sVm = new SkinViewModel( _app ) ) );

            //JL : 13/12/2013 : The screenscroller editor presents performance issues when modifying parameters.
            //For now, I'll let this plugin without configuration, we'll ask the ergotherapist whether the configuration panel is necessary before spending time on it.
            //this.AddLink( _ssVm ?? ( _ssVm = new ScreenScrollerViewModel( _app ) ) );

            var g = this.AddGroup();

            g.AddLink( _appAdvcVm ?? (_appAdvcVm = new AppAdvancedConfigViewModel( _app )) );
            g.AddLink( _scVm ?? (_scVm = new ScrollingViewModel( R.ScrollConfig, _app )) );
            g.AddLink( _acVm ?? (_acVm = new AutoClickViewModel( _app )) );
            g.AddLink( _wpVm ?? (_wpVm = new WordPredictionViewModel( _app )) );

            g.AddLink( _skVm ?? (_skVm = new ShareKeyboardViewModel( _app )) );

            {
                var action = new ConfigItemAction( this.ConfigManager, new SimpleCommand( StartKeyboardEditor ) );
                action.ImagePath = "Forward.png";
                action.DisplayName = R.SkinEditorSectionName;
                g.Items.Add( action );
            }

            //{
            //    var action = new ConfigItemAction( this.ConfigManager, new SimpleCommand( StartRadarEditor ) );
            //    action.ImagePath = "Forward.png";
            //    action.DisplayName = R.RadarConfiguration;
            //    this.Items.Add( action );
            //}

            //{
            //    var action = new ConfigItemAction( this.ConfigManager, new SimpleCommand( StartScreenScrollerEditor ) );
            //    action.ImagePath = "Forward.png";
            //    action.DisplayName = R.ScreenScrollerConfiguration;
            //    this.Items.Add( action );
            //}

            g.AddLink( new CreditViewModel( _app ) );

            this.AddAction( R.ObjectExplorer, R.AdvancedUserNotice, StartObjectExplorer );

            base.OnInitialize();
        }
Ejemplo n.º 2
0
        protected override void OnInitialize()
        {
            _keyboardEditorId = new Guid( "{66AD1D1C-BF19-405D-93D3-30CA39B9E52F}" );

            var profiles = this.AddCurrentItem( R.Profile, "", _app.CivikeyHost.Context.ConfigManager.SystemConfiguration, a => a.CurrentUserProfile, a => a.UserProfiles, false, "" );
            _app.CivikeyHost.Context.ConfigManager.SystemConfiguration.UserProfiles.CollectionChanged += ( s, e ) =>
            {
                profiles.RefreshValues( s, e );
            };

            this.AddLink( _appAdvcVm ?? ( _appAdvcVm = new AppAdvancedConfigViewModel( _app ) ) );
            this.AddLink( _sVm ?? ( _sVm = new SkinViewModel( _app ) ) );
            this.AddLink( _acVm ?? (_acVm = new AutoClickViewModel( _app )) );
            this.AddLink( _wpVm ?? (_wpVm = new WordPredictionViewModel( _app )) );

            {
                var action = new ConfigItemAction( this.ConfigManager, new SimpleCommand( StartScrollEditor ) );
                action.ImagePath = "Forward.png";
                action.DisplayName = R.ScrollConfig;
                this.Items.Add( action );
            }

            {
                var action = new ConfigItemAction( this.ConfigManager, new SimpleCommand( StartKeyboardEditor ) );
                action.ImagePath = "Forward.png";
                action.DisplayName = R.SkinEditorSectionName;
                this.Items.Add( action );
            }

            this.AddAction( R.ObjectExplorer, R.AdvancedUserNotice, StartObjectExplorer );

            base.OnInitialize();
        }