Changeset View
Changeset View
Standalone View
Standalone View
kate/kateviewspace.cpp
Show First 20 Lines • Show All 519 Lines • ▼ Show 20 Line(s) | 513 | { | |||
---|---|---|---|---|---|
520 | const int buttonId = m_docToTabId[doc]; | 520 | const int buttonId = m_docToTabId[doc]; | ||
521 | m_tabBar->setTabIcon(buttonId, icon); | 521 | m_tabBar->setTabIcon(buttonId, icon); | ||
522 | } | 522 | } | ||
523 | 523 | | |||
524 | void KateViewSpace::closeTabRequest(int id) | 524 | void KateViewSpace::closeTabRequest(int id) | ||
525 | { | 525 | { | ||
526 | KTextEditor::Document *doc = m_docToTabId.key(id); | 526 | KTextEditor::Document *doc = m_docToTabId.key(id); | ||
527 | Q_ASSERT(doc); | 527 | Q_ASSERT(doc); | ||
528 | KateApp::self()->documentManager()->closeDocument(doc); | 528 | m_viewManager->slotDocumentClose(doc); | ||
529 | } | 529 | } | ||
530 | 530 | | |||
531 | void KateViewSpace::createNewDocument() | 531 | void KateViewSpace::createNewDocument() | ||
532 | { | 532 | { | ||
533 | // make sure we open the view in this view space | 533 | // make sure we open the view in this view space | ||
534 | if (! isActiveSpace()) { | 534 | if (! isActiveSpace()) { | ||
535 | m_viewManager->setActiveSpace(this); | 535 | m_viewManager->setActiveSpace(this); | ||
536 | } | 536 | } | ||
▲ Show 20 Lines • Show All 171 Lines • Show Last 20 Lines |