Hi,
Here is a patch to add three menu shortcuts. It should not be applied to
1.8 release because this patch change strings. And I don't want this now.
I'm not even sure about the key I choose :
- View All Rows : Ctrl-D
- View Filtered Rows : Ctrl-G
- Query Tool : Ctrl-E
Do you have better shortcuts to propose ?
Thanks.
Regards.
--
Guillaume.
<!-- http://abs.traduc.org/
http://lfs.traduc.org/
http://docs.postgresqlfr.org/ -->
Index: pgadmin/frm/frmEditGrid.cpp
===================================================================
--- pgadmin/frm/frmEditGrid.cpp (révision 6592)
+++ pgadmin/frm/frmEditGrid.cpp (copie de travail)
@@ -2730,8 +2730,8 @@
editGridFactory::editGridFactory(menuFactoryList *list, wxMenu *mnu, wxToolBar *toolbar) : editGridFactoryBase(list)
{
- mnu->Append(id, _("View &All Rows"), _("View the data in the selected object."));
- toolbar->AddTool(id, _("View All Rows"), wxBitmap(viewdata_xpm), _("View the data in the selected object."),
wxITEM_NORMAL);
+ mnu->Append(id, _("View &All Rows\tCtrl-D"), _("View the data in the selected object."));
+ toolbar->AddTool(id, _("View All Rows\tCtrl-D"), wxBitmap(viewdata_xpm), _("View the data in the selected
object."),wxITEM_NORMAL);
context = false;
}
@@ -2745,8 +2745,8 @@
#include "images/viewfiltereddata.xpm"
editGridFilteredFactory::editGridFilteredFactory(menuFactoryList *list, wxMenu *mnu, wxToolBar *toolbar) :
editGridFactoryBase(list)
{
- mnu->Append(id, _("View F&iltered Rows..."), _("Apply a filter and view the data in the selected object."));
- toolbar->AddTool(id, _("View Filtered Rows"), wxBitmap(viewfiltereddata_xpm), _("Apply a filter and view the data
inthe selected object."), wxITEM_NORMAL);
+ mnu->Append(id, _("View F&iltered Rows...\tCtrl-G"), _("Apply a filter and view the data in the selected
object."));
+ toolbar->AddTool(id, _("View Filtered Rows\tCtrl-G"), wxBitmap(viewfiltereddata_xpm), _("Apply a filter and view
thedata in the selected object."), wxITEM_NORMAL);
context = false;
}
Index: pgadmin/frm/frmQuery.cpp
===================================================================
--- pgadmin/frm/frmQuery.cpp (révision 6592)
+++ pgadmin/frm/frmQuery.cpp (copie de travail)
@@ -1982,8 +1982,8 @@
queryToolFactory::queryToolFactory(menuFactoryList *list, wxMenu *mnu, wxToolBar *toolbar) :
queryToolBaseFactory(list)
{
- mnu->Append(id, _("&Query tool"), _("Execute arbitrary SQL queries."));
- toolbar->AddTool(id, _("Query tool"), wxBitmap(sql_xpm), _("Execute arbitrary SQL queries."), wxITEM_NORMAL);
+ mnu->Append(id, _("&Query tool\tCtrl-E"), _("Execute arbitrary SQL queries."));
+ toolbar->AddTool(id, _("Query tool\tCtrl-E"), wxBitmap(sql_xpm), _("Execute arbitrary SQL queries."),
wxITEM_NORMAL);
}