Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/shell/documentcontroller.cpp
Show First 20 Lines • Show All 1048 Lines • ▼ Show 20 Line(s) | 1046 | { | |||
---|---|---|---|---|---|
1049 | return d->globalTextEditorInstance; | 1049 | return d->globalTextEditorInstance; | ||
1050 | } | 1050 | } | ||
1051 | 1051 | | |||
1052 | bool DocumentController::openDocumentsSimple( QStringList urls ) | 1052 | bool DocumentController::openDocumentsSimple( QStringList urls ) | ||
1053 | { | 1053 | { | ||
1054 | Sublime::Area* area = Core::self()->uiControllerInternal()->activeArea(); | 1054 | Sublime::Area* area = Core::self()->uiControllerInternal()->activeArea(); | ||
1055 | Sublime::AreaIndex* areaIndex = area->rootIndex(); | 1055 | Sublime::AreaIndex* areaIndex = area->rootIndex(); | ||
1056 | 1056 | | |||
1057 | QList<Sublime::View*> topViews = static_cast<Sublime::MainWindow*>(Core::self()->uiControllerInternal()->activeMainWindow())->getTopViews(); | 1057 | QList<Sublime::View*> topViews = static_cast<Sublime::MainWindow*>(Core::self()->uiControllerInternal()->activeMainWindow())->topViews(); | ||
1058 | 1058 | | |||
1059 | if(Sublime::View* activeView = Core::self()->uiControllerInternal()->activeSublimeWindow()->activeView()) | 1059 | if(Sublime::View* activeView = Core::self()->uiControllerInternal()->activeSublimeWindow()->activeView()) | ||
1060 | areaIndex = area->indexOf(activeView); | 1060 | areaIndex = area->indexOf(activeView); | ||
1061 | 1061 | | |||
1062 | qCDebug(SHELL) << "opening " << urls << " to area " << area << " index " << areaIndex << " with children " << areaIndex->first() << " " << areaIndex->second(); | 1062 | qCDebug(SHELL) << "opening " << urls << " to area " << area << " index " << areaIndex << " with children " << areaIndex->first() << " " << areaIndex->second(); | ||
1063 | 1063 | | |||
1064 | bool isFirstView = true; | 1064 | bool isFirstView = true; | ||
1065 | 1065 | | |||
▲ Show 20 Lines • Show All 167 Lines • Show Last 20 Lines |