• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • applications API Reference
  • KDE Home
  • Contact Us
 

Konsole

  • kde-4.14
  • applications
  • konsole
  • src
TabTitleFormatButton.h
Go to the documentation of this file.
1 /*
2  Copyright 2007-2008 by Robert Knight <robertknight@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 #ifndef TABTITLEFORMATBUTTON_H
21 #define TABTITLEFORMATBUTTON_H
22 
23 // Qt
24 #include <QPushButton>
25 #include <QAction>
26 
27 // Konsole
28 #include "Session.h"
29 
30 namespace Konsole
31 {
32 class TabTitleFormatButton : public QPushButton
33 {
34  Q_OBJECT
35 
36 public:
37  explicit TabTitleFormatButton(QWidget* parent);
38  ~TabTitleFormatButton();
39 
40  void setContext(Session::TabTitleContext context);
41  Session::TabTitleContext context() const;
42 
43 signals:
44  void dynamicElementSelected(const QString&);
45 
46 private slots:
47  void fireElementSelected(QAction*);
48 
49 private:
50  Session::TabTitleContext _context;
51 
52  struct Element {
53  QString element;
54  const char* description;
55  };
56  static const Element _localElements[];
57  static const int _localElementCount;
58  static const Element _remoteElements[];
59  static const int _remoteElementCount;
60 };
61 }
62 
63 #endif // TABTITLEFORMATBUTTON_H
Session.h
QWidget
Konsole::TabTitleFormatButton
Definition: TabTitleFormatButton.h:32
Konsole::TabTitleFormatButton::context
Session::TabTitleContext context() const
Definition: TabTitleFormatButton.cpp:102
Konsole::TabTitleFormatButton::~TabTitleFormatButton
~TabTitleFormatButton()
Definition: TabTitleFormatButton.cpp:63
Konsole::TabTitleFormatButton::setContext
void setContext(Session::TabTitleContext context)
Definition: TabTitleFormatButton.cpp:73
QString
Konsole::TabTitleFormatButton::dynamicElementSelected
void dynamicElementSelected(const QString &)
Konsole::TabTitleFormatButton::TabTitleFormatButton
TabTitleFormatButton(QWidget *parent)
Definition: TabTitleFormatButton.cpp:54
QAction
QPushButton
Konsole::Session::TabTitleContext
TabTitleContext
This enum describes the contexts for which separate tab title formats may be specified.
Definition: Session.h:159
QObject::parent
QObject * parent() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Konsole

Skip menu "Konsole"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Konsole

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal