Konsole
TabTitleFormatAction.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef TABTITLEFORMATACTION_H
00021 #define TABTITLEFORMATACTION_H
00022
00023
00024 #include <QAction>
00025
00026
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