File indexing completed on 2024-05-05 04:19:13
0001 /* 0002 Gwenview: an image viewer 0003 Copyright 2007 Aurélien Gâteau <agateau@kde.org> 0004 0005 This program is free software; you can redistribute it and/or 0006 modify it under the terms of the GNU General Public License 0007 as published by the Free Software Foundation; either version 2 0008 of the License, or (at your option) any later version. 0009 0010 This program 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 0013 GNU General Public License for more details. 0014 0015 You should have received a copy of the GNU General Public License 0016 along with this program; if not, write to the Free Software 0017 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 0018 0019 */ 0020 0021 #ifndef ABSTRACTCONTEXTMANAGERITEM_H 0022 #define ABSTRACTCONTEXTMANAGERITEM_H 0023 0024 // Qt 0025 #include <QWidget> 0026 0027 namespace Gwenview 0028 { 0029 class ContextManager; 0030 0031 struct AbstractContextManagerItemPrivate; 0032 class AbstractContextManagerItem : public QObject 0033 { 0034 Q_OBJECT 0035 public: 0036 AbstractContextManagerItem(ContextManager *); 0037 ~AbstractContextManagerItem() override; 0038 0039 QWidget *widget() const; 0040 0041 ContextManager *contextManager() const; 0042 0043 protected: 0044 void setWidget(QWidget *widget); 0045 0046 private: 0047 AbstractContextManagerItemPrivate *const d; 0048 }; 0049 0050 } // namespace 0051 0052 #endif /* ABSTRACTCONTEXTMANAGERITEM_H */