public ImagesComponent( IEditor editor, IExplorer explorer, IPresentation presentation, IFileSystemErrorView dialogView, ISelection selection, IEntityManager entityManager, IClipboardService clipboard, IQueryHistory state, IQueryFactory queryFactory, IQueryCompiler queryCompiler, IQueryEvaluatorFactory queryEvaluatorFactory) { _editor = editor; _explorer = explorer; _presentation = presentation; _dialogView = dialogView; _selection = selection; _entityManager = entityManager; _clipboard = clipboard; _queryHistory = state; _queryFactory = queryFactory; _queryCompiler = queryCompiler; _queryEvaluatorFactory = queryEvaluatorFactory; }
public DirectoryTreePresenter( IDirectoryTreeView view, IQueryHistory state, IQueryFactory queryFactory, IFileSystemErrorView dialogView, IFileSystem fileSystem, IExplorer explorer, IClipboardService clipboard) { View = view; _state = state; _queryFactory = queryFactory; _fileSystem = fileSystem; _clipboard = clipboard; _dialogView = dialogView; _explorer = explorer; // update the view UpdateRootDirectories(); SetCurrentQuery(_state.Current); // subscribe to events SubscribeTo(View, "View"); _state.QueryExecuted += StateOnQueryExecuted; }
public AttributesComponent( IAttributeManager attributes, IEntityManager entities, IAttributeCache attributeCache, IQueryHistory queryHistory) { _attributes = attributes; _entityManager = entities; _attributeCache = attributeCache; _queryHistory = queryHistory; }
public Editor( IFileSystem fileSystem, IFileSystemErrorView dialogView, IQueryHistory queryHistory, IQueryCompiler queryCompiler, IQueryErrorListener queryErrorListener, IQuerySuggestions querySuggestions) { _fileSystem = fileSystem; _dialogView = dialogView; _queryHistory = queryHistory; _queryCompiler = queryCompiler; _queryErrorListener = queryErrorListener; _querySuggestions = querySuggestions; }
public ExplorerComponent( IQueryHistory state, IQueryFactory queryFactory, IFileSystemErrorView dialogView, IFileSystem fileSystem, IExplorer explorer, IClipboardService clipboard) { _state = state; _queryFactory = queryFactory; _fileSystem = fileSystem; _clipboard = clipboard; _dialogView = dialogView; _explorer = explorer; }
public AttributesPresenter( IAttributeView view, IAttributeManager attrManager, IEntityManager entityManager, IAttributeCache attributeCache, IQueryHistory queryHistory) { View = view; _entityManager = entityManager; _attributeCache = attributeCache; _queryHistory = queryHistory; _attributes = attrManager; // register event handlers _queryHistory.BeforeQueryExecuted += QueryHistory_BeforeQueryExecuted; _attributes.Selection.BeforeChanged += Selection_BeforeChanged; _attributes.Selection.Changed += Selection_Changed; SubscribeTo(View, "View"); UpdateAttributes(); }
public QueryEditorPresenter( IQueryEditorView view, IFileSystemErrorView dialogErrorView, IQueryHistory appHistory, IQueryCompiler queryCompiler, IQueryErrorListener queryErrorListener, IQuerySuggestions querySuggestions, IEditor editor) { View = view; _dialogErrorView = dialogErrorView; _queryCompiler = queryCompiler; _queryErrorListener = queryErrorListener; _querySuggestions = querySuggestions; _appHistory = appHistory; _editor = editor; SubscribeTo(View, "View"); _queryCompiler.Views.Changed += QueryViewsOnChanged; UpdateViews(); }
public ImagesPresenter( IImagesView view, IEditor editor, IExplorer explorer, IPresentation presentation, IFileSystemErrorView dialogView, ISelection selection, IEntityManager entityManager, IClipboardService clipboard, IQueryHistory queryHistory, IQueryFactory queryFactory, IQueryEvaluatorFactory queryEvaluatorFactory) { View = view; _editor = editor; _explorer = explorer; _presentation = presentation; _dialogView = dialogView; _selection = new SelectionState(View, selection); _entityManager = entityManager; _clipboard = clipboard; _queryFactory = queryFactory; _queryEvaluatorFactory = queryEvaluatorFactory; _queryHistory = queryHistory; // initialize view View.ItemSize = CurrentItemSize; View.ContextOptions = Settings.Default.ExternalApplications; // subscribe to events _selection.ActiveItemChanged += SelectionState_ActiveItemChanged; _queryHistory.QueryExecuted += QueryHistory_QueryExecuted; Settings.Default.PropertyChanged += Settings_PropertyChanged; SubscribeTo(View, "View"); SubscribeTo(View.History, "HistoryView"); QueryHistory_QueryExecuted(this, new QueryEventArgs(_queryHistory.Current)); }