Ejemplo n.º 1
0
        public Finder()
            : base(GearsetSettings.Instance.FinderConfig)
        {
            Config = GearsetSettings.Instance.FinderConfig;

            Window = new FinderWindow();
            ElementHost.EnableModelessKeyboardInterop(Window);
            Window.SizeChanged      += new System.Windows.SizeChangedEventHandler(Window_SizeChanged);
            Window.IsVisibleChanged += new DependencyPropertyChangedEventHandler(Window_IsVisibleChanged);
            Window.LocationChanged  += new EventHandler(Window_LocationChanged);
            Window.DataContext       = this;
            Window.Top    = Config.Top;
            Window.Left   = Config.Left;
            Window.Width  = Config.Width;
            Window.Height = Config.Height;

            WindowHelper.EnsureOnScreen(Window);

            if (Config.Visible)
            {
                Window.Show();
            }

            Config.SearchTextChanged += new EventHandler(Config_SearchTextChanged);
            searchDelay = .25f;
        }
Ejemplo n.º 2
0
        public GearsetSettings()
        {
            Enabled      = true;
            ShowOverlays = true;
#if WINDOWS
            InspectorConfig = new Components.InspectorConfig();
            LoggerConfig    = new Components.LoggerConfig();
#endif
            DataSamplerConfig = new Components.DataSamplerConfig();
            PlotterConfig     = new Components.PlotterConfig();
            TreeViewConfig    = new Components.TreeViewConfig();
            LabelerConfig     = new Components.LabelerConfig();
            LineDrawerConfig  = new Components.LineDrawerConfig();
            AlerterConfig     = new Components.AlerterConfig();
#if WINDOWS
            FinderConfig = new Components.FinderConfig();
#endif

            // IMPORTANT:
            // NEW CONFIG INSTANCES SHOULD BE ADDED IN THE LOAD METHOD BELOW.
            DepthBufferEnabled = true;
            saveFrequency      = 5;
        }
Ejemplo n.º 3
0
        public GearsetSettings()
        {
            Enabled      = true;
            ShowOverlays = true;
#if WINDOWS || LINUX || MONOMAC
            InspectorConfig = new Components.InspectorConfig();
#endif
            ProfilerConfig       = new ProfilerConfig();
            DataSamplerConfig    = new Components.DataSamplerConfig();
            PlotterConfig        = new Components.PlotterConfig();
            TreeViewConfig       = new Components.TreeViewConfig();
            LabelerConfig        = new Components.LabelerConfig();
            LineDrawerConfig     = new Components.LineDrawerConfig();
            AlerterConfig        = new Components.AlerterConfig();
            LoggerConfig         = new Components.LoggerConfig();
            FinderConfig         = new Components.FinderConfig();
            MemoryMonitorConfig  = new MemoryMonitorConfig();
            CommandConsoleConfig = new Components.CommandConsoleConfig();

            // IMPORTANT:
            // NEW CONFIG INSTANCES SHOULD BE ADDED IN THE LOAD METHOD BELOW.
            DepthBufferEnabled = true;
            saveFrequency      = 5;
        }