mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-15 14:15:49 -06:00
Fixes and improvements (fmrReport)
1. Сортировка колонок на вкладках Статистика сохряняется по возможности. 2. Узлы плана которые помечены как (never executed) не подсвечиваются. 3. При построении плана всегда добавляется опция "SUMMARY on" 4. Исправлено не корректное отображение зависимостей для таблиц из публикаций. 5. В отчетах о статистике добавлена итоговая информация по таблицам отчета.
This commit is contained in:
parent
bd1e5f3518
commit
295b7f97d1
9 changed files with 399 additions and 100 deletions
|
|
@ -23,6 +23,12 @@ class ctlListView : public wxListView
|
|||
{
|
||||
private:
|
||||
void OnSortGrid(wxListEvent& event);
|
||||
/// <summary>
|
||||
/// Sort list event or program
|
||||
/// </summary>
|
||||
/// <param name="colsort"></param>
|
||||
/// <param name="resort"></param>
|
||||
void SortGrid(int colsort, bool isevent);
|
||||
bool nosort; // если кто то пользуется SetItemData то не будем сортировать такие ctlListView
|
||||
int order, prev_col;
|
||||
// будем сохранять длинные строки 0 колонки в этом массиве
|
||||
|
|
@ -33,6 +39,8 @@ public:
|
|||
nosort = true;
|
||||
return wxListView::SetItemData(item, data);
|
||||
}
|
||||
bool ReSort();
|
||||
bool IsNumberColumn(const wxString& columnlabel);
|
||||
void SetModeStoreLongString() { storelongstring = true; }
|
||||
bool DeleteAllItems() {
|
||||
longstring.clear();
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ public:
|
|||
g->HideRow(i);
|
||||
}
|
||||
wxGridCellAttr* pAttrg = new wxGridCellAttr;
|
||||
pAttrg->SetBackgroundColour(wxColour(200, 191, 232));
|
||||
pAttrg->SetBackgroundColour(wxColour(200, 191, 232)); // close group
|
||||
g->SetRowAttr(row, pAttrg);
|
||||
}
|
||||
else
|
||||
|
|
@ -138,7 +138,11 @@ public:
|
|||
int sizerow = g->GetDefaultRowSize();
|
||||
//pAttr->SetBackgroundColour(wxColour(0,162,232));
|
||||
wxGridCellAttr* pAttrg = new wxGridCellAttr;
|
||||
pAttrg->SetBackgroundColour(wxColour(248, 240, 130));
|
||||
if (g->GetCellValue(row, 0).Contains("(never executed)") ) {
|
||||
// not higtligth this row
|
||||
pAttrg->SetBackgroundColour(wxColour(224, 255, 224)); // green
|
||||
} else
|
||||
pAttrg->SetBackgroundColour(wxColour(248, 240, 130)); // yellow
|
||||
g->SetRowAttr(row, pAttrg);
|
||||
for (int i = r; i < (endg + 1); i++) {
|
||||
gg = IsGroupRow(i);
|
||||
|
|
|
|||
|
|
@ -121,6 +121,7 @@ wxString NumToStr(OID value);
|
|||
wxString NumToStr(wxLongLong value);
|
||||
wxString DateToStr(const wxDateTime &datetime);
|
||||
wxString ElapsedTimeToStr(wxLongLong msec);
|
||||
double ConvertSizeToMB(const wxString& sourcestringsize);
|
||||
wxString ContrastColorBlackOrWhite(wxColour& bgColor);
|
||||
|
||||
// Quoting
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue