コード例 #1
0
ファイル: NewProjectDialog.cs プロジェクト: anthrax3/ide-1
        public NewProjectDialog()
        {
            this.TransientFor = MainClass.MainWindow;
            this.Build();
            skinthemecontrol1 = new SkinThemeControl();
            vbox2.PackEnd(skinthemecontrol1, false, true, 0);

            this.Title = "New Project";
            skinthemecontrol1.SetLabelWidth(50);
        }
コード例 #2
0
ファイル: NewWorkspaceDialog.cs プロジェクト: anthrax3/ide-1
        public NewWorkspaceDialog(bool project)
        {
            this.TransientFor = MainClass.MainWindow;
            this.Build();

            this.feRoot              = new FileEntry();
            this.feRoot.Name         = "feRoot";
            this.feRoot.IsFolder     = true;
            this.feRoot.BrowserTitle = "Root Directory";
            this.table2b.Attach(this.feRoot, 1, 2, 1, 2);
            Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table2b [this.feRoot]));
            w3.YOptions = ((Gtk.AttachOptions)(4));
            feRoot.ShowAll();

            skinthemecontrol1 = new SkinThemeControl();
            vbox3.PackEnd(skinthemecontrol1, false, true, 0);
            skinthemecontrol1.ShowAll();
            expander1.Activated += OnConfigureGeometry;


            feOutput          = new FileMaskEntry(MainClass.Settings.WorkspaceMaskDirectory, MainClass.Workspace, this);
            feOutput.IsFolder = true;
            //Console.WriteLine(" MainClass.Paths.WorkDir-> {0}", MainClass.Paths.WorkDir);
            if (!System.IO.Directory.Exists(MainClass.Paths.WorkDir))
            {
                try{
                    System.IO.Directory.CreateDirectory(MainClass.Paths.WorkDir);
                }catch (Exception ex) {
                    Moscrif.IDE.Tool.Logger.Error(MainClass.Languages.Translate("work_dir_not_creat"));
                    Moscrif.IDE.Tool.Logger.Error(ex.Message);
                }
            }

            feRoot.DefaultPath   = MainClass.Paths.WorkDir;
            feOutput.DefaultPath = MainClass.Paths.WorkDir;
            feOutput.VisiblePath = System.IO.Path.Combine(MainClass.Settings.WorkspaceMaskDirectory[0], "output");

            if (project)
            {
                vbox3.Visible      = true;
                trmProject.Visible = true;
                skinthemecontrol1.SetLabelWidth(85);
            }
            else
            {
                this.Resize(450, 90);
            }
            table2.Attach(feOutput, 1, 2, 0, 1, AttachOptions.Fill, AttachOptions.Shrink, 5, 0);

            this.project = project;
        }