public override IMyGenDocument Open(IMyGenerationMDI mdi, FileInfo file, params string[] args) { ProjectBrowser edit = null; if (file.Exists) { bool isopen = mdi.IsDocumentOpen(file.FullName); if (!isopen) { edit = new ProjectBrowser(mdi); edit.LoadProject(file.FullName); } else { edit = mdi.FindDocument(file.FullName) as ProjectBrowser; if (edit != null) { edit.Activate(); } } } return edit; }
public ErrorDetail(IMyGenerationMDI mdi) { InitializeComponent(); this.mdi = mdi; this.errorDetailControl.Initialize(); }
public override IMyGenDocument Create(IMyGenerationMDI mdi, params string[] args) { TemplateEditor edit = new TemplateEditor(mdi); switch (args[0]) { case TemplateEditorManager.CSHARP_TEMPLATE: edit.FileNew("ENGINE", ZeusConstants.Engines.DOT_NET_SCRIPT, "LANGUAGE", ZeusConstants.Languages.CSHARP); break; case TemplateEditorManager.VBNET_TEMPLATE: edit.FileNew("ENGINE", ZeusConstants.Engines.DOT_NET_SCRIPT, "LANGUAGE", ZeusConstants.Languages.VBNET); break; case TemplateEditorManager.VBSCRIPT_TEMPLATE: edit.FileNew("ENGINE", ZeusConstants.Engines.MICROSOFT_SCRIPT, "LANGUAGE", ZeusConstants.Languages.VBSCRIPT); break; case TemplateEditorManager.JSCRIPT_TEMPLATE: default: edit.FileNew("ENGINE", ZeusConstants.Engines.MICROSOFT_SCRIPT, "LANGUAGE", ZeusConstants.Languages.JSCRIPT); break; } return(edit); }
public IMyGenDocument Open(IMyGenerationMDI mdi, FileInfo file, params string[] args) { SqlToolForm edit = null; if (file.Exists) { bool isopen = mdi.IsDocumentOpen(file.FullName); if (!isopen) { edit = new SqlToolForm(mdi); edit.Open(file.FullName); } else { edit = mdi.FindDocument(file.FullName) as SqlToolForm; if (edit != null) { edit.Activate(); } } } return(edit); }
public override IMyGenDocument Open(IMyGenerationMDI mdi, FileInfo file, params string[] args) { TemplateEditor edit = null; if (file.Exists) { bool isopen = mdi.IsDocumentOpen(file.FullName); if (!isopen) { edit = new TemplateEditor(mdi); edit.FileOpen(file.FullName); } else { edit = mdi.FindDocument(file.FullName) as TemplateEditor; if (edit != null) { edit.Activate(); } } } return(edit); }
public override IMyGenDocument Open(IMyGenerationMDI mdi, FileInfo file, params string[] args) { TemplateEditor edit = null; if (file.Exists) { bool isopen = mdi.IsDocumentOpen(file.FullName); if (!isopen) { edit = new TemplateEditor(mdi); edit.FileOpen(file.FullName); } else { edit = mdi.FindDocument(file.FullName) as TemplateEditor; if (edit != null) { edit.Activate(); } } } return edit; }
public ErrorDetail(IMyGenerationMDI mdi) { InitializeComponent(); this.mdi = mdi; this.errorDetailControl.Initialize(); }
public FormConvertCodeSmith(IMyGenerationMDI mdi) { this.mdi = mdi; this.myGenExe = new FileInfo(Assembly.GetEntryAssembly().Location); // Required for Windows Form Designer support InitializeComponent(); }
public void Initialize(IMyGenerationMDI mdi, ToolStripItemCollection menuItems) { this.scintilla.AddShortcuts(menuItems); this._fileId = Guid.NewGuid().ToString(); _mdi = mdi; RefreshConnectionInfo(); }
public ProjectBrowserOld(IMyGenerationMDI mdi) { formEditSavedObject = new FormAddEditSavedObject();//mdi); InitializeComponent(); this.mdi = mdi; }
public override IMyGenDocument Open(IMyGenerationMDI mdi, FileInfo file, params string[] args) { ProjectBrowser edit = null; if (file.Exists) { bool isopen = mdi.IsDocumentOpen(file.FullName); if (!isopen) { edit = new ProjectBrowser(mdi); edit.LoadProject(file.FullName); } else { edit = mdi.FindDocument(file.FullName) as ProjectBrowser; if (edit != null) { edit.Activate(); } } } return(edit); }
public FormConvertCodeSmith(IMyGenerationMDI mdi) { this.mdi = mdi; this.myGenExe = new FileInfo(Assembly.GetEntryAssembly().Location); // Required for Windows Form Designer support InitializeComponent(); }
public ProjectBrowserOld(IMyGenerationMDI mdi) { formEditSavedObject = new FormAddEditSavedObject();//mdi); InitializeComponent(); this.mdi = mdi; }
public IMyGenDocument Open(IMyGenerationMDI mdi, FileInfo file, params string[] args) { SqlToolForm edit = null; if (file.Exists) { bool isopen = mdi.IsDocumentOpen(file.FullName); if (!isopen) { edit = new SqlToolForm(mdi); edit.Open(file.FullName); } else { edit = mdi.FindDocument(file.FullName) as SqlToolForm; if (edit != null) { edit.Activate(); } } } return edit; }
public ProjectBrowser(IMyGenerationMDI mdi) { this._mdi = mdi; this._consoleWriteGeneratedDetails = DefaultSettings.Instance.ConsoleWriteGeneratedDetails; InitializeComponent(); this.projectBrowserControl1.ExecutionStarted += new EventHandler(projectBrowserControl1_ExecutionStarted); }
public ProjectBrowser(IMyGenerationMDI mdi) { this._mdi = mdi; this._consoleWriteGeneratedDetails = DefaultSettings.Instance.ConsoleWriteGeneratedDetails; InitializeComponent(); this.projectBrowserControl1.ExecutionStarted += new EventHandler(projectBrowserControl1_ExecutionStarted); }
public void Initialize(IMyGenerationMDI mdi, ToolStripItemCollection menuItems) { this.scintilla.AddShortcuts(menuItems); this._fileId = Guid.NewGuid().ToString(); _mdi = mdi; RefreshConnectionInfo(); }
public DefaultProperties(IMyGenerationMDI mdi) { InitializeComponent(); this.mdi = mdi; this.defaultSettingsControl.ShowOLEDBDialog = new ShowOleDbDialogHandler(ShowOLEDBDialog); this.defaultSettingsControl.Initialize(mdi); }
public DefaultSettingsDialog(IMyGenerationMDI mdi) { InitializeComponent(); _mdi = mdi; _defaultSettingsControl.ShowOleDbDialog = new ShowOleDbDialogHandler(ShowOleDbDialog); _defaultSettingsControl.Initialize(mdi); }
public DefaultSettingsDialog(IMyGenerationMDI mdi) { InitializeComponent(); this._mdi = mdi; this.defaultSettingsControl.ShowOLEDBDialog = new ShowOleDbDialogHandler(ShowOLEDBDialog); this.defaultSettingsControl.Initialize(mdi); }
public SampleDialogContent(IMyGenerationMDI mdi) { this.mdi = mdi; InitializeComponent(); if (!(this.mdi.DockPanel.ActiveDocument is IScintillaEditControl)) { this.button2.Enabled = true; } }
public SampleDialogContent(IMyGenerationMDI mdi) { this.mdi = mdi; InitializeComponent(); if (!(this.mdi.DockPanel.ActiveDocument is IScintillaEditControl)) { this.button2.Enabled = true; } }
public static IMyGenContent CreateContent(IMyGenerationMDI mdi, string key) { IMyGenContent mygencontent = null; if (PluginManager.ContentManagers.ContainsKey(key)) { mygencontent = PluginManager.ContentManagers[key].Create(mdi); } return(mygencontent); }
public UserMetaData(IMyGenerationMDI mdi) { InitializeComponent(); this.mdi = mdi; this.ShowHint = DockState.DockRight; DefaultSettings settings = DefaultSettings.Instance; this.UserMetaDataFileName = settings.UserMetaDataFileName; }
public MetaProperties(IMyGenerationMDI mdi) { emptyTable = new DataTable("MyData"); emptyTable.Columns.Add("Property", stringType); emptyTable.Columns.Add("Value", stringType); InitializeComponent(); this.mdi = mdi; this.ShowHint = DockState.DockRight; }
public MetaProperties(IMyGenerationMDI mdi) { emptyTable = new DataTable("MyData"); emptyTable.Columns.Add("Property", stringType); emptyTable.Columns.Add("Value", stringType); InitializeComponent(); this.mdi = mdi; this.ShowHint = DockState.DockRight; }
public UserMetaData(IMyGenerationMDI mdi) { InitializeComponent(); this.mdi = mdi; this.ShowHint = DockState.DockRight; DefaultSettings settings = DefaultSettings.Instance; this.UserMetaDataFileName = settings.UserMetaDataFileName; }
public SqlToolForm(IMyGenerationMDI mdi) { this._mdi = mdi; this.DockAreas = DockAreas.Document; InitializeComponent(); sqlToolUserControl1.Initialize(mdi, this.MainMenuStrip.Items); this.TabText = "New SQL File"; this.Text = "New SQL File"; BindForm(); }
public SqlToolForm(IMyGenerationMDI mdi) { this._mdi = mdi; this.DockAreas = DockAreas.Document; InitializeComponent(); sqlToolUserControl1.Initialize(mdi, this.MainMenuStrip.Items); this.TabText = "New SQL File"; this.Text = "New SQL File"; BindForm(); }
public static IMyGenDocument CreateDocument(IMyGenerationMDI mdi, string fileType) { IMyGenDocument mygenDoc = null; foreach (IEditorManager manager in PluginManager.EditorManagers.Values) { if (manager.FileTypes.Contains(fileType)) { mygenDoc = manager.Create(mdi, fileType); if (mygenDoc != null) break; } } return mygenDoc; }
public ConsoleForm(IMyGenerationMDI mdi) { this.mdi = mdi; zcs = new ZeusScintillaControl(); zcs.Dock = DockStyle.Fill; zcs.IsReadOnly = true; zcs.BringToFront(); zcs.Name = "ScintillaConsole"; this.Controls.Add(zcs); InitializeComponent(); }
public ConsoleForm(IMyGenerationMDI mdi) { this.mdi = mdi; zcs = new ZeusScintillaControl(); zcs.Dock = DockStyle.Fill; zcs.IsReadOnly = true; zcs.BringToFront(); zcs.Name = "ScintillaConsole"; this.Controls.Add(zcs); InitializeComponent(); }
public IMyGenDocument Create(IMyGenerationMDI mdi, params string[] args) { SampleEditor edit = new SampleEditor(mdi); switch (args[0]) { case SampleEditorManager.SAMPLE_IMAGE: default: edit.CreateNewImage(); break; } return(edit); }
public IMyGenDocument Create(IMyGenerationMDI mdi, params string[] args) { SqlToolForm edit = new SqlToolForm(mdi); switch (args[0]) { case SqlToolEditorManager.SQL_FILE: default: //edit.CreateNewImage(); break; } return(edit); }
public override IMyGenDocument Create(IMyGenerationMDI mdi, params string[] args) { ProjectBrowser edit = new ProjectBrowser(mdi); switch (args[0]) { case ProjectEditorManager.MYGEN_PROJECT: default: edit.CreateNewProject(); break; } return edit; }
public override IMyGenDocument Create(IMyGenerationMDI mdi, params string[] args) { ProjectBrowser edit = new ProjectBrowser(mdi); switch (args[0]) { case ProjectEditorManager.MYGEN_PROJECT: default: edit.CreateNewProject(); break; } return(edit); }
public TemplateBrowser(IMyGenerationMDI mdi) { this._mdi = mdi; this._executionCallback = new ZeusProcessStatusDelegate(ExecutionCallback); this._consoleWriteGeneratedDetails = DefaultSettings.Instance.ConsoleWriteGeneratedDetails; this.DockPanel = mdi.DockPanel; InitializeComponent(); this.templateBrowserControl.Initialize(); if (DefaultSettings.Instance.ExecuteFromTemplateBrowserAsync) { this.templateBrowserControl.ExecuteTemplateOverride = new ExecuteTemplateDelegate(ExecuteTemplateOverride); } }
public TemplateBrowser(IMyGenerationMDI mdi) { this._mdi = mdi; this._executionCallback = new ZeusProcessStatusDelegate(ExecutionCallback); this._consoleWriteGeneratedDetails = DefaultSettings.Instance.ConsoleWriteGeneratedDetails; this.DockPanel = mdi.DockPanel; InitializeComponent(); this.templateBrowserControl.Initialize(); if (DefaultSettings.Instance.ExecuteFromTemplateBrowserAsync) { this.templateBrowserControl.ExecuteTemplateOverride = new ExecuteTemplateDelegate(ExecuteTemplateOverride); } }
public MetaDataBrowser(IMyGenerationMDI mdi, MetaProperties p, UserMetaData u, GlobalUserMetaData g) { InitializeComponent(); this.mdi = mdi; this.MetaData = p; this.UserData = u; this.GlobalUserData = g; this.ShowHint = DockState.DockLeft; this.UserData.MetaDataBrowser = this; this.GlobalUserData.MetaDataBrowser = this; loadingNode = new TreeNode("Tree Loading..."); MetaDataBrowser_Enter(this, EventArgs.Empty); }
public static IMyGenDocument OpenDocument(IMyGenerationMDI mdi, string filename) { IMyGenDocument mygenDoc = null; FileInfo info = new FileInfo(filename); if (info.Exists) { foreach (IEditorManager manager in PluginManager.EditorManagers.Values) { if (manager.CanOpenFile(info)) { mygenDoc = manager.Open(mdi, info); if (mygenDoc != null) break; } } } return mygenDoc; }
public static IMyGenDocument CreateDocument(IMyGenerationMDI mdi, string fileType) { IMyGenDocument mygenDoc = null; foreach (IEditorManager manager in PluginManager.EditorManagers.Values) { if (manager.FileTypes.Contains(fileType)) { mygenDoc = manager.Create(mdi, fileType); if (mygenDoc != null) { break; } } } return(mygenDoc); }
public void Execute(IMyGenerationMDI mdi, params string[] args) { SqlToolForm stf = null; int cnt = 0; do { foreach (IDockContent d in mdi.DockPanel.Documents) { if (d is SqlToolForm) { stf = d as SqlToolForm; if (stf.IsNew && stf.IsEmpty) { break; } else { stf = null; } } } if (stf == null) { mdi.CreateDocument(SqlToolEditorManager.SQL_FILE); } cnt++; } while (stf == null && cnt < 2); if (stf != null) { if (mdi.DockPanel.ActiveDocument != null) { if (mdi.DockPanel.ActiveDocument is IMyGenDocument) { IMyGenDocument doc = mdi.DockPanel.ActiveDocument as IMyGenDocument; stf.TextContent = doc.TextContent; } } stf.Show(); stf.Activate(); } }
public void Execute(IMyGenerationMDI mdi, params string[] args) { SqlToolForm stf = null; int cnt = 0; do { foreach (IDockContent d in mdi.DockPanel.Documents) { if (d is SqlToolForm) { stf = d as SqlToolForm; if (stf.IsNew && stf.IsEmpty) { break; } else { stf = null; } } } if (stf == null) { mdi.CreateDocument(SqlToolEditorManager.SQL_FILE); } cnt++; } while (stf == null && cnt < 2); if (stf != null) { if (mdi.DockPanel.ActiveDocument != null) { if (mdi.DockPanel.ActiveDocument is IMyGenDocument) { IMyGenDocument doc = mdi.DockPanel.ActiveDocument as IMyGenDocument; stf.TextContent = doc.TextContent; } } stf.Show(); stf.Activate(); } }
public TemplateBrowser(IMyGenerationMDI mdi) { // // Required for Windows Form Designer support // InitializeComponent(); this.mdi = mdi; this.DockPanel = mdi.DockPanel; treeViewTemplates.MouseDown += new System.Windows.Forms.MouseEventHandler(this.treeViewTemplates_MouseDown); treeViewTemplates.DoubleClick += new System.EventHandler(this.treeViewTemplates_OnDoubleClick); treeViewTemplates.AfterExpand += new TreeViewEventHandler(this.treeViewTemplates_AfterExpand); treeViewTemplates.AfterCollapse += new TreeViewEventHandler(this.treeViewTemplates_AfterCollapse); treeViewTemplates.KeyDown += new KeyEventHandler(this.treeViewTemplates_KeyDown); treeViewTemplates.MouseMove += new MouseEventHandler(treeViewTemplates_MouseMove); treeBuilder = new TemplateTreeBuilder(treeViewTemplates); treeBuilder.LoadTemplates(); }
public TemplateBrowser(IMyGenerationMDI mdi) { // // Required for Windows Form Designer support // InitializeComponent(); this.mdi = mdi; this.DockPanel = mdi.DockPanel; treeViewTemplates.MouseDown += new System.Windows.Forms.MouseEventHandler(this.treeViewTemplates_MouseDown); treeViewTemplates.DoubleClick += new System.EventHandler(this.treeViewTemplates_OnDoubleClick); treeViewTemplates.AfterExpand += new TreeViewEventHandler(this.treeViewTemplates_AfterExpand); treeViewTemplates.AfterCollapse += new TreeViewEventHandler(this.treeViewTemplates_AfterCollapse); treeViewTemplates.KeyDown += new KeyEventHandler(this.treeViewTemplates_KeyDown); treeViewTemplates.MouseMove += new MouseEventHandler(treeViewTemplates_MouseMove); treeBuilder = new TemplateTreeBuilder(treeViewTemplates); treeBuilder.LoadTemplates(); }
public static IMyGenDocument OpenDocument(IMyGenerationMDI mdi, string filename) { IMyGenDocument mygenDoc = null; FileInfo info = new FileInfo(filename); if (info.Exists) { foreach (IEditorManager manager in PluginManager.EditorManagers.Values) { if (manager.CanOpenFile(info)) { mygenDoc = manager.Open(mdi, info); if (mygenDoc != null) { break; } } } } return(mygenDoc); }
public override IMyGenDocument Create(IMyGenerationMDI mdi, params string[] args) { TemplateEditor edit = new TemplateEditor(mdi); switch (args[0]) { case TemplateEditorManager.CSHARP_TEMPLATE: edit.FileNew("ENGINE", ZeusConstants.Engines.DOT_NET_SCRIPT, "LANGUAGE", ZeusConstants.Languages.CSHARP); break; case TemplateEditorManager.VBNET_TEMPLATE: edit.FileNew("ENGINE", ZeusConstants.Engines.DOT_NET_SCRIPT, "LANGUAGE", ZeusConstants.Languages.VBNET); break; case TemplateEditorManager.VBSCRIPT_TEMPLATE: edit.FileNew("ENGINE", ZeusConstants.Engines.MICROSOFT_SCRIPT, "LANGUAGE", ZeusConstants.Languages.VBSCRIPT); break; case TemplateEditorManager.JSCRIPT_TEMPLATE: default: edit.FileNew("ENGINE", ZeusConstants.Engines.MICROSOFT_SCRIPT, "LANGUAGE", ZeusConstants.Languages.JSCRIPT); break; } return edit; }
public void Initialize(IMyGenerationMDI mdi) { _mdi = mdi; }
public MetaDataBrowser(IMyGenerationMDI mdi, MetaProperties p, UserMetaData u, GlobalUserMetaData g) { InitializeComponent(); this.mdi = mdi; this.MetaData = p; this.UserData = u; this.GlobalUserData = g; this.ShowHint = DockState.DockLeft; this.UserData.MetaDataBrowser = this; this.GlobalUserData.MetaDataBrowser = this; loadingNode = new TreeNode("Tree Loading..."); MetaDataBrowser_Enter(this, EventArgs.Empty); }
public ProjectBrowser(IMyGenerationMDI mdi) { InitializeComponent(); this.mdi = mdi; }
public GeneratedFilesForm(IMyGenerationMDI mdi) { this._mdi = mdi; InitializeComponent(); }
public SampleEditor(IMyGenerationMDI mdi) { this.mdi = mdi; InitializeComponent(); this.DoubleBuffered = true; }
public IMyGenDocument Create(IMyGenerationMDI mdi, params string[] args) { SampleEditor edit = new SampleEditor(mdi); switch (args[0]) { case SampleEditorManager.SAMPLE_IMAGE: default: edit.CreateNewImage(); break; } return edit; }
public IMyGenDocument Create(IMyGenerationMDI mdi, params string[] args) { SqlToolForm edit = new SqlToolForm(mdi); switch (args[0]) { case SqlToolEditorManager.SQL_FILE: default: //edit.CreateNewImage(); break; } return edit; }
public SampleEditor(IMyGenerationMDI mdi) { this.mdi = mdi; InitializeComponent(); this.DoubleBuffered = true; }
public LanguageMappings(IMyGenerationMDI mdi) { InitializeComponent(); this.mdi = mdi; this.ShowHint = DockState.DockRight; }
public ErrorsForm(IMyGenerationMDI mdi) { this._mdi = mdi; InitializeComponent(); }
public TemplateEditor(IMyGenerationMDI mdi) { // // Required for Windows Form Designer support // InitializeComponent(); this.mdi = mdi; // Create Scintilla Code controls for editing the template scintillaTemplateCode = new ZeusScintillaControl(); scintillaTemplateCode.AddShortcuts(this.menuStripMain.Items); scintillaTemplateCode.InitializeFindReplace(); scintillaGUICode = new ZeusScintillaControl(); scintillaGUICode.AddShortcuts(this.menuStripMain.Items); scintillaTemplateSource = new ZeusScintillaControl(); scintillaTemplateSource.AddShortcuts(this.menuStripMain.Items); scintillaGuiSource = new ZeusScintillaControl(); scintillaGuiSource.AddShortcuts(this.menuStripMain.Items); scintillaOutput = new ZeusScintillaControl(); scintillaOutput.AddShortcuts(this.menuStripMain.Items); DefaultSettings settings = DefaultSettings.Instance; this.SetCodePageOverride(settings.CodePage); this.SetFontOverride(settings.FontFamily); this.tabTemplateCode.Controls.Add(this.scintillaTemplateCode); this.tabInterfaceCode.Controls.Add(this.scintillaGUICode); this.tabTemplateSource.Controls.Add(this.scintillaTemplateSource); this.tabInterfaceSource.Controls.Add(this.scintillaGuiSource); this.tabOutput.Controls.Add(this.scintillaOutput); this.lineNumbersToolStripMenuItem.Checked = false; if (settings.EnableLineNumbering) { lineNumbersToolStripMenuItem_Click(null, new EventArgs()); } copyOutputToClipboardToolStripMenuItem.Checked = false; if (settings.EnableClipboard) { copyOutputToClipboardToolStripMenuItem_Click(null, new EventArgs()); } //LoseFocus IsDirty Handlers this.textBoxComments.Leave += new EventHandler(this.CheckPropertiesDirty); // Keep the Status bar up to date this.scintillaTemplateCode.UpdateUI += new EventHandler<UpdateUIEventArgs>(UpdateUI); this.scintillaTemplateSource.UpdateUI += new EventHandler<UpdateUIEventArgs>(UpdateUI); this.scintillaGUICode.UpdateUI += new EventHandler<UpdateUIEventArgs>(UpdateUI); this.scintillaGuiSource.UpdateUI += new EventHandler<UpdateUIEventArgs>(UpdateUI); this.scintillaOutput.UpdateUI += new EventHandler<UpdateUIEventArgs>(UpdateUI); // Handle drag/drop this.scintillaTemplateCode.UriDropped += new EventHandler<UriDroppedEventArgs>(ZeusScintillaControl_UriDropped); this.scintillaTemplateSource.UriDropped += new EventHandler<UriDroppedEventArgs>(ZeusScintillaControl_UriDropped); this.scintillaGUICode.UriDropped += new EventHandler<UriDroppedEventArgs>(ZeusScintillaControl_UriDropped); this.scintillaGuiSource.UriDropped += new EventHandler<UriDroppedEventArgs>(ZeusScintillaControl_UriDropped); this.scintillaOutput.UriDropped += new EventHandler<UriDroppedEventArgs>(ZeusScintillaControl_UriDropped); }
public void Execute(IMyGenerationMDI mdi, params string[] args) { SampleDialogContent sdc = new SampleDialogContent(mdi); DialogResult result = sdc.ShowDialog(mdi.DockPanel.Parent.FindForm()); }
public void Initialize(IMyGenerationMDI mdi) { this.mdi = mdi; settings = DefaultSettings.Instance; }