mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-15 14:15:49 -06:00
linux optimization.
This commit is contained in:
parent
e7f545e444
commit
0e0aae430a
4 changed files with 10 additions and 4 deletions
|
|
@ -1170,7 +1170,9 @@ void ctlSQLBox::UpdateLineNumber()
|
|||
if (width != GetMarginWidth(0))
|
||||
{
|
||||
SetMarginWidth(0, width);
|
||||
#ifndef __WXGTK__
|
||||
Update();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ public:
|
|||
// default group open
|
||||
rowsGroup[rowgroup] = -rowgroup;
|
||||
//beg[rowgroup]=rowgroup;
|
||||
wxASSERT_MSG(lastrowgroup > end.Count(), " out of bounds");
|
||||
//wxASSERT_MSG(lastrowgroup > end.Count(), " out of bounds");
|
||||
end[rowgroup] = lastrowgroup;
|
||||
run[rowgroup] = actualtime;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -104,8 +104,10 @@ void MyDataViewCtrl::setGroupMode(bool mode) {
|
|||
wxString l = wxString::Format("rows %d", m->GetRowCount());
|
||||
st->SetLabelText(l);
|
||||
|
||||
if (!SetHeaderAttr(attr))
|
||||
wxLogMessage("Sorry, header attributes not supported on this platform");
|
||||
if (!SetHeaderAttr(attr)) {
|
||||
//wxLogMessage("Sorry, header attributes not supported on this platform");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
void MyDataViewCtrl::ViewGroup(bool view) {
|
||||
|
|
@ -381,6 +383,8 @@ void MyDataViewCtrl::OnEVT_DATAVIEW_CONTEXT_MENU(wxCommandEvent& event) {
|
|||
void MyDataViewCtrl::OnContextMenu(wxDataViewEvent& event) {
|
||||
//wxString title = m_music_model->GetTitle(event.GetItem());
|
||||
//wxLogMessage("wxEVT_DATAVIEW_ITEM_CONTEXT_MENU, Item: %s", title);
|
||||
int c = event.GetColumn();
|
||||
if (c < 0) return;
|
||||
StorageModel* m = dynamic_cast<StorageModel*>(GetModel());
|
||||
int row = m->GetRow(event.GetItem());
|
||||
int ncol;
|
||||
|
|
|
|||
|
|
@ -685,7 +685,7 @@ wxString Storage::getStrGroup(wxString source) {
|
|||
wxString n;
|
||||
bool quote = false;
|
||||
while (i < l) {
|
||||
char c = source[i++];
|
||||
wxChar c = source[i++];
|
||||
if (c >= '0' && c <= '9' && !quote) continue;
|
||||
if (c == '"') {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue