예제 #1
0
파일: PHPToolBar.cs 프로젝트: viticm/pap2
        public PHPToolBar()
        {
            App = (FireEditApplication)FireEditApplication.Istance;

            btnCheckSyntax = new ToolStripButton(Properties.Resources.document_check);
            btnCheckSyntax.Click += new EventHandler(_CheckSyntax_Click);
            btnCheckSyntax.Size = new System.Drawing.Size(22, 22);
            btnCheckSyntax.ToolTipText = "Check Syntax Only";

            this.Items.Add(btnCheckSyntax);
            this.Items.Add("-");

            btnRunScript = new ToolStripButton(Properties.Resources.RunScript);
            btnRunScript.ToolTipText = "Run Script";

            this.Items.Add(btnRunScript);

            btnRunScript.Click += new EventHandler(btnRunScript_Click);


            this.ImageScalingSize = App.MainForm.MainToolStrip.ImageScalingSize;

            this.Size = new Size(10, 25);


            this.AutoSize = true;
        }
예제 #2
0
파일: GemixPlugin.cs 프로젝트: viticm/pap2
        public override bool Execute(Fireball.Plugins.PluginApplication application)
        {

            _Application = ((FireEditApplication)application);

           ToolStripItem mnuEdit = _Application.MainForm.MainMenuStrip.Items.Find("mnuEdit", false)[0];

           int editMenuIndex = _Application.MainForm.MainMenuStrip.Items.IndexOf(mnuEdit);


           _BuildMenuItem = new ToolStripMenuItem("&Build");


           _Application.MainForm.MainMenuStrip.Items.Insert(editMenuIndex + 1, _BuildMenuItem);

           _Application.MainForm.Text = "FireEdit For Gemix";

           _ConfigureGemixItem = new ToolStripMenuItem("Configure GMX Compiler");
           _ConfigureGemixItem.Click += new EventHandler(_ConfigureGemixItem_Click);

           _BuildMenuItem.DropDownItems.Add(_ConfigureGemixItem);

           _BuildMenuItem.DropDownItems.Add("-");
           _BuildFileItem = new ToolStripMenuItem("Build PRG");
           _BuildFileRunItem = new ToolStripMenuItem("Build PRG/RUN");
           _BuildFileRunItem.Click += new EventHandler(_BuildFileRunItem_Click);

           _BuildFileItem.Click += new EventHandler(_BuildFileItem_Click);

           _BuildMenuItem.DropDownItems.Add(_BuildFileItem);
           _BuildMenuItem.DropDownItems.Add(_BuildFileRunItem);


           string configFile = Path.Combine(Application.StartupPath, "gemix.xml");


           _Application.MainForm.DockContainer.ActiveDocumentChanged += new EventHandler(DockContainer_ActiveDocumentChanged);

           if (File.Exists(configFile))
           {
               _ConfigDocument.Load(configFile);
           }
           else
           {
               _ConfigDocument.LoadXml("<gemix><compiler /></gemix>");
           }

            return true;
        }
예제 #3
0
파일: Program.cs 프로젝트: weimingtom/pap2
        static void Main(string[] files)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            FormMain mainForm = new FormMain();

            try
            {
                if (files.Length > 0)
                {
                    mainForm.OpenFile(files[0]);
                }
            }
            catch
            {
                MessageBox.Show("Invalid File on arguments!");
            }

            CodeEditorControl.defaultLineMarginRender = new FireEditLineMarginRender();

            FireEditApplication.RunMain(mainForm);
        }