• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

Konsole

TabTitleFormatAction.h

Go to the documentation of this file.
00001 /*
00002     Copyright 2007-2008 by Robert Knight <robertknight@gmail.com>
00003 
00004     This program is free software; you can redistribute it and/or modify
00005     it under the terms of the GNU General Public License as published by
00006     the Free Software Foundation; either version 2 of the License, or
00007     (at your option) any later version.
00008 
00009     This program is distributed in the hope that it will be useful,
00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012     GNU General Public License for more details.
00013 
00014     You should have received a copy of the GNU General Public License
00015     along with this program; if not, write to the Free Software
00016     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00017     02110-1301  USA.
00018 */
00019 
00020 #ifndef TABTITLEFORMATACTION_H
00021 #define TABTITLEFORMATACTION_H
00022 
00023 // Qt
00024 #include <QAction>
00025 
00026 // Konsole
00027 #include "Session.h"
00028 
00029 namespace Konsole
00030 {
00031 
00032 class TabTitleFormatAction : public QAction
00033 {
00034 Q_OBJECT
00035 
00036 public:
00037     TabTitleFormatAction(QObject* parent);
00038     ~TabTitleFormatAction();
00039 
00040     void setContext(Session::TabTitleContext context);
00041     Session::TabTitleContext context() const;
00042 
00043 signals:
00044     void dynamicElementSelected(const QString&);
00045   
00046 private slots:
00047     void fireElementSelected(QAction*);
00048 
00049 private:
00050     Session::TabTitleContext _context;
00051     
00052     struct Element
00053     {
00054         QString element;
00055         const char *description;
00056     };
00057     static const Element _localElements[];
00058     static const int _localElementCount;
00059     static const Element _remoteElements[];
00060     static const int _remoteElementCount;
00061 
00062 };
00063 
00064 }
00065 
00066 #endif // TABTITLEFORMATACTION_H

Konsole

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

API Reference

Skip menu "API Reference"
  • Konsole
  • Libraries
  •   libkonq
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal