Changeset View
Changeset View
Standalone View
Standalone View
src/ViewManager.cpp
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Line(s) | 53 | ViewManager::ViewManager(QObject *parent, KActionCollection *collection) : | |||
---|---|---|---|---|---|
54 | QObject(parent), | 54 | QObject(parent), | ||
55 | _viewSplitter(nullptr), | 55 | _viewSplitter(nullptr), | ||
56 | _pluggedController(nullptr), | 56 | _pluggedController(nullptr), | ||
57 | _sessionMap(QHash<TerminalDisplay *, Session *>()), | 57 | _sessionMap(QHash<TerminalDisplay *, Session *>()), | ||
58 | _actionCollection(collection), | 58 | _actionCollection(collection), | ||
59 | _navigationMethod(NoNavigation), | 59 | _navigationMethod(NoNavigation), | ||
60 | _navigationVisibility(NavigationNotSet), | 60 | _navigationVisibility(NavigationNotSet), | ||
61 | _newTabBehavior(PutNewTabAtTheEnd), | 61 | _newTabBehavior(PutNewTabAtTheEnd), | ||
62 | _managerId(0) | 62 | _managerId(0), | ||
63 | _profileList(nullptr) | ||||
63 | { | 64 | { | ||
64 | // create main view area | 65 | // create main view area | ||
65 | _viewSplitter = new ViewSplitter(nullptr); | 66 | _viewSplitter = new ViewSplitter(nullptr); | ||
66 | KAcceleratorManager::setNoAccel(_viewSplitter); | 67 | KAcceleratorManager::setNoAccel(_viewSplitter); | ||
67 | 68 | | |||
68 | // the ViewSplitter class supports both recursive and non-recursive splitting, | 69 | // the ViewSplitter class supports both recursive and non-recursive splitting, | ||
69 | // in non-recursive mode, all containers are inserted into the same top-level splitter | 70 | // in non-recursive mode, all containers are inserted into the same top-level splitter | ||
70 | // widget, and all the divider lines between the containers have the same orientation | 71 | // widget, and all the divider lines between the containers have the same orientation | ||
▲ Show 20 Lines • Show All 1053 Lines • ▼ Show 20 Line(s) | 1121 | if (_navigationVisibility != navigationVisibility) { | |||
1124 | } | 1125 | } | ||
1125 | } | 1126 | } | ||
1126 | } | 1127 | } | ||
1127 | 1128 | | |||
1128 | void ViewManager::setNavigationBehavior(int behavior) | 1129 | void ViewManager::setNavigationBehavior(int behavior) | ||
1129 | { | 1130 | { | ||
1130 | _newTabBehavior = static_cast<NewTabBehavior>(behavior); | 1131 | _newTabBehavior = static_cast<NewTabBehavior>(behavior); | ||
1131 | } | 1132 | } | ||
1133 | | ||||
1134 | ProfileList *ViewManager::getProfileList() | ||||
1135 | { | ||||
1136 | if (_profileList == nullptr) { | ||||
1137 | _profileList = new ProfileList(true, this); | ||||
1138 | } | ||||
1139 | return _profileList; | ||||
1140 | } |