linux optimization.

This commit is contained in:
lsv 2025-03-20 16:00:02 +05:00 committed by lsv
parent e7f545e444
commit 0e0aae430a
4 changed files with 10 additions and 4 deletions

View file

@ -1170,7 +1170,9 @@ void ctlSQLBox::UpdateLineNumber()
if (width != GetMarginWidth(0))
{
SetMarginWidth(0, width);
#ifndef __WXGTK__
Update();
#endif
}
}
else

View file

@ -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;
};

View file

@ -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;

View file

@ -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 == '"') {