MCPcopy Create free account
hub / github.com/cxasm/notepad-- / getCurEditView

Method getCurEditView

src/cceditor/ccnotepad.cpp:9036–9051  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9034}
9035
9036ScintillaEditView* CCNotePad::getCurEditView()
9037{
9038 QWidget* pw = ui.editTabWidget->currentWidget();
9039 ScintillaEditView* _pEditView = dynamic_cast<ScintillaEditView*>(pw);
9040 if (_pEditView != nullptr)
9041 {
9042 if (_pEditView->isReadOnly())
9043 {
9044 ui.statusBar->showMessage(tr("The ReadOnly document does not allow this operation."), MSG_EXIST_TIME);
9045 QApplication::beep();
9046 return nullptr;
9047 }
9048 return _pEditView;
9049 }
9050 return nullptr;
9051}
9052
9053//tab space 互转
9054void CCNotePad::spaceTabConvert(SpaceTab type)

Callers 1

getCurrentEidtHandleMethod · 0.80

Calls 1

isReadOnlyMethod · 0.80

Tested by

no test coverage detected