kdecore Library API Documentation

KKeyServer::Sym Struct Reference

Represents a key symbol. More...

#include <kkeyserver_x11.h>

List of all members.

Public Member Functions

 Sym ()
 Sym (uint sym)
 Sym (const QString &s)
bool initQt (int keyQt)
bool init (const QString &s)
int qt () const
QString toStringInternal () const
QString toString () const
uint getModsRequired () const
uint getSymVariation () const
 operator uint () const
Symoperator= (uint sym)

Public Attributes

uint m_sym


Detailed Description

Represents a key symbol.

See also:
KKey

KKeyServer

Definition at line 25 of file kkeyserver_x11.h.


Constructor & Destructor Documentation

KKeyServer::Sym::Sym  )  [inline]
 

Creates a null symbol.

Definition at line 32 of file kkeyserver_x11.h.

References m_sym.

KKeyServer::Sym::Sym uint  sym  )  [inline]
 

Creates asymbol with the given value.

Parameters:
sym the value
Definition at line 38 of file kkeyserver_x11.h.

References m_sym.

KKeyServer::Sym::Sym const QString s  )  [inline]
 

Creates a symbol from the given string description.

Parameters:
s the description of the symbol
See also:
toString()
Definition at line 45 of file kkeyserver_x11.h.

References init().


Member Function Documentation

bool KKeyServer::Sym::initQt int  keyQt  ) 
 

Initializes the symbol with the given Qt key code.

Parameters:
keyQt the qt key code
Returns:
true if successful, false otherwise
See also:
Qt::Key
Definition at line 361 of file kkeyserver_x11.cpp.

References endl(), and m_sym.

Referenced by KKeyServer::keyQtToSym().

bool KKeyServer::Sym::init const QString s  ) 
 

Initializes the key with the given string description.

Parameters:
s the string description
Returns:
true if successful, false otherwise
See also:
toString()
Definition at line 384 of file kkeyserver_x11.cpp.

References m_sym.

Referenced by Sym().

int KKeyServer::Sym::qt  )  const
 

Returns the qt key code of the symbol.

Returns:
the qt key code
Definition at line 414 of file kkeyserver_x11.cpp.

References m_sym.

Referenced by KKeyServer::symToKeyQt().

QString KKeyServer::Sym::toString  )  const
 

Returns the string representation of the symbol.

Returns:
the string representation of the symbol
Definition at line 458 of file kkeyserver_x11.cpp.

uint KKeyServer::Sym::getModsRequired  )  const
 

Returns the mods that are required for this symbol as ORed KKey::ModFlag's.

For example, Break requires a Ctrl to be valid.

Returns:
the required KKey::ModFlag's
See also:
KKey::ModFlag
Definition at line 460 of file kkeyserver_x11.cpp.

References m_sym.

uint KKeyServer::Sym::getSymVariation  )  const
 

TODO: please find out what this method does and document it.

Definition at line 492 of file kkeyserver_x11.cpp.

References m_sym.

KKeyServer::Sym::operator uint  )  const [inline]
 

Casts the symbol to its integer representation.

Definition at line 98 of file kkeyserver_x11.h.

References m_sym.

Sym& KKeyServer::Sym::operator= uint  sym  )  [inline]
 

Overloaded operator to convert ints to Sym.

Definition at line 103 of file kkeyserver_x11.h.

References m_sym.


Member Data Documentation

uint KKeyServer::Sym::m_sym
 

the actual value of the symbol

Definition at line 29 of file kkeyserver_x11.h.

Referenced by getModsRequired(), getSymVariation(), KKey::init(), init(), initQt(), KKeyServer::keyQtToSym(), operator uint(), operator=(), qt(), and Sym().


The documentation for this struct was generated from the following files:
KDE Logo
This file is part of the documentation for kdecore Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Sep 29 09:43:16 2004 by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2003