Warning, file /office/calligra/libs/widgets/KoModeBoxDocker_p.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 * Copyright (c) 2005 Boudewijn Rempt <boud@valdyas.org> 0003 * Copyright (c) 2005-2008 Thomas Zander <zander@kde.org> 0004 * Copyright (c) 2009 Peter Simonsson <peter.simonsson@gmail.com> 0005 * Copyright (c) 2010 Cyrille Berger <cberger@cberger.net> 0006 * 0007 * This library is free software; you can redistribute it and/or 0008 * modify it under the terms of the GNU Library General Public 0009 * License as published by the Free Software Foundation; either 0010 * version 2 of the License, or (at your option) any later version. 0011 * 0012 * This library is distributed in the hope that it will be useful, 0013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0015 * Library General Public License for more details. 0016 * 0017 * You should have received a copy of the GNU Library General Public License 0018 * along with this library; see the file COPYING.LIB. If not, write to 0019 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0020 * Boston, MA 02110-1301, USA. 0021 */ 0022 #ifndef _KO_MODEBOX_DOCKER_H_ 0023 #define _KO_MODEBOX_DOCKER_H_ 0024 0025 #include <KoCanvasObserverBase.h> 0026 0027 #include <QDockWidget> 0028 0029 class KoCanvasBase; 0030 class KoModeBox; 0031 0032 class KoModeBoxDocker : public QDockWidget, public KoCanvasObserverBase 0033 { 0034 Q_OBJECT 0035 public: 0036 explicit KoModeBoxDocker(KoModeBox *modeBox); 0037 0038 /// reimplemented from KoCanvasObserverBase 0039 QString observerName() const override { return QStringLiteral("KoModeBoxDocker"); } 0040 void setCanvas(KoCanvasBase *canvas) override; 0041 void unsetCanvas() override; 0042 0043 private Q_SLOTS: 0044 /// Called when the docker changes area 0045 void locationChanged(Qt::DockWidgetArea area); 0046 0047 private: 0048 KoModeBox *m_modeBox; 0049 }; 0050 0051 #endif // _KO_MODEBOX_DOCKER_H_