Ejemplo n.º 1
0
 public QuickFixDialog(RefactoringOptions options, RefactoringOperation refactoring)
 {
     this.refactoring = refactoring;
     this.options = options;
     this.Build ();
     buttonOk.Clicked += OnOKClicked;
     this.Title = "Quick Fix";
     this.label1.Text = "Are you sure you want to move this type to a new file?";
     this.GdkWindow.Opacity = 0.75;
 }
        public CreateIVarDialog(RefactoringOperation refactoring, RefactoringOptions options, MonobjcProject project)
            : base(refactoring, options, project)
        {
            this.Build ();

            this.buttonOk.Sensitive = false;
            this.entryName.Changed += delegate { this.buttonOk.Sensitive = this.Validate (); };
            this.entryType.Changed += delegate { this.buttonOk.Sensitive = this.Validate (); };
            this.Validate ();

            this.buttonOk.Clicked += OnOKClicked;
        }
Ejemplo n.º 3
0
			public RefactoringOperationWrapper (RefactoringOperation refactoring, RefactoringOptions options)
			{
				this.refactoring = refactoring;
				this.options = options;
			}
Ejemplo n.º 4
0
 public RefactoringOperationWrapper(RefactoringOperation refactoring, RefactoringOptions options)
 {
     this.refactoring = refactoring;
     this.options     = options;
 }
 public BaseRefactoringDialog(RefactoringOperation refactoring, RefactoringOptions options, MonobjcProject project)
 {
     this.Refactoring = refactoring;
     this.Options = options;
     this.Project = project;
 }
        public ImplementProtocolDialog(RefactoringOperation refactoring, RefactoringOptions options, MonobjcProject project)
            : base(refactoring, options, project)
        {
            this.Build ();

            // Configure the protocol TreeView
            // One column: Image|Text
            {
                TreeStore storeProtocols = new TreeStore (typeof(Gdk.Pixbuf), typeof(string), typeof(IType));

                TreeViewColumn column = new TreeViewColumn ();
                column.Title = GettextCatalog.GetString ("Protocol");
                column.Expand = true;
                column.Resizable = true;

                CellRendererPixbuf iconRenderer = new CellRendererPixbuf ();
                column.PackStart (iconRenderer, false);
                column.AddAttribute (iconRenderer, "pixbuf", 0);

                CellRendererText nameRenderer = new CellRendererText ();
                nameRenderer.Ellipsize = Pango.EllipsizeMode.End;
                column.PackStart (nameRenderer, true);
                column.AddAttribute (nameRenderer, "text", 1);

                this.treeviewProtocols.AppendColumn (column);
                storeProtocols.SetSortColumnId (1, SortType.Ascending);
                this.treeviewProtocols.Model = storeProtocols;

                this.treeviewProtocols.Selection.Changed += HandleTreeviewProtocolsSelectionhandleChanged;
            }

            // Configure the protocol TreeView
            // One column: Check|Image|Text
            {
                TreeStore storeMembers = new TreeStore (typeof(bool), typeof(Gdk.Pixbuf), typeof(string), typeof(IMember));

                TreeViewColumn column = new TreeViewColumn ();
                column.Title = GettextCatalog.GetString ("Members");
                column.Expand = true;
                column.Resizable = true;

                CellRendererToggle cbRenderer = new CellRendererToggle ();
                cbRenderer.Activatable = true;
                cbRenderer.Toggled += OnSelectToggled;
                column.PackStart (cbRenderer, false);
                column.AddAttribute (cbRenderer, "active", 0);

                CellRendererPixbuf iconRenderer = new CellRendererPixbuf ();
                column.PackStart (iconRenderer, false);
                column.AddAttribute (iconRenderer, "pixbuf", 1);

                CellRendererText nameRenderer = new CellRendererText ();
                nameRenderer.Ellipsize = Pango.EllipsizeMode.End;
                column.PackStart (nameRenderer, true);
                column.AddAttribute (nameRenderer, "text", 2);

                this.treeviewMembers.AppendColumn (column);
                storeMembers.SetSortColumnId (2, SortType.Ascending);
                this.treeviewMembers.Model = storeMembers;
            }

            this.buttonOk.Clicked += OnOKClicked;

            this.PopulateTreeView ();
            this.Validate ();
        }