Beispiel #1
0
        public PropertyPad()
        {
            frame = new InvisibleFrame();

#if MAC
            isNative = true;

            if (isNative)
            {
                nativeGrid   = new MacPropertyGrid();
                propertyGrid = nativeGrid;
                nativeGrid.PropertyGridChanged += Grid_Changed;
                gtkWidget = new GtkNSViewHost(nativeGrid);

                frame.Add(gtkWidget);
            }
            else
            {
#endif
            grid          = new pg.PropertyGrid();
            propertyGrid  = grid;
            grid.Changed += Grid_Changed;
            frame.Add(grid);
#if MAC
        }
#endif
            frame.ShowAll();
        }
Beispiel #2
0
        public PropertyPad()
        {
            frame = new InvisibleFrame();

#if MAC
            isNative = FeatureSwitchService.IsFeatureEnabled("NativePropertyPanel") ?? false;

            if (isNative)
            {
                nativeGrid   = new MacPropertyGrid();
                propertyGrid = nativeGrid;

                gtkWidget           = Components.Mac.GtkMacInterop.NSViewToGtkWidget(nativeGrid);
                gtkWidget.CanFocus  = true;
                gtkWidget.Sensitive = true;
                gtkWidget.Focused  += Widget_Focused;

                nativeGrid.Focused += PropertyGrid_Focused;
                frame.Add(gtkWidget);
            }
            else
            {
#endif
            grid          = new pg.PropertyGrid();
            propertyGrid  = grid;
            grid.Changed += Grid_Changed;
            frame.Add(grid);
#if MAC
        }
#endif
            frame.ShowAll();
        }
Beispiel #3
0
        public ExecutionResultViewModel(bool isTestRun)
        {
            Result     = new ObservableCollection <JobOutput>();
            _isTestRun = isTestRun;

            // Display the property info tool if not visible yet
            var shell        = IoC.Get <IShell>();
            var propertyTool = shell.Tools.FirstOrDefault(t => t is IPropertyGrid);

            if (propertyTool == null || (propertyTool != null && !propertyTool.IsVisible))
            {
                if (propertyTool == null)
                {
                    propertyTool = IoC.Get <IPropertyGrid>();
                }

                _shouldClosePropertyGridOnDeactivate = true;
                shell.ShowTool(propertyTool);
            }

            _inspectorTool = (IPropertyGrid)propertyTool;
            _output        = IoC.Get <IOutput>();
        }
Beispiel #4
0
 public ExplorerView()
 {
     InitializeComponent();
     _propertyGrid = IoC.Get <IPropertyGrid>();
 }
Beispiel #5
0
 public PropertyGridView(IPropertyGrid pg)
 {
     PropertyGrid = pg ?? new PropertyGrid();
     DataContext  = PropertyGrid;
 }
		public PropertyGridView(IPropertyGrid pg)
		{
			PropertyGrid = pg??new PropertyGrid();
			DataContext = PropertyGrid;
		}
		public EditorViewModel(IPropertyGrid propertyGrid, IExtendedShell extendedShell)
		{
			_extendedShell = extendedShell;
			_propertyGrid = propertyGrid;
		}
Beispiel #8
0
 public EditorProvider(IPropertyGrid propertyGrid, IExtendedShell extendedShell)
 {
     _propertyGrid  = propertyGrid;
     _extendedShell = extendedShell;
 }
Beispiel #9
0
 public EditorViewModel(IPropertyGrid propertyGrid, IExtendedShell extendedShell)
 {
     _extendedShell = extendedShell;
     _propertyGrid  = propertyGrid;
 }
		public EditorProvider(IPropertyGrid propertyGrid, IExtendedShell extendedShell)
		{
			_propertyGrid = propertyGrid;
			_extendedShell = extendedShell;
		}