#include <KoUserStyle.h>
Public Member Functions | |
| KoUserStyle (const TQString &name) | |
| TQString | name () const |
| void | setName (const TQString &name) |
| TQString | displayName () const |
| void | setDisplayName (const TQString &name) |
Protected Attributes | |
| TQString | m_name |
| TQString | m_displayName |
Detailed Description
Base class for any kind of style that the user can create/modify/delete/display.
Use in conjunction with KoUserStyleCollection.
For every style provided by the application itself and named "Foo", ensure that i18n("Style name", "Foo") is available in a .cpp file, and create KoUserStyle("Foo"). The display name of the style will be set automatically to the translation of "Foo".
Definition at line 33 of file KoUserStyle.h.
Constructor & Destructor Documentation
◆ KoUserStyle()
| KoUserStyle::KoUserStyle | ( | const TQString & | name | ) |
Definition at line 22 of file KoUserStyle.cpp.
Member Function Documentation
◆ displayName()
| TQString KoUserStyle::displayName | ( | ) | const |
The user-visible name (e.g. translated, or set by the user)
Definition at line 27 of file KoUserStyle.cpp.
◆ name()
|
inline |
The internal name (used for loading/saving, but not shown to the user) Should be unique in a given style collection.
Definition at line 40 of file KoUserStyle.h.
◆ setDisplayName()
| void KoUserStyle::setDisplayName | ( | const TQString & | name | ) |
Set the user-visible name.
Definition at line 32 of file KoUserStyle.cpp.
◆ setName()
|
inline |
Set the internal name - see generateUniqueName() if needed Should be unique in a given style collection.
Definition at line 43 of file KoUserStyle.h.
Member Data Documentation
◆ m_displayName
|
protected |
Definition at line 52 of file KoUserStyle.h.
◆ m_name
|
protected |
Definition at line 51 of file KoUserStyle.h.
The documentation for this class was generated from the following files:
