Warning, file /office/calligra/libs/widgets/KoTagToolButton.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002  *    This file is part of the KDE project
0003  *    Copyright (c) 2002 Patrick Julien <freak@codepimps.org>
0004  *    Copyright (c) 2007 Jan Hambrecht <jaham@gmx.net>
0005  *    Copyright (c) 2007 Sven Langkamp <sven.langkamp@gmail.com>
0006  *    Copyright (C) 2011 Srikanth Tiyyagura <srikanth.tulasiram@gmail.com>
0007  *    Copyright (c) 2011 José Luis Vergara <pentalis@gmail.com>
0008  *    Copyright (c) 2013 Sascha Suelzer <s.suelzer@gmail.com>
0009  *
0010  *    This library is free software; you can redistribute it and/or
0011  *    modify it under the terms of the GNU Library General Public
0012  *    License as published by the Free Software Foundation; either
0013  *    version 2 of the License, or (at your option) any later version.
0014  *
0015  *    This library is distributed in the hope that it will be useful,
0016  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
0017  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0018  *    Library General Public License for more details.
0019  *
0020  *    You should have received a copy of the GNU Library General Public License
0021  *    along with this library; see the file COPYING.LIB.  If not, write to
0022  *    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0023  *    Boston, MA 02110-1301, USA.
0024  */
0025 
0026 #ifndef KOTAGTOOLBUTTON_H
0027 #define KOTAGTOOLBUTTON_H
0028 
0029 #include <QWidget>
0030 
0031 class KoTagToolButton : public QWidget
0032 {
0033     Q_OBJECT
0034 
0035 private:
0036     explicit KoTagToolButton(QWidget* parent = 0);
0037     ~KoTagToolButton() override;
0038     void readOnlyMode(bool activate);
0039     void setUndeletionCandidate(const QString &deletedTagName);
0040 
0041 Q_SIGNALS:
0042     void newTagRequested(const QString &tagname);
0043     void renamingOfCurrentTagRequested(const QString &tagname);
0044     void deletionOfCurrentTagRequested();
0045     void undeletionOfTagRequested(const QString &tagname);
0046     void purgingOfTagUndeleteListRequested();
0047     void popupMenuAboutToShow();
0048 
0049 private Q_SLOTS:
0050     void onTagUndeleteClicked();
0051 
0052 private:
0053     class Private;
0054     Private* const d;
0055     friend class KoTagChooserWidget;
0056 };
0057 
0058 #endif // KOTAGTOOLBUTTON_H