mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-15 14:15:49 -06:00
Add modificator Ctrl for popup menu "List columns header"
При нажатом Ctrl в буфер обмена копируются только имена столбцов с разделителем ",".
This commit is contained in:
parent
38b4b4a5ed
commit
e2eeabf21c
3 changed files with 6 additions and 4 deletions
|
|
@ -339,7 +339,7 @@ wxString ctlSQLResult::OnGetItemText(long item, long col) const
|
|||
}
|
||||
return wxEmptyString;
|
||||
}
|
||||
wxString ctlSQLResult::CopySelColumnNameType()
|
||||
wxString ctlSQLResult::CopySelColumnNameType(bool onlyname)
|
||||
{
|
||||
wxString ss = wxEmptyString;
|
||||
if (GetSelectedCols().GetCount()) {
|
||||
|
|
@ -356,7 +356,8 @@ wxString ctlSQLResult::CopySelColumnNameType()
|
|||
wxString colName = colNames.Item(cl);
|
||||
wxString colType = colTypes.Item(cl);
|
||||
if (!ss.IsEmpty()) ss.Append(", ");
|
||||
ss.Append(colName + " " + colType);
|
||||
ss.Append(colName);
|
||||
if (!onlyname) ss.Append(" " + colType);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2321,7 +2321,8 @@ void frmQuery::OnCopy_NameTypeCols(wxCommandEvent& ev)
|
|||
{
|
||||
// if (currentControl() == sqlResult)
|
||||
{
|
||||
wxString s = sqlResult->CopySelColumnNameType();
|
||||
bool press=wxGetKeyState(WXK_CONTROL);
|
||||
wxString s = sqlResult->CopySelColumnNameType(press);
|
||||
SetStatusText(s, STATUSPOS_MSGS);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ public:
|
|||
wxString CompareSelectCells();
|
||||
wxString AutoColsPlot(int flags,frmQuery *parent);
|
||||
wxString CheckSelColumnDate();
|
||||
wxString CopySelColumnNameType();
|
||||
wxString CopySelColumnNameType(bool onlyname);
|
||||
void ClearFilter();
|
||||
bool IsColText(int col);
|
||||
bool hasRowNumber()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue