using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace UniversalEditor.UserInterface { public interface IHostApplicationWindow { event EventHandler WindowClosed; void NewFile(); void NewProject(bool combineObjects = false); void OpenFile(); void OpenFile(params string[] FileNames); void OpenProject(bool combineObjects = false); void OpenProject(string FileName, bool combineObjects = false); void SaveFile(); void SaveFileAs(); void SaveFileAs(string FileName, DataFormat df); void SaveProject(); void SaveProjectAs(); void SaveProjectAs(string FileName, DataFormat df); void SaveAll(); void CloseFile(); void CloseWindow(); /// /// Displays the "Options" dialog (on Windows, under the "Tools" menu; on Linux, under the "Edit" /// menu, labeled as "Preferences"). /// /// True if the user accepted the dialog; false otherwise. bool ShowOptionsDialog(); void ToggleMenuItemEnabled(string menuItemName, bool enabled); void RefreshCommand(object nativeCommandObject); void UpdateStatus(string statusText); void UpdateProgress(bool visible); void UpdateProgress(int minimum, int maximium, int value); void ActivateWindow(); } public class IHostApplicationWindowCollection : System.Collections.ObjectModel.Collection { } }