Konsole
#include <ViewProperties.h>
Public Slots | |
virtual void | rename () |
Signals | |
void | activity (ViewProperties *item) |
void | iconChanged (ViewProperties *properties) |
void | titleChanged (ViewProperties *properties) |
Public Member Functions | |
ViewProperties (QObject *parent) | |
virtual | ~ViewProperties () |
virtual bool | confirmClose () const |
virtual QString | currentDir () const |
QIcon | icon () const |
int | identifier () const |
QString | title () const |
virtual KUrl | url () const |
Public Member Functions inherited from QObject | |
QObject (QObject *parent) | |
QObject (QObject *parent, const char *name) | |
virtual | ~QObject () |
bool | blockSignals (bool block) |
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
const QObjectList & | children () const |
const char * | className () const |
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const QObject *receiver, const char *method) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
void | dumpObjectInfo () |
void | dumpObjectTree () |
QList< QByteArray > | dynamicPropertyNames () const |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name) const |
QList< T > | findChildren (const QRegExp ®Exp) const |
QList< T > | findChildren (const QString &name) const |
bool | inherits (const char *className) const |
void | insertChild (QObject *object) |
void | installEventFilter (QObject *filterObj) |
bool | isA (const char *className) const |
bool | isWidgetType () const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const |
void | moveToThread (QThread *targetThread) |
const char * | name () const |
const char * | name (const char *defaultName) const |
QString | objectName () const |
QObject * | parent () const |
QVariant | property (const char *name) const |
void | removeChild (QObject *object) |
void | removeEventFilter (QObject *obj) |
void | setName (const char *name) |
void | setObjectName (const QString &name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | signalsBlocked () const |
int | startTimer (int interval) |
QThread * | thread () const |
Static Public Member Functions | |
static QMimeData * | createMimeData (int id) |
static int | decodeMimeData (const QMimeData *mimeData) |
static QString | mimeType () |
static ViewProperties * | propertiesById (int id) |
Static Public Member Functions inherited from QObject | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Protected Slots | |
void | fireActivity () |
Protected Member Functions | |
void | setIcon (const QIcon &icon) |
void | setIdentifier (int id) |
void | setTitle (const QString &title) |
Protected Member Functions inherited from QObject | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
Additional Inherited Members | |
Static Protected Member Functions inherited from QObject | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
Properties inherited from QObject | |
objectName | |
Detailed Description
Encapsulates user-visible information about the terminal session currently being displayed in a view, such as the associated title and icon.
This can be used by navigation widgets in a ViewContainer sub-class to provide a tab, label or other item for switching between views.
Definition at line 44 of file ViewProperties.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 28 of file ViewProperties.cpp.
|
virtual |
Definition at line 34 of file ViewProperties.cpp.
Member Function Documentation
|
signal |
Emitted when activity has occurred in this view.
|
inlinevirtual |
Sub-classes may re-implement this method to display a message to the user to allow them to confirm whether to close a view.
The default implementation always returns true
Reimplemented in Konsole::SessionController.
Definition at line 81 of file ViewProperties.h.
|
inlinestatic |
Returns a new QMimeData instance which represents the view with the given id
(See identifier()).
The QMimeData instance returned must be deleted by the caller.
Definition at line 97 of file ViewProperties.h.
|
virtual |
Returns the current directory associated with a view.
This may be the same as url() The default implementation returns an empty string.
Reimplemented in Konsole::SessionController.
Definition at line 46 of file ViewProperties.cpp.
|
inlinestatic |
Decodes a QMimeData instance created with createMimeData() and returns the identifier of the associated view.
The associated ViewProperties instance can then be retrieved by calling propertiesById()
The QMimeData instance must support the mime format returned by mimeType()
Definition at line 109 of file ViewProperties.h.
|
protectedslot |
Emits the activity() signal.
Definition at line 50 of file ViewProperties.cpp.
QIcon ViewProperties::icon | ( | ) | const |
Returns the icon associated with a view.
Definition at line 89 of file ViewProperties.cpp.
|
signal |
Emitted when the icon for a view changes.
int ViewProperties::identifier | ( | ) | const |
A unique identifier associated with this ViewProperties instance.
Definition at line 93 of file ViewProperties.cpp.
|
inlinestatic |
Name of mime format to use in drag-and-drop operations.
Definition at line 89 of file ViewProperties.h.
|
static |
Finds a ViewProperties instance given its numeric identifier.
Definition at line 38 of file ViewProperties.cpp.
|
virtualslot |
Requests the renaming of this view.
The default implementation does nothing.
Reimplemented in Konsole::SessionController.
Definition at line 55 of file ViewProperties.cpp.
|
protected |
Subclasses may call this method to change the icon.
This causes an iconChanged() signal to be emitted
Definition at line 66 of file ViewProperties.cpp.
|
protected |
Subclasses may call this method to change the identifier.
Definition at line 76 of file ViewProperties.cpp.
|
protected |
Subclasses may call this method to change the title.
This causes a titleChanged() signal to be emitted
Definition at line 59 of file ViewProperties.cpp.
QString ViewProperties::title | ( | ) | const |
Returns the title associated with a view.
Definition at line 85 of file ViewProperties.cpp.
|
signal |
Emitted when the title for a view changes.
|
virtual |
Returns the URL current associated with a view.
The default implementation returns an empty URL.
Reimplemented in Konsole::SessionController.
Definition at line 42 of file ViewProperties.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.