[MonoDevelop] SearchBar patch

Rafael Teixeira monoman at gmail.com
Thu Sep 28 09:47:01 EDT 2006


HI, inline

On 9/26/06, Jacob Ilsø Christensen <jacobilsoe at gmail.com> wrote:
> Hi.
>
> > > * Each open document has its own search bar. Do we want this?
> >
> > I don't think so. Like in FireFox, the search text and options should be
> > global, and shouldn't change when you switch documents.
>
> I am not quite sure how to do this. The
> MonoDevelop.SourceEditor.Gui.SourceEditorDisplayBinding class is used
> as a DisplayBinding for text files. How do I make several instances
> share the same SearchBar?

Make the searchbar a global dockable panel that appears/hide when the
active DisplayBinding exposes some searching service (implements some
interface that does the real search/positioning).

> I could add a static field on the SourceEditorDisplayBinding class but
> that seems a bit ugly.

As I said above it should be the other way around, so it doesn't have
to know what the Search UI is.

> Any good ideas?

I hope the above one qualifies as such ...

:)

-- 
Rafael "Monoman" Teixeira
---------------------------------------
"The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man." George Bernard Shaw


More information about the Monodevelop-list mailing list