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

Konsole

  • Konsole
  • ViewProperties
Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions | List of all members
Konsole::ViewProperties Class Reference

#include <ViewProperties.h>

Inheritance diagram for Konsole::ViewProperties:
Inheritance graph
[legend]

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

ViewProperties::ViewProperties ( QObject *  parent)
explicit

Definition at line 28 of file ViewProperties.cpp.

ViewProperties::~ViewProperties ( )
virtual

Definition at line 34 of file ViewProperties.cpp.

Member Function Documentation

void Konsole::ViewProperties::activity ( ViewProperties *  item)
signal

Emitted when activity has occurred in this view.

virtual bool Konsole::ViewProperties::confirmClose ( ) const
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.

static QMimeData* Konsole::ViewProperties::createMimeData ( int  id)
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.

QString ViewProperties::currentDir ( ) const
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.

static int Konsole::ViewProperties::decodeMimeData ( const QMimeData *  mimeData)
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.

void ViewProperties::fireActivity ( )
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.

void Konsole::ViewProperties::iconChanged ( ViewProperties *  properties)
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.

static QString Konsole::ViewProperties::mimeType ( )
inlinestatic

Name of mime format to use in drag-and-drop operations.

Definition at line 89 of file ViewProperties.h.

ViewProperties * ViewProperties::propertiesById ( int  id)
static

Finds a ViewProperties instance given its numeric identifier.

Definition at line 38 of file ViewProperties.cpp.

void ViewProperties::rename ( )
virtualslot

Requests the renaming of this view.

The default implementation does nothing.

Reimplemented in Konsole::SessionController.

Definition at line 55 of file ViewProperties.cpp.

void ViewProperties::setIcon ( const QIcon &  icon)
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.

void ViewProperties::setIdentifier ( int  id)
protected

Subclasses may call this method to change the identifier.

Definition at line 76 of file ViewProperties.cpp.

void ViewProperties::setTitle ( const QString &  title)
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.

void Konsole::ViewProperties::titleChanged ( ViewProperties *  properties)
signal

Emitted when the title for a view changes.

KUrl ViewProperties::url ( ) const
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:
  • ViewProperties.h
  • ViewProperties.cpp
This file is part of the KDE documentation.
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.

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
  • Applications
  •   Libraries
  •     libkonq
  • 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