Warning, file /office/calligra/libs/main/KoStandardAction.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* This file is part of the KDE libraries 0002 Copyright (C) 2009 Thomas Zander <zander@kde.org> 0003 0004 This library is free software; you can redistribute it and/or 0005 modify it under the terms of the GNU Library General Public 0006 License version 2 as published by the Free Software Foundation. 0007 0008 This library is distributed in the hope that it will be useful, 0009 but WITHOUT ANY WARRANTY; without even the implied warranty of 0010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0011 Library General Public License for more details. 0012 0013 You should have received a copy of the GNU Library General Public License 0014 along with this library; see the file COPYING.LIB. If not, write to 0015 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0016 Boston, MA 02110-1301, USA. 0017 */ 0018 #ifndef KOSTANDARDACTION_H 0019 #define KOSTANDARDACTION_H 0020 0021 #include "komain_export.h" 0022 0023 class QObject; 0024 class QAction; 0025 class KToggleAction; 0026 0027 /** 0028 * Convenience methods to access all standard Calligra actions. 0029 * See KStandardAction for usage details. 0030 */ 0031 namespace KoStandardAction 0032 { 0033 /** 0034 * The standard actions. 0035 */ 0036 enum StandardAction { 0037 ActionNone, 0038 0039 ShowGuides 0040 }; 0041 0042 /** 0043 * Creates an action corresponding to the 0044 * KoStandardAction::StandardAction enum. 0045 */ 0046 KOMAIN_EXPORT QAction* create(StandardAction id, const QObject *receiver, const char *slot, QObject *parent); 0047 0048 /** 0049 * This will return the internal name of a given standard action. 0050 */ 0051 KOMAIN_EXPORT const char* name(StandardAction id); 0052 0053 /** 0054 * Show or hide guide lines 0055 */ 0056 KOMAIN_EXPORT KToggleAction *showGuides(const QObject *receiver, const char *slot, QObject *parent); 0057 } 0058 0059 #endif // KSTDACTION_H 0060