예제 #1
0
        public GeneratorColorTheme(IColorTheme colorTheme)
        {
            Name   = colorTheme.Name;
            Colors = colorTheme.Colors;

            GeneratorColorThemeMap.Add(colorTheme, this);
        }
예제 #2
0
 public ColorfulStdOut(
     [NotNull] IStdOut stdOut,
     [NotNull] IColorTheme colorTheme)
 {
     _stdOut     = stdOut ?? throw new ArgumentNullException(nameof(stdOut));
     _colorTheme = colorTheme ?? throw new ArgumentNullException(nameof(colorTheme));
 }
예제 #3
0
        public ThemeColorPanel(ThemeConfig activeTheme)
            : base(FlowDirection.TopToBottom)
        {
            string currentProviderName = UserSettings.Instance.get(UserSettingsKey.ThemeName) ?? "";

            if (AppContext.ThemeProviders.TryGetValue(currentProviderName, out IColorTheme currentProvider))
            {
                _themeProvider = currentProvider;
            }
            else
            {
                _themeProvider = AppContext.ThemeProviders.Values.First();
            }

            this.SelectionColor = activeTheme.GetBorderColor(80);

            // Add color selector
            this.AddChild(colorSelector = new AccentColorsWidget(this)
            {
                Margin = new BorderDouble(activeTheme.DefaultContainerPadding, 0)
            });

            this.AddChild(previewButtonPanel = new FlowLayoutWidget()
            {
                HAnchor         = HAnchor.Stretch,
                VAnchor         = VAnchor.Fit,
                BackgroundColor = this.SelectionColor,
                Padding         = new BorderDouble(left: colorSelector.ColorButtons.First().Border.Left)
            });

            this.CreateThemeModeButtons();
        }
