2
Copyright 2010 by Kurt Hindenburg <kurt.hindenburg@gmail.com>
4
This program is free software; you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation; either version 2 of the License, or
7
(at your option) any later version.
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU General Public License for more details.
14
You should have received a copy of the GNU General Public License
15
along with this program; if not, write to the Free Software
16
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21
#include "RenameTabDialog.h"
24
#include "ui_RenameTabDialog.h"
26
using Konsole::RenameTabDialog;
28
RenameTabDialog::RenameTabDialog(QWidget* parent)
31
setCaption(i18n("Rename Tab"));
32
setButtons(KDialog::Ok | KDialog::Cancel);
34
setWindowModality(Qt::WindowModal);
36
_ui = new Ui::RenameTabDialog();
37
_ui->setupUi(mainWidget());
40
RenameTabDialog::~RenameTabDialog()
45
void RenameTabDialog::focusTabTitleText()
47
_ui->renameTabWidget->focusTabTitleText();
50
void RenameTabDialog::focusRemoteTabTitleText()
52
_ui->renameTabWidget->focusRemoteTabTitleText();
55
void RenameTabDialog::setTabTitleText(const QString& text)
57
_ui->renameTabWidget->setTabTitleText(text);
60
void RenameTabDialog::setRemoteTabTitleText(const QString& text)
62
_ui->renameTabWidget->setRemoteTabTitleText(text);
65
QString RenameTabDialog::tabTitleText() const
67
return _ui->renameTabWidget->tabTitleText();
70
QString RenameTabDialog::remoteTabTitleText() const
72
return _ui->renameTabWidget->remoteTabTitleText();