~ubuntu-branches/ubuntu/saucy/konsole/saucy-proposed

« back to all changes in this revision

Viewing changes to src/RenameTabDialog.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-06-06 14:29:24 UTC
  • mfrom: (1.1.12)
  • Revision ID: package-import@ubuntu.com-20120606142924-1rekqv6j25lw2k41
Tags: 4:4.8.80-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    Copyright 2010 by Kurt Hindenburg <kurt.hindenburg@gmail.com>
 
3
 
 
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.
 
8
 
 
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.
 
13
 
 
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
 
17
    02110-1301  USA.
 
18
*/
 
19
 
 
20
// Own
 
21
#include "RenameTabDialog.h"
 
22
 
 
23
// Konsole
 
24
#include "ui_RenameTabDialog.h"
 
25
 
 
26
using Konsole::RenameTabDialog;
 
27
 
 
28
RenameTabDialog::RenameTabDialog(QWidget* parent)
 
29
    : KDialog(parent)
 
30
{
 
31
    setCaption(i18n("Rename Tab"));
 
32
    setButtons(KDialog::Ok | KDialog::Cancel);
 
33
 
 
34
    setWindowModality(Qt::WindowModal);
 
35
 
 
36
    _ui = new Ui::RenameTabDialog();
 
37
    _ui->setupUi(mainWidget());
 
38
}
 
39
 
 
40
RenameTabDialog::~RenameTabDialog()
 
41
{
 
42
    delete _ui;
 
43
}
 
44
 
 
45
void RenameTabDialog::focusTabTitleText()
 
46
{
 
47
    _ui->renameTabWidget->focusTabTitleText();
 
48
}
 
49
 
 
50
void RenameTabDialog::focusRemoteTabTitleText()
 
51
{
 
52
    _ui->renameTabWidget->focusRemoteTabTitleText();
 
53
}
 
54
 
 
55
void RenameTabDialog::setTabTitleText(const QString& text)
 
56
{
 
57
    _ui->renameTabWidget->setTabTitleText(text);
 
58
}
 
59
 
 
60
void RenameTabDialog::setRemoteTabTitleText(const QString& text)
 
61
{
 
62
    _ui->renameTabWidget->setRemoteTabTitleText(text);
 
63
}
 
64
 
 
65
QString RenameTabDialog::tabTitleText() const
 
66
{
 
67
    return _ui->renameTabWidget->tabTitleText();
 
68
}
 
69
 
 
70
QString RenameTabDialog::remoteTabTitleText() const
 
71
{
 
72
    return _ui->renameTabWidget->remoteTabTitleText();
 
73
}
 
74