Warning, file /office/calligra/libs/main/KoDockerManager.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 project 0002 * 0003 * Copyright (c) 2008 C. Boemann <cbo@boemann.dk> 0004 * 0005 * This library is free software; you can redistribute it and/or 0006 * modify it under the terms of the GNU Library General Public 0007 * License as published by the Free Software Foundation; either 0008 * version 2 of the License, or (at your option) any later version. 0009 * 0010 * This library is distributed in the hope that it will be useful, 0011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0013 * Library General Public License for more details. 0014 * 0015 * You should have received a copy of the GNU Library General Public License 0016 * along with this library; see the file COPYING.LIB. If not, write to 0017 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0018 * Boston, MA 02110-1301, USA. 0019 */ 0020 0021 #ifndef KODOCKERMANAGER_H 0022 #define KODOCKERMANAGER_H 0023 0024 #include "komain_export.h" 0025 0026 #include <QObject> 0027 #include <QPointer> 0028 0029 class KoMainWindow; 0030 0031 /** 0032 The docker manager makes sure that tool option widgets are shown at the right time. 0033 */ 0034 class KOMAIN_EXPORT KoDockerManager : public QObject 0035 { 0036 Q_OBJECT 0037 public: 0038 explicit KoDockerManager(KoMainWindow* mainWindow); 0039 ~KoDockerManager() override; 0040 0041 void resetToolDockerWidgets(); 0042 0043 void removeToolOptionsDocker(); 0044 0045 /// sets the visibility of the tab and lock icons 0046 void setIcons(bool enabled); 0047 0048 public Q_SLOTS: 0049 /** 0050 * Update the option widgets to the argument ones, removing the currently set widgets. 0051 */ 0052 void newOptionWidgets(const QList<QPointer<QWidget> > & optionWidgetList); 0053 0054 0055 private: 0056 Q_PRIVATE_SLOT(d, void restoringDone()) 0057 class Private; 0058 Private * const d; 0059 }; 0060 0061 #endif