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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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 Content-Type Size
SQLQueryBoxFormatShortCuts_v1.patch text/x-diff 10.6 KB

Responses

Browse pgadmin-hackers by date

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