예제 #4
0
        public Presenter(
            IBookmarks bookmarks,
            IFiltersList hlFilters,
            IView view,
            LogViewer.IPresenterInternal viewerPresenter,
            IPresentersFacade navHandler,
            IColorTheme theme,
            IChangeNotification parentChangeNotification,
            Telemetry.ITelemetryCollector telemetryCollector
            )
        {
            this.hlFilters          = hlFilters;
            this.bookmarks          = bookmarks;
            this.view               = view;
            this.viewerPresenter    = viewerPresenter;
            this.navHandler         = navHandler;
            this.changeNotification = parentChangeNotification.CreateChainedChangeNotification(false);

            this.getFocusedMessage = Selectors.Create(() => viewerPresenter.FocusedMessage,
                                                      message => message?.GetLogSource() == null ? null : message);
            var getBookmarkData = bookmarks == null ? () => (null, null) :
                                  Selectors.Create(getFocusedMessage, () => bookmarks.Items, (focused, bmks) =>
            {
                if (focused == null)
                {
                    return(noSelection, null);
                }
                var isBookmarked = IsMessageBookmarked(focused);
                return(isBookmarked ? "yes" : "no", isBookmarked ? "clear bookmark" : "set bookmark");
            });
예제 #5
0
        public ThemeColorPanel(ThemeConfig theme, AccentColorsWidget colorSelector)
            : base(FlowDirection.TopToBottom)
        {
            this.colorSelector = colorSelector;
            this.theme         = theme;

            string currentProviderName = UserSettings.Instance.get(UserSettingsKey.ThemeName) ?? "";

            if (AppContext.ThemeProviders.TryGetValue(currentProviderName, out IColorTheme currentProvider))
            {
                _themeProvider = currentProvider;
            }
            else
            {
                _themeProvider = AppContext.ThemeProviders.Values.First();
            }

            accentPanelColor = theme.ResolveColor(theme.SectionBackgroundColor, theme.SlightShade);

            this.SelectionColor = theme.MinimalShade;

            this.AddChild(previewButtonPanel = new FlowLayoutWidget()
            {
                HAnchor = HAnchor.Stretch,
                VAnchor = VAnchor.Fit,
                //BackgroundColor = activeTheme.MinimalShade
            });

            this.CreateThemeModeButtons();
        }
예제 #6
0
        public Presenter(
            IBookmarks bookmarks,
            ILogSourcesManager sourcesManager,
            IView view,
            IHeartBeatTimer heartbeat,
            LoadedMessages.IPresenter loadedMessagesPresenter,
            IClipboardAccess clipboardAccess,
            IColorTheme colorTheme,
            IChangeNotification changeNotification,
            ITraceSourceFactory traceSourceFactory
            )
        {
            this.bookmarks = bookmarks;
            this.view      = view;
            this.loadedMessagesPresenter = loadedMessagesPresenter;
            this.clipboardAccess         = clipboardAccess;
            this.colorTheme         = colorTheme;
            this.changeNotification = changeNotification;
            this.trace = traceSourceFactory.CreateTraceSource("UI", "bmks");

            itemsSelector = Selectors.Create(
                () => bookmarks.Items,
                () => selectedBookmarks,
                () => colorTheme.ThreadColors,
                () => loadedMessagesPresenter.LogViewerPresenter.Coloring,
                CreateViewItems
                );
            focusedMessagePositionSelector = Selectors.Create(
                () => loadedMessagesPresenter.LogViewerPresenter.FocusedMessageBookmark,
                () => bookmarks.Items,
                FindFocusedMessagePosition
                );

            view.SetViewModel(this);
        }
예제 #7
0
        public Display(IDisplaySettings displaySettings, IColorTheme colorTheme)
        {
            ds = displaySettings;
            ct = colorTheme;

            Initialize();
        }
예제 #8
0
        public Display(IDisplaySettings displaySettings)
        {
            ds = displaySettings;
            ct = new DefaultColorTheme();

            Initialize();
        }
예제 #9
0
        public Theme(IColorTheme colorTheme, IFontTheme fontTheme, IImagesTheme imgTheme)
        {
            this.colorTheme = colorTheme;
            this.fontTheme  = fontTheme;
            this.imgTheme   = imgTheme;

            ResetToDefaults();
        }
예제 #10
0
        Theme CreateRedTheme()
        {
            IColorTheme  colorTheme = RedColorTheme.Instance;
            IFontTheme   fontTheme  = RedFontTheme.Instance;
            IImagesTheme imgTheme   = RedImagesTheme.Instance;

            return(new Theme(colorTheme, fontTheme, imgTheme));
        }
예제 #11
0
        Theme CreatePinkTheme()
        {
            IColorTheme  colorTheme = PinkColorTheme.Instance;
            IFontTheme   fontTheme  = PinkFontTheme.Instance;
            IImagesTheme imgTheme   = PinkImagesTheme.Instance;

            return(new Theme(colorTheme, fontTheme, imgTheme));
        }
예제 #12
0
        Theme CreateBlueTheme()
        {
            IColorTheme  colorTheme = BlueColorTheme.Instance;
            IFontTheme   fontTheme  = BlueFontTheme.Instance;
            IImagesTheme imgTheme   = BlueImagesTheme.Instance;

            return(new Theme(colorTheme, fontTheme, imgTheme));
        }
예제 #13
0
 public ThreadPropertiesForm(IThread thread, IPresentersFacade handler, IColorTheme theme)
 {
     this.thread  = thread;
     this.handler = handler;
     this.theme   = theme;
     InitializeComponent();
     UpdateView();
 }
예제 #14
0
 public AnsiLogWriter(
     [NotNull] IConsole defaultConsole,
     [NotNull] IColorTheme colorTheme,
     [NotNull] IColorStorage colorStorage)
 {
     _colorStorage   = colorStorage ?? throw new ArgumentNullException(nameof(colorStorage));
     _colorTheme     = colorTheme ?? throw new ArgumentNullException(nameof(colorTheme));
     _defaultConsole = defaultConsole ?? throw new ArgumentNullException(nameof(defaultConsole));
 }
예제 #15
0
        private void comboboxCallback(object sender, EventArgs e)
        {
            if (!MapControl.Current.Layers.Any(x => x.LayerData.Name == "地块"))
            {
                return;
            }

            MapLayer parcelLayer = MapControl.Current.Layers.First(x => x.LayerData.Name == "地块");
            string   currentItem = _comboBox.SelectedItem as string;

            if (currentItem == "无")
            {
                _vLayout.Children.Clear();

                _checkBox.Visibility = System.Windows.Visibility.Collapsed;
                ParcelTheme          = null;
            }
            else if (currentItem == "用地性质")
            {
                _checkBox.Visibility = System.Windows.Visibility.Visible;

                ParcelUsageTheme usageTheme = new ParcelUsageTheme();
                ParcelTheme = usageTheme;
                _dictColor  = usageTheme.DictColor;
                ShowLegend();
            }
            else if (currentItem == "容积率" || currentItem == "建筑密度" || currentItem == "绿地率" || currentItem == "建筑限高")
            {
                _checkBox.Visibility = System.Windows.Visibility.Visible;

                var gradientTheme = new BiColorGradientTheme();
                gradientTheme.Property = currentItem;
                gradientTheme.MinValue = GetPropMinValue(parcelLayer, currentItem);
                gradientTheme.MaxValue = GetPropMaxValue(parcelLayer, currentItem);
                ParcelTheme            = gradientTheme;
                _dictColor             = GetGradientDictColor(gradientTheme);
                ShowLegend();
            }
            if (ParcelTheme != null) // mod 20120725
            {
                parcelLayer.ApplyColorTheme(ParcelTheme);
                if (ParcelTheme is IDataColorTheme)
                {
                    string prop = (ParcelTheme as IDataColorTheme).Property;
                    parcelLayer.ApplyToolTip(f => UIHelper.TitledToolTip(prop, f[prop]));
                }
                else if (ParcelTheme is ParcelUsageTheme)
                {
                    parcelLayer.ApplyToolTip(f => UIHelper.TitledToolTip(f["用地代码"], ParcelColorCfg.GetUsageByCode(f["用地代码"])));
                }
            }
            else
            {
                parcelLayer.ClearColorTheme();
                parcelLayer.ApplyToolTip(f => null);
            }
        }
예제 #16
0
        public StateInspectorPresenter(
            IView view,
            IStateInspectorVisualizerModel model,
            IUserNamesProvider shortNames,
            ILogSourcesManager logSources,
            LoadedMessages.IPresenter loadedMessagesPresenter,
            IBookmarks bookmarks,
            IModelThreads threads,
            IPresentersFacade presentersFacade,
            IClipboardAccess clipboardAccess,
            SourcesManager.IPresenter sourcesManagerPresenter,
            IColorTheme theme
            )
        {
            this.view                    = view;
            this.model                   = model;
            this.shortNames              = shortNames;
            this.threads                 = threads;
            this.presentersFacade        = presentersFacade;
            this.bookmarks               = bookmarks;
            this.clipboardAccess         = clipboardAccess;
            this.sourcesManagerPresenter = sourcesManagerPresenter;
            this.loadedMessagesPresenter = loadedMessagesPresenter;
            this.theme                   = theme;

            view.SetEventsHandler(this);

            logSources.OnLogSourceAnnotationChanged += (sender, e) =>
            {
                InvalidateTree();
            };

            loadedMessagesPresenter.LogViewerPresenter.FocusedMessageChanged += (sender, args) =>
            {
                HandleFocusedMessageChange();
            };

            bookmarks.OnBookmarksChanged += (sender, args) =>
            {
                view.BeginUpdateStateHistoryList(false, false);
                view.EndUpdateStateHistoryList(null, false, redrawFocusedMessageMark: true);
            };

            model.Changed += (sender, args) =>
            {
                InvalidateTree();
                HandleFocusedMessageChange();
                RemoveMissingGroupsFromCache();
            };

            InvalidateTree();
            HandleFocusedMessageChange();
        }
예제 #17
0
        public ColorTheme(
            [NotNull] ILoggerContext context,
            [NotNull] IColorTheme defaultColorTheme,
            [NotNull] IColorTheme teamCityColorTheme)
        {
            _colorThemes = new Dictionary <ColorThemeMode, IColorTheme>
            {
                { ColorThemeMode.Default, defaultColorTheme },
                { ColorThemeMode.TeamCity, teamCityColorTheme }
            };

            _context = context ?? throw new ArgumentNullException(nameof(context));
        }
 public TeamCityHierarchicalMessageWriter(
     [NotNull] ILoggerContext context,
     [NotNull] IColorTheme colorTheme,
     [NotNull] ITeamCityWriter writer,
     [NotNull] IServiceMessageParser serviceMessageParser,
     [NotNull] IColorStorage colorStorage)
 {
     _context              = context ?? throw new ArgumentNullException(nameof(context));
     _colorStorage         = colorStorage ?? throw new ArgumentNullException(nameof(colorStorage));
     _colorTheme           = colorTheme ?? throw new ArgumentNullException(nameof(colorTheme));
     _writer               = writer ?? throw new ArgumentNullException(nameof(writer));
     _serviceMessageParser = serviceMessageParser ?? throw new ArgumentNullException(nameof(serviceMessageParser));
 }
예제 #19
0
        public void BeforeEach()
        {
            searchResultModel = Substitute.For <ISearchResultModel>();
            highlightFilters  = Substitute.For <IFiltersList>();
            selectionManager  = Substitute.For <ISelectionManager>();
            messagesSource    = Substitute.For <IMessagesSource>();
            colorTheme        = Substitute.For <IColorTheme>();
            wordSelection     = new WordSelection(RegularExpressions.FCLRegexFactory.Instance);
            isRawMessagesMode = false;
            viewSize          = 3;
            highlightFilters.FilteringEnabled.Returns(true);
            colorTheme.HighlightingColors.Returns(ImmutableArray.CreateRange(Enumerable.Range(
                                                                                 (int)FilterAction.IncludeAndColorizeFirst, FilterAction.IncludeAndColorizeLast - FilterAction.IncludeAndColorizeFirst + 1)
                                                                             .Select(i => MakeHightlightingColor((FilterAction)i))
                                                                             ));
            msg1 = new Message(0, 1, null, new MessageTimestamp(), new StringSlice("test message 1"), SeverityFlag.Info);
            msg2 = new Message(0, 1, null, new MessageTimestamp(), new StringSlice("test message 2"), SeverityFlag.Info);
            msgWithMultilineText = new Message(0, 1, null, new MessageTimestamp(), new StringSlice(
                                                   @"2019/03/27 06:27:52.143 T#1 I app: model creation finished
import { imock, instance, when, anything, verify, resetCalls, MockPropertyPolicy, deepEqual } from 'ts-mockito';
import * as expect from 'expect';
import { Map, OrderedSet } from 'immutable';
import { ChangeNotification } from '../../../../client/model/utils';
import { PodStore, Pod } from '../../../../client/model/pod/store';
import { MeetingSession } from '../../../../client/model/meeting/impl/meeting/meetingSession';
import { Meeting, MeetingParticipant, LocalMeetingParticipant } from '../../../../client/model/meeting';
import { Conversation, ConversationStore, StreamId } from '../../../../client/model/conversation/store';
import { MeetingStartupOptions, Meeting as MeetingBase, MediaDevices, ParticipantTracks, ScreenTrack } from '../../../../client/model/meeting';
import { Protocol } from '../../../../client/model/meeting/protocol';
import { MeetingImpl } from '../../../../client/model/meeting/impl/meeting/impl/meetingImpl';
import { RtcManager, RtcManagerConfig } from '../../../../client/model/rtcManager';
import { MeetingAnalytics, LeaveSources } from '../../../../client/model/analytics';
import { MeetingParticipants } from '../../../../client/model/meeting/impl/meeting/meetingParticipants';
import { UncaughtExceptionsTrap } from '../../../utils/uncaughtExceptionsTrap';
import { AutoResetEvent, waiter } from '../../../utils/promise-utils';
import { MeetingLocalMedia } from '../../../../client/model/meeting/impl/media/meetingLocalMedia';
import { MeetingRemoteMedia } from '../../../../client/model/meeting/impl/media/meetingRemoteMedia';
import { LolexClock, install } from 'lolex';
import { RtcTokenProvider } from '../../../../client/model/meeting/impl/protocol/impl/rtcTokenProviderImpl';
import { User, UserStore, CurrentUser, UserId } from '../../../../client/model/users/store';
import { fireAndForget } from '../../../utils/promise-utils';
import { RtcSettingsStore, RtcSettings } from '../../../../client/model/settings/store';
import { GeoRouter } from '../../../../client/model/georouting/geoRouter';
import { UserBackend } from '../../../../client/model/users/backend';

describe('MeetingV2', () => {
    let meeting: Meeting;"
                                                   ), SeverityFlag.Info);
        }
 public void Init()
 {
     view = Substitute.For <IView>();
     presentationObjectsFactory = Substitute.For <Postprocessing.Common.IPresentationObjectsFactory>();
     bookmarks               = Substitute.For <IBookmarks>();
     storageManager          = Substitute.For <Persistence.IStorageManager>();
     loadedMessagesPresenter = Substitute.For <LoadedMessages.IPresenter>();
     userNamesProvider       = Substitute.For <IUserNamesProvider>();
     view.When(v => v.SetViewModel(Arg.Any <IViewModel>())).Do(x => viewModel = x.Arg <IViewModel>());
     quickSearchTextBoxPresenter = Substitute.For <QuickSearchTextBox.IPresenter>();
     changeNotification          = Substitute.For <IChangeNotification>();
     theme = Substitute.For <IColorTheme>();
     theme.ThreadColors.Returns(ImmutableArray.Create(new Color(1), new Color(2)));
     presentationObjectsFactory.CreateQuickSearch(Arg.Any <QuickSearchTextBox.IView>()).Returns(quickSearchTextBoxPresenter);
 }
예제 #21
0
        private void ColorThemeSwitch_MouseDown(object sender, MouseEventArgs e)
        {
            if (ColorThemeSwitch.Checked == true)
            {
                ColorThemeLable.Text = "Темная тема";
                _colorTheme          = new ColorThemeDark();
            }
            else
            {
                ColorThemeLable.Text = "Светлая тема";
                _colorTheme          = new ColorThemeLight();
            }

            ChangeTheme();
            Refresh();
        }
        public Presenter(
            IView view,
            ILogSourcesManager logSources,
            Preprocessing.IManager preprocessings,
            IModelThreads threads,
            IPresentersFacade navHandler,
            IAlertPopup alerts,
            IClipboardAccess clipboard,
            IShellOpen shellOpen,
            IColorTheme theme,
            IHeartBeatTimer heartBeat,
            IChangeNotification changeNotification
            )
        {
            this.view               = view;
            this.presentersFacade   = navHandler;
            this.alerts             = alerts;
            this.preprocessings     = preprocessings;
            this.clipboard          = clipboard;
            this.shellOpen          = shellOpen;
            this.theme              = theme;
            this.changeNotification = changeNotification.CreateChainedChangeNotification(initiallyActive: false);

            logSources.OnLogSourceStatsChanged += (s, e) =>
            {
                if (s == logSources)
                {
                    pendingUpdateFlag.Invalidate();
                }
            };

            threads.OnThreadListChanged       += (s, e) => pendingUpdateFlag.Invalidate();
            threads.OnThreadPropertiesChanged += (s, e) => pendingUpdateFlag.Invalidate();

            heartBeat.OnTimer += (s, e) =>
            {
                if (pendingUpdateFlag.Validate())
                {
                    ++forceUpdateRevision;
                    changeNotification.Post();
                }
            };

            this.getViewState = () => emptyViewState;

            view.SetViewModel(this);
        }
 public DefaultLogWriter(
     [NotNull] IConsole defaultConsole,
     [NotNull] IColorTheme colorTheme)
 {
     _colorTheme         = colorTheme ?? throw new ArgumentNullException(nameof(colorTheme));
     _defaultConsole     = defaultConsole ?? throw new ArgumentNullException(nameof(defaultConsole));
     _hasBackgroundColor = true;
     try
     {
         // ReSharper disable once UnusedVariable
         var backgroundColor = BackgroundColor;
     }
     catch (IOException)
     {
         _hasBackgroundColor = false;
     }
 }
예제 #24
0
        public override void ApplyColorTheme(IColorTheme theme)
        {
            for (int i = 0; i < Features.Count; i++)
            {
                var feature = LayerData.Features[i];
                var drawing = Features[feature];

                if (LayerData.GeoType == "2")
                {
                    drawing.Pen.Brush = new SolidColorBrush(theme.GetColor(feature));
                }
                else
                {
                    drawing.Brush     = new SolidColorBrush(theme.GetColor(feature));
                    drawing.Pen.Brush = Brushes.Black;
                }
            }
        }
예제 #25
0
        public virtual void ApplyColorTheme(IColorTheme theme)
        {
            for (int i = 0; i < Features.Count; i++)
            {
                var feature = LayerData.Features[i];
                var shape   = Features[feature];

                if (LayerData.GeoType == "2")
                {
                    shape.Stroke = new SolidColorBrush(theme.GetColor(feature));
                }
                else
                {
                    shape.Fill   = new SolidColorBrush(theme.GetColor(feature));
                    shape.Stroke = new SolidColorBrush(Colors.Black);
                }
            }
        }
예제 #26
0
        public HighlightBackgroundColorsTable(
            IColorTheme colorTheme
            )
        {
            var numColors = FilterAction.IncludeAndColorizeLast - FilterAction.IncludeAndColorizeFirst + 1;

            if (lightThemeColors.Length != numColors)
            {
                throw new Exception("inconsistent constants");
            }
            colorsSelector = Selectors.Create(
                () => colorTheme.Mode,
                theme => ImmutableArray.CreateRange((
                                                        theme == ColorThemeMode.Light ?
                                                        lightThemeColors
                                  : HSLColorsGenerator.Generate(numHues: numColors, saturation: 0.80, lightness: 0.30)
                                                        ).Select(ColorTableUtils.FromRGB))
                );
        }
예제 #27
0
        public Presenter(
            IModelThreads threads,
            ILogSourcesManager logSources,
            IView view,
            Presenters.LogViewer.IPresenterInternal viewerPresenter,
            IPresentersFacade navHandler,
            IHeartBeatTimer heartbeat,
            IColorTheme theme)
        {
            this.threads         = threads;
            this.view            = view;
            this.viewerPresenter = viewerPresenter;
            this.navHandler      = navHandler;
            this.logSources      = logSources;
            this.theme           = theme;

            viewerPresenter.FocusedMessageChanged += delegate(object sender, EventArgs args)
            {
                view.UpdateFocusedThreadView();
            };
            threads.OnThreadListChanged += (sender, args) =>
            {
                updateTracker.Invalidate();
            };
            threads.OnThreadPropertiesChanged += (sender, args) =>
            {
                updateTracker.Invalidate();
            };
            logSources.OnLogSourceVisiblityChanged += (sender, args) =>
            {
                updateTracker.Invalidate();
            };
            heartbeat.OnTimer += (sender, args) =>
            {
                if (args.IsNormalUpdate && updateTracker.Validate())
                {
                    UpdateView();
                }
            };

            view.SetPresenter(this);
        }
예제 #28
0
        public HighlightingManager(
            ISearchResultModel searchResultModel,
            Func <MessageTextGetter> displayTextGetterSelector,
            Func <int> viewSizeSelector,
            IFiltersList highlightFilters,
            ISelectionManager selectionManager,
            IWordSelection wordSelection,
            IColorTheme theme,
            RegularExpressions.IRegexFactory regexFactory
            )
        {
            var viewSizeQuantizedSelector = Selectors.Create(
                viewSizeSelector,
                viewSize => (1 + (viewSize / 16)) * 16
                );

            this.getHighlightingHandler = Selectors.Create(
                () => (highlightFilters?.FilteringEnabled, highlightFilters?.Items, highlightFilters?.FiltersVersion),
                displayTextGetterSelector,
                viewSizeQuantizedSelector,
                () => theme.HighlightingColors,
                (filtersData, displayTextGetter, viewSize, hlColors) => filtersData.FilteringEnabled == true ?
                new CachingHighlightingHandler(msg => GetHlHighlightingRanges(msg, filtersData.Items, displayTextGetter, hlColors), ViewSizeToCacheSize(viewSize))
                                        : (IHighlightingHandler) new DummyHandler()
                );
            this.getSearchResultHandler = Selectors.Create(
                () => searchResultModel?.SearchFiltersList,
                displayTextGetterSelector,
                viewSizeQuantizedSelector,
                (filters, displayTextGetter, viewSize) => filters != null ?
                new CachingHighlightingHandler(msg => GetSearchResultsHighlightingRanges(msg, filters, displayTextGetter), ViewSizeToCacheSize(viewSize))
                                        : null
                );
            this.getSelectionHandler = Selectors.Create(
                () => selectionManager.Selection,
                displayTextGetterSelector,
                viewSizeQuantizedSelector,
                (selection, displayTextGetter, viewSize) =>
                MakeSelectionInplaceHighlightingHander(selection, displayTextGetter, wordSelection, ViewSizeToCacheSize(viewSize), regexFactory)
                );
        }
예제 #29
0
        public Domain(string inputFolderName,
                      IFormCollection <IArea> areas,
                      IFormCollection <IDesign> designs,
                      IFormCollection <ILayout> layouts,
                      IFormCollection <IObject> objects,
                      IFormCollection <IPage> pages,
                      IFormCollection <IResource> resources,
                      IFormCollection <IBackground> backgrounds,
                      IFormCollection <IColorTheme> colorThemes,
                      IFormCollection <IFont> fonts,
                      IFormCollection <IDynamic> dynamics,
                      IFormCollection <IUnitTest> unitTests,
                      ITranslation translation,
                      IPreprocessorDefine preprocessorDefine,
                      IPage homePage,
                      IColorTheme selectedColorTheme,
                      IUnitTest selectedUnitTest)
        {
            InputFolderName    = inputFolderName;
            Areas              = areas;
            Designs            = designs;
            Layouts            = layouts;
            Objects            = objects;
            Pages              = pages;
            Resources          = resources;
            Backgrounds        = backgrounds;
            ColorThemes        = colorThemes;
            Fonts              = fonts;
            Dynamics           = dynamics;
            UnitTests          = unitTests;
            Translation        = translation;
            PreprocessorDefine = preprocessorDefine;
            HomePage           = homePage;
            SelectedColorTheme = selectedColorTheme;
            SelectedUnitTest   = selectedUnitTest;

            HomePage.SetIsReachable();
        }
예제 #30
0
 public PresenterFactory(
     IChangeNotification changeNotification,
     IHeartBeatTimer heartbeat,
     IPresentersFacade presentationFacade,
     IClipboardAccess clipboard,
     IBookmarksFactory bookmarksFactory,
     Telemetry.ITelemetryCollector telemetry,
     ILogSourcesManager logSources,
     ISynchronizationContext modelInvoke,
     IModelThreads modelThreads,
     IFiltersList hlFilters,
     IBookmarks bookmarks,
     Settings.IGlobalSettingsAccessor settings,
     ISearchManager searchManager,
     IFiltersFactory filtersFactory,
     IColorTheme theme,
     ITraceSourceFactory traceSourceFactory,
     RegularExpressions.IRegexFactory regexFactory
     )
 {
     this.changeNotification = changeNotification;
     this.heartbeat          = heartbeat;
     this.presentationFacade = presentationFacade;
     this.clipboard          = clipboard;
     this.bookmarksFactory   = bookmarksFactory;
     this.telemetry          = telemetry;
     this.logSources         = logSources;
     this.modelInvoke        = modelInvoke;
     this.modelThreads       = modelThreads;
     this.hlFilters          = hlFilters;
     this.bookmarks          = bookmarks;
     this.settings           = settings;
     this.searchManager      = searchManager;
     this.filtersFactory     = filtersFactory;
     this.theme = theme;
     this.traceSourceFactory = traceSourceFactory;
     this.regexFactory       = regexFactory;
 }
예제 #31
0
		public Theme(IColorTheme colorTheme, IFontTheme fontTheme, IImagesTheme imgTheme)
		{
			this.colorTheme = colorTheme;
			this.fontTheme = fontTheme;
			this.imgTheme = imgTheme;

			ResetToDefaults ();
		}