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

Konsole

Konsole::ColorSchemeManager

Konsole::ColorSchemeManager Class Reference

#include <ColorScheme.h>

List of all members.


Detailed Description

Manages the color schemes available for use by terminal displays.

See ColorScheme

Definition at line 250 of file ColorScheme.h.


Public Member Functions

void addColorScheme (ColorScheme *scheme)
QList< const ColorScheme * > allColorSchemes ()
 ColorSchemeManager ()
const ColorScheme * defaultColorScheme () const
bool deleteColorScheme (const QString &name)
const ColorScheme * findColorScheme (const QString &name)
 ~ColorSchemeManager ()

Static Public Member Functions

static ColorSchemeManager * instance ()

Constructor & Destructor Documentation

ColorSchemeManager::ColorSchemeManager (  ) 

Constructs a new ColorSchemeManager and loads the list of available color schemes.

The color schemes themselves are not loaded until they are first requested via a call to findColorScheme()

Definition at line 492 of file ColorScheme.cpp.

ColorSchemeManager::~ColorSchemeManager (  ) 

Destroys the ColorSchemeManager and saves any modified color schemes to disk.

Definition at line 496 of file ColorScheme.cpp.


Member Function Documentation

void ColorSchemeManager::addColorScheme ( ColorScheme *  scheme  ) 

Adds a new color scheme to the manager.

If scheme has the same name as an existing color scheme, it replaces the existing scheme.

TODO - Ensure the old color scheme gets deleted

Definition at line 576 of file ColorScheme.cpp.

QList< const ColorScheme * > ColorSchemeManager::allColorSchemes (  ) 

Returns a list of the all the available color schemes.

This may be slow when first called because all of the color scheme resources on disk must be located, read and parsed.

Subsequent calls will be inexpensive.

Definition at line 536 of file ColorScheme.cpp.

const ColorScheme * ColorSchemeManager::defaultColorScheme (  )  const

Returns the default color scheme for Konsole.

Definition at line 633 of file ColorScheme.cpp.

bool ColorSchemeManager::deleteColorScheme ( const QString &  name  ) 

Deletes a color scheme.

Returns true on successful deletion or false otherwise.

Definition at line 637 of file ColorScheme.cpp.

const ColorScheme * ColorSchemeManager::findColorScheme ( const QString &  name  ) 

Returns the color scheme with the given name or 0 if no scheme with that name exists.

If name is empty, the default color scheme is returned.

The first time that a color scheme with a particular name is requested, the configuration information is loaded from disk.

Definition at line 665 of file ColorScheme.cpp.

ColorSchemeManager * ColorSchemeManager::instance (  )  [static]

Returns the global color scheme manager instance.

Definition at line 692 of file ColorScheme.cpp.


The documentation for this class was generated from the following files:
  • ColorScheme.h
  • ColorScheme.cpp

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