Lines Matching refs:editor
285 wxGridCellEditorEvtHandler(wxGrid* grid, wxGridCellEditor* editor)
287 m_editor(editor),
377 wxGridCellEditor* editor)
378 : m_typeName(typeName), m_renderer(renderer), m_editor(editor)
407 wxGridCellEditor* editor);
631 // editor.
1441 wxFAIL_MSG( _T("invalid value for a cell with bool editor!") );
1570 wxGridCellChoiceEditor *editor = new wxGridCellChoiceEditor;
1571 editor->m_allowOthers = m_allowOthers;
1572 editor->m_choices = m_choices;
1574 return editor;
2573 // used, otherwise the default editor or renderer is fetched from the grid and
2576 // registry), then the grid's default editor or renderer is used.
2621 // same as above, except for s/renderer/editor/g
2624 wxGridCellEditor *editor = NULL;
2628 // use the cells editor if it has one
2629 editor = m_editor;
2630 editor->IncRef();
2632 else // no non default cell editor
2634 // get default editor for the data type
2638 editor = grid->GetDefaultEditorForCell(row, col);
2641 if ( editor == NULL )
2647 editor = m_defGridAttr->GetEditor(NULL, 0, 0);
2652 editor = m_editor;
2653 if ( editor )
2654 editor->IncRef();
2660 wxASSERT_MSG(editor, wxT("Missing default cell editor"));
2662 return editor;
3059 wxGridCellEditor* editor)
3061 wxGridDataTypeInfo* info = new wxGridDataTypeInfo(typeName, renderer, editor);
3169 wxGridCellEditor *editor = GetEditor(index);
3170 wxGridCellEditor *editorOld = editor;
3171 editor = editor->Clone();
3177 editor->SetParameters(params);
3180 RegisterDataType(typeName, renderer, editor);
3200 wxGridCellEditor* editor = m_typeinfo[index]->m_editor;
3201 if (editor)
3202 editor->IncRef();
3204 return editor;
4346 // Ensure that the editor control is destroyed before the grid is,
4347 // otherwise we crash later when the editor tries to do something with the
4765 // take into account editor if shown
4774 // how big is the editor
4776 wxGridCellEditor* editor = attr->GetEditor(this, r, c);
4777 editor->GetControl()->GetSize(&w2, &h2);
4784 editor->DecRef();
4880 // By the same reasoning, the editor should be dismissed if columns are
4883 // For now, I intentionally do not save the editor's content as the
6317 wxGridCellEditor *editor = attr->GetEditor(this, coords.GetRow(), coords.GetCol());
6318 editor->StartingClick();
6319 editor->DecRef();
7301 // yes, now check whether the cells editor accepts the key
7305 wxGridCellEditor *editor = attr->GetEditor(this, row, col);
7308 // other keys - ask the editor itself
7310 || editor->IsAcceptedKey(event) )
7320 if ( event.GetKeyCode() != WXK_F2 && editor->IsCreated() && m_cellEditCtrlEnabled )
7321 editor->StartingKey(event);
7328 editor->DecRef();
7547 // Hide the editor, so it won't hide a changed value.
7565 // Disable the editor, so it won't hide a changed value.
7566 // Do we also want to save the current value of the editor first?
7757 // if the editor is shown, we should use it and not the renderer
7763 // On wxMac (QD build only), the cell editor is a wxTextCntl and is rendered
7766 wxGridCellEditor *editor = attr->GetEditor(this, row, col);
7767 editor->PaintBackground(rect, attr);
7768 editor->DecRef();
8510 wxGridCellEditor* editor = attr->GetEditor((wxGrid*) this, row, col);
8513 if ( editor )
8515 if ( editor->IsCreated() )
8517 isShown = editor->GetControl()->IsShown();
8520 editor->DecRef();
8553 // erase the highlight and the cell contents because the editor
8578 wxGridCellEditor* editor = attr->GetEditor(this, row, col);
8579 if ( !editor->IsCreated() )
8581 editor->Create(m_gridWin, wxID_ANY,
8582 new wxGridCellEditorEvtHandler(this, editor));
8589 editor->GetControl());
8593 // resize editor to overflow into righthand cells if allowed
8631 editor->SetCellAttr( attr );
8632 editor->SetSize( rect );
8634 editor->GetControl()->Move(
8635 editor->GetControl()->GetPosition().x + nXMove,
8636 editor->GetControl()->GetPosition().y );
8637 editor->Show( true, attr );
8645 // expand the scrolled window to account for editor
8648 editor->BeginEdit(row, col, this);
8649 editor->SetCellAttr(NULL);
8651 editor->DecRef();
8673 wxGridCellEditor *editor = attr->GetEditor(this, row, col);
8675 editorHadFocus = wxWindow::FindFocus() == editor->GetControl();
8676 editor->Show( false );
8677 editor->DecRef();
8680 // return the focus to the grid itself if the editor had it
8684 // editor precisely because we lost focus
8712 wxGridCellEditor* editor = attr->GetEditor(this, row, col);
8713 bool changed = editor->EndEdit(row, col, this);
8715 editor->DecRef();
9966 // default attr, so we need to register the new editor/renderer for the string
9967 // data type in order to make setting a default editor/renderer appear to
9977 void wxGrid::SetDefaultEditor(wxGridCellEditor *editor)
9981 editor);
10089 wxGridCellEditor* editor = attr->GetEditor(this, row, col);
10092 return editor;
10127 // editor stored within the attribute). Therefore it is important
10418 void wxGrid::SetCellEditor(int row, int col, wxGridCellEditor* editor)
10423 attr->SetEditor(editor);
10444 wxGridCellEditor* editor)
10446 m_typeRegistry->RegisterDataType(typeName, renderer, editor);