F:/KPlato/koffice/libs/flake/KoToolFactory.cpp

Aller à la documentation de ce fichier.
00001 /* This file is part of the KDE project
00002  * Copyright (C) 2006 Thomas Zander <zander@kde.org>
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Library General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2 of the License, or (at your option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Library General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Library General Public License
00015  * along with this library; see the file COPYING.LIB.  If not, write to
00016  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
00018  */
00019 
00020 #include "KoToolFactory.h"
00021 
00022 KoToolFactory::KoToolFactory(QObject *parent, const QString &id, const QString &name)
00023 : QObject(parent)
00024 , m_name(name)
00025 , m_id(id)
00026 {
00027     m_priority=100;
00028 }
00029 
00030 KoToolFactory::~KoToolFactory()
00031 {
00032 }
00033 
00034 const QString &KoToolFactory::toolId() const {
00035     return m_id;
00036 }
00037 
00038 int KoToolFactory::priority() const {
00039     return m_priority;
00040 }
00041 
00042 const QString& KoToolFactory::toolType() const {
00043     return m_toolType;
00044 }
00045 
00046 const QString& KoToolFactory::toolTip() const {
00047     return m_tooltip;
00048 }
00049 
00050 const QString& KoToolFactory::icon() const {
00051     return m_icon;
00052 }
00053 
00054 const QString &KoToolFactory::activationShapeId() const {
00055     return m_activationId;
00056 }
00057 
00058 QKeySequence KoToolFactory::shortcut() const {
00059     return m_shortcut;
00060 }
00061 
00062 void KoToolFactory::setActivationShapeID(const QString &activationShapeId) {
00063     m_activationId = activationShapeId;
00064 }
00065 
00066 void KoToolFactory::setToolTip(const QString & tooltip) {
00067     m_tooltip = tooltip;
00068 }
00069 
00070 void KoToolFactory::setToolType(const QString & toolType) {
00071     m_toolType = toolType;
00072 }
00073 
00074 void KoToolFactory::setIcon(const QString & icon) {
00075     m_icon = icon;
00076 }
00077 
00078 void KoToolFactory::setPriority(int newPriority) {
00079     m_priority = newPriority;
00080 }
00081 
00082 void KoToolFactory::setShortcut(const QKeySequence & shortcut)
00083 {
00084     m_shortcut = shortcut;
00085 }
00086 
00087 
00088 const KoID KoToolFactory::id() const {
00089     return KoID(m_id, m_name);
00090 }
00091 
00092 const QString& KoToolFactory::name() const {
00093     return m_name;
00094 }
00095 
00096 #include "KoToolFactory.moc"

Généré le Wed Nov 22 23:41:00 2006 pour KPlato par  doxygen 1.5.1-p1