Add basic code to associate shortcuts with profiles and load/save those shortcut/profile pairs. Move Profile class into its own source file. Move old TODO list into the 'old' directory.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=664308
This commit is contained in:
Robert Knight
2007-05-13 16:38:59 +00:00
parent ecdb2781d0
commit c5ab0f3cec
14 changed files with 971 additions and 802 deletions

View File

@@ -469,49 +469,6 @@ void ViewManager::viewCloseRequest(QWidget* view)
focusActiveView();
}
void ViewManager::merge(ViewManager* otherManager)
{
// iterate over the views in otherManager's active container and take them from that
// manager and put them in the active container in this manager
//
// TODO - This currently does not consider views in containers other than
// the active one in the other manager
//
ViewSplitter* otherSplitter = otherManager->_viewSplitter;
ViewContainer* otherContainer = otherSplitter->activeContainer();
QListIterator<QWidget*> otherViewIter(otherContainer->views());
ViewContainer* activeContainer = _viewSplitter->activeContainer();
while ( otherViewIter.hasNext() )
{
TerminalDisplay* view = dynamic_cast<TerminalDisplay*>(otherViewIter.next());
assert(view);
assert( otherManager->_sessionMap[view] );
createView(otherManager->_sessionMap[view]);
}
}
/*void ViewManager::takeView(ViewManager* otherManager , ViewContainer* otherContainer,
ViewContainer* newContainer, TerminalDisplay* view)
{
// FIXME - the controller associated with the display which is being moved
// may have signals which are connected to otherManager. they need
// to be redirected to slots in this view manager
ViewProperties* properties = otherContainer->viewProperties(view);
otherContainer->removeView(view);
newContainer->addView(view,properties);
// transfer the session map entries
_sessionMap.insert(view,otherManager->_sessionMap[view]);
otherManager->_sessionMap.remove(view);
}*/
TerminalDisplay* ViewManager::createTerminalDisplay()
{
TerminalDisplay* display = new TerminalDisplay(0);