|
|
|
@ -33,7 +33,7 @@ Session::Session(TQWidget* parent, SessionType type, const char* name) : TQObjec
|
|
|
|
|
focus_watcher = new TerminalFocusWatcher(this);
|
|
|
|
|
connect(focus_watcher, TQT_SIGNAL(focusChanged()), this, TQT_SLOT(slotFocusChanged()));
|
|
|
|
|
|
|
|
|
|
base_widget = new TerminalSplitter(Qt::Horizontal, parent, "base");
|
|
|
|
|
base_widget = new TerminalSplitter(TQt::Horizontal, parent, "base");
|
|
|
|
|
connect(base_widget, TQT_SIGNAL(destroyed()), this, TQT_SLOT(slotLastTerminalClosed()));
|
|
|
|
|
|
|
|
|
|
setenv("DCOP_YAKUAKE_SESSION", TQString::number(session_id).ascii(), 1);
|
|
|
|
@ -169,7 +169,7 @@ void Session::splitHorizontally()
|
|
|
|
|
void Session::splitHorizontally(int terminal_id)
|
|
|
|
|
{
|
|
|
|
|
if (terminal_widgets[terminal_id])
|
|
|
|
|
split(terminal_widgets[terminal_id], Qt::Horizontal);
|
|
|
|
|
split(terminal_widgets[terminal_id], TQt::Horizontal);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Session::splitVertically()
|
|
|
|
@ -184,7 +184,7 @@ void Session::splitVertically()
|
|
|
|
|
void Session::splitVertically(int terminal_id)
|
|
|
|
|
{
|
|
|
|
|
if (terminal_widgets[terminal_id])
|
|
|
|
|
split(terminal_widgets[terminal_id], Qt::Vertical);
|
|
|
|
|
split(terminal_widgets[terminal_id], TQt::Vertical);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Session::removeTerminal()
|
|
|
|
@ -241,7 +241,7 @@ void Session::createInitialSplits(SessionType type)
|
|
|
|
|
|
|
|
|
|
case TwoVertical:
|
|
|
|
|
{
|
|
|
|
|
base_widget->setOrientation(Qt::Vertical);
|
|
|
|
|
base_widget->setOrientation(TQt::Vertical);
|
|
|
|
|
|
|
|
|
|
int splitter_height = base_widget->height();
|
|
|
|
|
|
|
|
|
@ -263,12 +263,12 @@ void Session::createInitialSplits(SessionType type)
|
|
|
|
|
int splitter_height = base_widget->height();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
base_widget->setOrientation(Qt::Vertical);
|
|
|
|
|
base_widget->setOrientation(TQt::Vertical);
|
|
|
|
|
|
|
|
|
|
TerminalSplitter* upper_splitter = new TerminalSplitter(Qt::Horizontal, base_widget);
|
|
|
|
|
TerminalSplitter* upper_splitter = new TerminalSplitter(TQt::Horizontal, base_widget);
|
|
|
|
|
connect(upper_splitter, TQT_SIGNAL(destroyed()), this, TQT_SLOT(cleanup()));
|
|
|
|
|
|
|
|
|
|
TerminalSplitter* lower_splitter = new TerminalSplitter(Qt::Horizontal, base_widget);
|
|
|
|
|
TerminalSplitter* lower_splitter = new TerminalSplitter(TQt::Horizontal, base_widget);
|
|
|
|
|
connect(lower_splitter, TQT_SIGNAL(destroyed()), this, TQT_SLOT(cleanup()));
|
|
|
|
|
|
|
|
|
|
Terminal* terminal = addTerminal(upper_splitter);
|
|
|
|
@ -300,7 +300,7 @@ void Session::createInitialSplits(SessionType type)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Session::split(TQWidget* active_terminal, Qt::Orientation o)
|
|
|
|
|
void Session::split(TQWidget* active_terminal, TQt::Orientation o)
|
|
|
|
|
{
|
|
|
|
|
TerminalSplitter* splitter = static_cast<TerminalSplitter*>(active_terminal->parentWidget());
|
|
|
|
|
if (!splitter) return;
|
|
|
|
|