public override Control CreatePanelWidget()
		{
			Project project = ConfiguredProject;
			MakefileData data = project.GetMakefileData ();

			MakefileData tmpData = null;
			if (data != null) {
				tmpData = (MakefileData) data.Clone ();
			}
			return (widget = new MakefileOptionPanelWidget (ParentDialog, project, tmpData));
		}
		public override Widget CreatePanelWidget()
		{
			Project project = ConfiguredProject;
			MakefileData data = project.ExtendedProperties ["MonoDevelop.Autotools.MakefileInfo"] as MakefileData;

			MakefileData tmpData = null;
			if (data != null) {
				tmpData = (MakefileData) data.Clone ();
			}
			return (widget = new MakefileOptionPanelWidget (project, tmpData));
		}
        public override Widget CreatePanelWidget()
        {
            Project      project = ConfiguredProject;
            MakefileData data    = project.GetMakefileData();

            MakefileData tmpData = null;

            if (data != null)
            {
                tmpData = (MakefileData)data.Clone();
            }
            return(widget = new MakefileOptionPanelWidget(ParentDialog, project, tmpData));
        }
        public override Widget CreatePanelWidget()
        {
            Project      project = ConfiguredProject;
            MakefileData data    = project.ExtendedProperties ["MonoDevelop.Autotools.MakefileInfo"] as MakefileData;

            MakefileData tmpData = null;

            if (data != null)
            {
                tmpData = (MakefileData)data.Clone();
            }
            return(widget = new MakefileOptionPanelWidget(project, tmpData));
        }
        public ImportMakefileDialog(Project project, MakefileData tmpData, string name)
        {
            this.TransientFor = IdeApp.Workbench.RootWindow;
            this.project      = project;

            Title = GettextCatalog.GetString("Makefile Project Import");
            Modal = true;

            VBox box = new VBox();

            box.Spacing = 6;

            Gtk.Label lab = new Gtk.Label();
            lab.Wrap         = true;
            lab.Xalign       = 0;
            lab.WidthRequest = 500;
            lab.Text         = GettextCatalog.GetString(
                "{0} is going to create a project bound to a Makefile. Please enter the name you want to give to the new project.",
                BrandingService.ApplicationName
                );
            box.PackStart(lab, false, false, 0);

            HBox hb = new HBox();

            hb.Spacing = 6;
            hb.PackStart(new Gtk.Label(GettextCatalog.GetString("Project Name:")), false, false, 0);
            nameEntry      = new Gtk.Entry();
            nameEntry.Text = name;
            hb.PackStart(nameEntry, true, true, 0);
            box.PackStart(hb, false, false, 0);

            box.PackStart(new Gtk.HSeparator(), false, false, 0);

            optionsWidget = new MakefileOptionPanelWidget(this, project, tmpData);

            box.PackStart(optionsWidget, false, false, 0);
            box.BorderWidth = 6;

            this.VBox.PackStart(box, true, true, 0);

            this.AddButton(Gtk.Stock.Cancel, ResponseType.Cancel);
            this.AddButton(Gtk.Stock.Ok, ResponseType.Ok);
            ShowAll();

            optionsWidget.SetImportMode();
        }
		public ImportMakefileDialog (Project project, MakefileData tmpData, string name)
		{
			this.TransientFor = IdeApp.Workbench.RootWindow;
			this.project = project;
			
			Title = GettextCatalog.GetString ("Makefile Project Import");
			Modal = true;
			
			VBox box = new VBox ();
			box.Spacing = 6;
			
			Gtk.Label lab = new Gtk.Label ();
			lab.Wrap = true;
			lab.Xalign = 0;
			lab.WidthRequest = 500;
			lab.Text = GettextCatalog.GetString (
				"{0} is going to create a project bound to a Makefile. Please enter the name you want to give to the new project.",
				BrandingService.ApplicationName
			);
			box.PackStart (lab, false, false, 0);
			
			HBox hb = new HBox ();
			hb.Spacing = 6;
			hb.PackStart (new Gtk.Label (GettextCatalog.GetString ("Project Name:")), false, false, 0);
			nameEntry = new Gtk.Entry ();
			nameEntry.Text = name;
			hb.PackStart (nameEntry, true, true, 0);
			box.PackStart (hb, false, false, 0);
			
			box.PackStart (new Gtk.HSeparator (), false, false, 0);
			
			optionsWidget = new MakefileOptionPanelWidget (this, project, tmpData);
			
			box.PackStart (optionsWidget, false, false, 0);
			box.BorderWidth = 6;
			
			this.VBox.PackStart (box, true, true, 0);
			
			this.AddButton (Gtk.Stock.Cancel, ResponseType.Cancel);
			this.AddButton (Gtk.Stock.Ok, ResponseType.Ok);
			ShowAll ();
			
			optionsWidget.SetImportMode ();
		}