Hello! Would you mind if there will be an event handler for the combo box "Type" in "Search Objects" window? This will allow to enable/disable the "Find" button without unnecessary correction of the "Pattern" field, when you switch to/from
the "Operators" item. Patch is attached to the letter.

--
Dmitriy Olshevskiy

From 1da5b7ae8c04e8d1c79242e4f5e8a8f68a03e431 Mon Sep 17 00:00:00 2001
From: olshevskiy87 <[email protected]>
Date: Sun, 7 Sep 2014 20:32:46 +0400
Subject: [PATCH] toggle search button, when an item on the combo box Type is
 selected

---
 pgadmin/dlg/dlgSearchObject.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pgadmin/dlg/dlgSearchObject.cpp b/pgadmin/dlg/dlgSearchObject.cpp
index f960898..71a8b83 100644
--- a/pgadmin/dlg/dlgSearchObject.cpp
+++ b/pgadmin/dlg/dlgSearchObject.cpp
@@ -35,6 +35,7 @@ BEGIN_EVENT_TABLE(dlgSearchObject, pgDialog)
        EVT_BUTTON(XRCID("btnSearch"),             dlgSearchObject::OnSearch)
        EVT_BUTTON(wxID_CANCEL,                    dlgSearchObject::OnCancel)
        EVT_TEXT(XRCID("txtPattern"),              dlgSearchObject::OnChange)
+       EVT_COMBOBOX(XRCID("cbType"),              dlgSearchObject::OnChange)
        EVT_LIST_ITEM_SELECTED(XRCID("lcResults"), 
dlgSearchObject::OnSelSearchResult)
        EVT_CHECKBOX(XRCID("chkNames"),            dlgSearchObject::OnChange)
        EVT_CHECKBOX(XRCID("chkDefinitions"),      dlgSearchObject::OnChange)
-- 
1.8.3.msysgit.0

-- 
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers

Reply via email to