Skip site navigation (1) Skip section navigation (2)

PATCH: ctlSQLBox format-menu for indent/outdent, change lower/upper case & comment/uncomment for the selected text

From: Ashesh Vashi <ashesh(dot)vashi(at)enterprisedb(dot)com>
To: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Cc: Dave Page <dpage(at)pgadmin(dot)org>
Subject: PATCH: ctlSQLBox format-menu for indent/outdent, change lower/upper case & comment/uncomment for the selected text
Date: 2009-03-19 15:50:27
Message-ID: 49C269C3.3090707@enterprisedb.com (view raw or flat)
Thread:
Lists: pgadmin-hackers
Hi Team,

Please find the patch for the above description.

As per Dave's suggestion, I have added format submenu in the edit menu.
Just move the code for the indent/outdent to BlockIndent function & for
commet/uncomment to BlockComment function. And called these function from
the event function for the format menus and from the ctlSQLBox::OnKeyDown
function, from where it has been moved.

-- 
Regards,
Ashesh Vashi

EnterpriseDB INDIA: http://www.enterprisedb.com

Attachment: SQLQueryBoxFormatShortCuts_v1.patch
Description: text/x-diff (10.6 KB)

Responses

pgadmin-hackers by date

Next:From: Dave PageDate: 2009-03-19 16:12:10
Subject: Re: PATCH: ctlSQLBox format-menu for indent/outdent, change lower/upper case & comment/uncomment for the selected text
Previous:From: Dave PageDate: 2009-03-19 10:37:14
Subject: Re: PATCH: Bug (2009-03:00026) Bug or not? (LIKE <table> INCLUDING DEFAULTS)

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group