Sunday, June 29, 2008

Re: [pgadmin-support] Wish List Request: Tabbed SQL Query Window


Dave,

What if the per-text-coltrol tabs were at the bottom of the region, and the per-file tabs were at the top?

Ryan

On Thu, Jun 26, 2008 at 4:07 AM, Dave Page <dpage@pgadmin.org> wrote:
On Wed, Jun 25, 2008 at 11:09 PM, Guillaume Lelarge
<guillaume@lelarge.info> wrote:
> Ryan Daniels a écrit :
>>
>> I would like to request that the SQL query window have tabs so that you
>> can have multiple queries/files open in the same window.
>>
>
> I think it could be a great idea. Don't know if it's really feasible but I
> like the idea.

Seems like it would be a lot of work. You'd need to seperate all the
query code out into a seperate class that you could instantiate aas
required on new tabs, and modify all the window options such that they
affect all tabs, or work with just the selected one as appropriate
(think 'Show line endings' vs. 'EOL Mode).

It would also look pretty weird as we will be adding tabs to the text
control soon anyway to handle the query builder, so we'll end up with
two sets of tabs on a tabset.

I'm happy to review patches though if someone wants to put some effort into it.

--
Dave Page
EnterpriseDB UK: http://www.enterprisedb.com

No comments: