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;
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 4
0
        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;
        }
Exemplo n.º 7
0
        public ErrorDetail(IMyGenerationMDI mdi)
		{
			InitializeComponent();

            this.mdi = mdi;
            this.errorDetailControl.Initialize();
		}
Exemplo n.º 8
0
 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();
 }
Exemplo n.º 10
0
        public ProjectBrowserOld(IMyGenerationMDI mdi)
        {
            formEditSavedObject = new FormAddEditSavedObject();//mdi);

            InitializeComponent();
            this.mdi = mdi;
		}
Exemplo n.º 11
0
        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();
		}
Exemplo n.º 13
0
        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;
        }
Exemplo n.º 15
0
 public ProjectBrowser(IMyGenerationMDI mdi)
 {
     this._mdi = mdi;
     this._consoleWriteGeneratedDetails = DefaultSettings.Instance.ConsoleWriteGeneratedDetails;
     InitializeComponent();
     this.projectBrowserControl1.ExecutionStarted += new EventHandler(projectBrowserControl1_ExecutionStarted);
 }
Exemplo n.º 16
0
 public ProjectBrowser(IMyGenerationMDI mdi)
 {
     this._mdi = mdi;
     this._consoleWriteGeneratedDetails = DefaultSettings.Instance.ConsoleWriteGeneratedDetails;
     InitializeComponent();
     this.projectBrowserControl1.ExecutionStarted += new EventHandler(projectBrowserControl1_ExecutionStarted);
 }
Exemplo n.º 17
0
 public void Initialize(IMyGenerationMDI mdi, ToolStripItemCollection menuItems)
 {
     this.scintilla.AddShortcuts(menuItems);
     this._fileId = Guid.NewGuid().ToString();
     _mdi         = mdi;
     RefreshConnectionInfo();
 }
Exemplo n.º 18
0
        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;
            }
        }
Exemplo n.º 22
0
        public SampleDialogContent(IMyGenerationMDI mdi)
        {
            this.mdi = mdi;
            InitializeComponent();

            if (!(this.mdi.DockPanel.ActiveDocument is IScintillaEditControl))
            {
                this.button2.Enabled = true;
            }
        }
Exemplo n.º 23
0
        public static IMyGenContent CreateContent(IMyGenerationMDI mdi, string key)
        {
            IMyGenContent mygencontent = null;

            if (PluginManager.ContentManagers.ContainsKey(key))
            {
                mygencontent = PluginManager.ContentManagers[key].Create(mdi);
            }
            return(mygencontent);
        }
Exemplo n.º 24
0
        public UserMetaData(IMyGenerationMDI mdi)
		{
            InitializeComponent();
            this.mdi = mdi;

			this.ShowHint = DockState.DockRight;

            DefaultSettings settings = DefaultSettings.Instance;
			this.UserMetaDataFileName = settings.UserMetaDataFileName;
		}
Exemplo n.º 25
0
        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;
        }
Exemplo n.º 26
0
        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;
        }
Exemplo n.º 27
0
        public UserMetaData(IMyGenerationMDI mdi)
        {
            InitializeComponent();
            this.mdi = mdi;

            this.ShowHint = DockState.DockRight;

            DefaultSettings settings = DefaultSettings.Instance;

            this.UserMetaDataFileName = settings.UserMetaDataFileName;
        }
Exemplo n.º 28
0
        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();
        }
Exemplo n.º 29
0
        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();
        }
Exemplo n.º 30
0
 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;
 }
Exemplo n.º 31
0
        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();
        }
Exemplo n.º 32
0
        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();
        }
Exemplo n.º 33
0
        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);
        }
Exemplo n.º 34
0
        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;
        }
Exemplo n.º 36
0
        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);
        }
Exemplo n.º 37
0
        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);
            }
        }
Exemplo n.º 38
0
        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);
            }
        }
Exemplo n.º 39
0
        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);
        }
Exemplo n.º 40
0
 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;
 }
Exemplo n.º 41
0
        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);
        }
Exemplo n.º 42
0
        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();
            }
        }
Exemplo n.º 44
0
        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();
        }
Exemplo n.º 45
0
        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();
        }
Exemplo n.º 46
0
        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;
 }
Exemplo n.º 49
0
        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);
        }
Exemplo n.º 50
0
        public ProjectBrowser(IMyGenerationMDI mdi)
		{
            InitializeComponent();
            this.mdi = mdi;
		}
Exemplo n.º 51
0
 public GeneratedFilesForm(IMyGenerationMDI mdi)
 {
     this._mdi = mdi;
     InitializeComponent();
 }
Exemplo n.º 52
0
 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;
        }
Exemplo n.º 55
0
 public SampleEditor(IMyGenerationMDI mdi)
 {
     this.mdi = mdi;
     InitializeComponent();
     this.DoubleBuffered = true;
 }
Exemplo n.º 56
0
        public LanguageMappings(IMyGenerationMDI mdi)
		{
            InitializeComponent();
            this.mdi = mdi;
			this.ShowHint = DockState.DockRight;
        }
Exemplo n.º 57
0
 public ErrorsForm(IMyGenerationMDI mdi)
 {
     this._mdi = mdi;
     InitializeComponent();
 }
Exemplo n.º 58
0
		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;
 }