aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/TEMP/Tango.Scripting/Tango.Scripting.Editors
ModeNameSize
-rw-r--r--AvalonEditCommands.cs3857logstatsplain
d---------CodeCompletion571logstatsplain
d---------Converters126logstatsplain
d---------Document1190logstatsplain
d---------Editing1207logstatsplain
-rw-r--r--ExtensionMethods.cs1010logstatsplain
d---------Folding433logstatsplain
d---------Highlighting1002logstatsplain
d---------Images308logstatsplain
d---------Indentation141logstatsplain
d---------Intellisense1429logstatsplain
d---------Popups141logstatsplain
d---------Properties97logstatsplain
d---------Rendering1892logstatsplain
-rw-r--r--ScriptEditor.cs59641logstatsplain
d---------Search547logstatsplain
d---------Snippets640logstatsplain
-rw-r--r--Tango.Scripting.Editors.csproj33395logstatsplain
-rw-r--r--TextEditor.cs34174logstatsplain
-rw-r--r--TextEditor.xaml3212logstatsplain
-rw-r--r--TextEditorAutomationPeer.cs1839logstatsplain
-rw-r--r--TextEditorComponent.cs1258logstatsplain
-rw-r--r--TextEditorOptions.cs12333logstatsplain
-rw-r--r--TextEditorWeakEventManager.cs1716logstatsplain
-rw-r--r--TextViewPosition.cs4030logstatsplain
-rw-r--r--Theme.xaml217363logstatsplain
d---------Themes82logstatsplain
d---------Utils1060logstatsplain
d---------Xml1150logstatsplain
-rw-r--r--app.config2676logstatsplain
-rw-r--r--packages.config3844logstatsplain
w"> get; set; } /// <summary> /// Gets or sets the printing manager. /// </summary> [TangoInject] public IPrintingManager PrintingManager { get; set; } /// <summary> /// Gets or sets the connectivity provider. /// </summary> [TangoInject] public IConnectivityProvider ConnectivityProvider { get; set; } /// <summary> /// Gets or sets the hot spot provider. /// </summary> [TangoInject] public IHotSpotProvider HotSpotProvider { get; set; } /// <summary> /// Gets or sets the remote assistance provider. /// </summary> [TangoInject] public IRemoteAssistanceProvider RemoteAssistanceProvider { get; set; } /// <summary> /// Gets or sets the storage provider. /// </summary> [TangoInject] public IStorageProvider StorageProvider { get; set; } /// <summary> /// Gets or sets the event logger. /// </summary> [TangoInject] public IEventLogger EventLogger { get; set; } /// <summary> /// Gets or sets the machine data synchronizer. /// </summary> [TangoInject] public IMachineDataSynchronizer MachineDataSynchronizer { get; set; } /// <summary> /// Gets or sets the remote desktop service. /// </summary> [TangoInject] public IRemoteDesktopService RemoteDesktopService { get; set; } private PPCSettings _settings; /// <summary> /// Gets the main PPC settings. /// </summary> public PPCSettings Settings { get { if (_settings == null) { _settings = SettingsManager.Default.GetOrCreate<PPCSettings>(); } return _settings; } private set { _settings = value; } } private bool _isVisible; /// <summary> /// Gets or sets a value indicating whether this <see cref="PPCViewModel"/> view is visible. /// </summary> public bool IsVisible { get { return _isVisible; } private set { _isVisible = value; RaisePropertyChangedAuto(); } } /// <summary> /// Called when the application has been started. /// </summary> public abstract void OnApplicationStarted(); /// <summary> /// Called when the application is shutting down. /// </summary> public virtual void OnApplicationShuttingDown() { } /// <summary> /// Called when the navigation system has navigated to this VM view. /// </summary> public virtual void OnNavigatedTo() { IsVisible = true; } /// <summary> /// Called when the navigation system has navigated to this VM view. /// </summary> /// <param name="fromVM">The view model instance of the previous view model</param> public virtual void OnNavigatedTo(PPCViewModel fromVM) { } /// <summary> /// Called when the navigation system has navigated from this VM view. /// </summary> public virtual void OnNavigatedFrom() { IsVisible = false; } /// <summary> /// Called before the navigation system has navigated to this VM view. /// </summary> public virtual void OnBeforeNavigatedTo() { } /// <summary> /// Called before the navigation system has navigated from this VM view. /// </summary> public virtual void OnBeforeNavigatedFrom() { IsVisible = false; } /// <summary> /// Raises the specified message using the default <see cref="TangoMessenger"/>. /// </summary> /// <typeparam name="T"></typeparam> /// <param name="message">The message.</param> protected void RaiseMessage<T>(T message) where T : class { TangoMessenger.Default.Send<T>(message); } /// <summary> /// Raises the specified message using the default <see cref="TangoMessenger"/>. /// </summary> /// <typeparam name="T"></typeparam> protected void RaiseMessage<T>() where T : class { TangoMessenger.Default.Send<T>(Activator.CreateInstance<T>()); } /// <summary> /// Registers a message handle for the specified message type T. /// </summary> /// <typeparam name="T"></typeparam> /// <param name="handler">The handler.</param> protected void RegisterForMessage<T>(Action<T> handler) { TangoMessenger.Default.Register<T>(handler); } /// <summary> /// Called before the navigation system navigates from this object. /// Return false to abort the navigation. /// </summary> /// <returns></returns> public virtual Task<bool> OnNavigateOutRequest() { return Task.FromResult(true); } /// <summary> /// Called before the navigation system navigates back from this object. /// Return false to abort the navigation. /// </summary> /// <returns></returns> public virtual Task<bool> OnNavigateBackRequest() { return Task.FromResult(true); } /// <summary> /// Called when the application is ready and all modules views are loaded. /// </summary> public virtual void OnApplicationReady() { } } /// <summary> /// Represents a PPC view model base class a View property as an instance of a <see cref="IPPCView"/> contract. /// </summary> /// <typeparam name="T"></typeparam> /// <seealso cref="Tango.SharedUI.ViewModel" /> public abstract class PPCViewModel<T> : PPCViewModel where T : IPPCView { private T _view; /// <summary> /// Gets the IPPCView instance. /// </summary> [TangoInject(TangoInjectMode.WhenAvailable)] public T View { get { return _view; } set { _view = value; ViewAttached = true; OnViewAttached(); } } /// <summary> /// Gets a value indicating whether the instance of IPPCView is available. /// </summary> public bool ViewAttached { get; private set; } /// <summary> /// Called when the application has been started. /// </summary> public override void OnApplicationStarted() { } /// <summary> /// Called when the instance of IPPCView is available. /// </summary> public virtual void OnViewAttached() { } } }