lib

KoUserStyle.cpp
1/* This file is part of the KDE project
2 Copyright (C) 2005 David Faure <faure@kde.org>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License version 2 as published by the Free Software Foundation.
7
8 This library is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
12
13 You should have received a copy of the GNU Library General Public License
14 along with this library; see the file COPYING.LIB. If not, write to
15 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 Boston, MA 02110-1301, USA.
17*/
18
19#include "KoUserStyle.h"
20#include <tdelocale.h>
21
22KoUserStyle::KoUserStyle( const TQString & name )
23 : m_name( name ), m_displayName( i18n( "Style name", name.utf8() ) )
24{
25}
26
28{
29 return m_displayName;
30}
31
32void KoUserStyle::setDisplayName( const TQString& name )
33{
34 m_displayName = name;
35}
36
TQString displayName() const
The user-visible name (e.g. translated, or set by the user).
void setDisplayName(const TQString &name)
Set the user-visible name.
TQString name() const
The internal name (used for loading/saving, but not shown to the user) Should be unique in a given st...
Definition KoUserStyle.h:40
const char * name(StdAction id)