Warning, file /office/calligra/libs/widgets/KoToolBoxDocker_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_TOOLBOX_DOCKER_H_ 0023 #define _KO_TOOLBOX_DOCKER_H_ 0024 0025 #include <KoCanvasObserverBase.h> 0026 0027 #include <QDockWidget> 0028 0029 class KoCanvasBase; 0030 class KoToolBox; 0031 class KoToolBoxScrollArea; 0032 0033 class KoToolBoxDocker : public QDockWidget, public KoCanvasObserverBase 0034 { 0035 Q_OBJECT 0036 public: 0037 explicit KoToolBoxDocker(KoToolBox *toolBox); 0038 0039 /// reimplemented from KoCanvasObserverBase 0040 void setCanvas(KoCanvasBase *canvas) override; 0041 void unsetCanvas() override; 0042 QString observerName() const override { return QStringLiteral("KoToolBoxDocker"); } 0043 0044 protected: 0045 void resizeEvent(QResizeEvent *event) override; 0046 0047 protected Q_SLOTS: 0048 void updateToolBoxOrientation(Qt::DockWidgetArea area); 0049 void updateFloating(bool); 0050 0051 private: 0052 KoToolBox *m_toolBox; 0053 KoToolBoxScrollArea *m_scrollArea; 0054 }; 0055 0056 #endif // _KO_TOOLBOX_DOCKER_H_