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 |
Static Public Member Functions | |
static QMimeData * | createMimeData (int id) |
static int | decodeMimeData (const QMimeData *mimeData) |
static QString | mimeType () |
static ViewProperties * | propertiesById (int id) |
Protected Slots | |
void | fireActivity () |
Protected Member Functions | |
void | setIcon (const QIcon &icon) |
void | setIdentifier (int id) |
void | setTitle (const QString &title) |
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-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:25 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.