File indexing completed on 2024-04-14 04:38:20

0001 /****************************************************************************
0002 **
0003 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
0004 ** All rights reserved.
0005 ** Contact: Nokia Corporation (qt-info@nokia.com)
0006 **
0007 ** This file is part of the Qt Designer of the Qt Toolkit.
0008 **
0009 ** $QT_BEGIN_LICENSE:LGPL$
0010 ** Commercial Usage
0011 ** Licensees holding valid Qt Commercial licenses may use this file in
0012 ** accordance with the Qt Commercial License Agreement provided with the
0013 ** Software or, alternatively, in accordance with the terms contained in
0014 ** a written agreement between you and Nokia.
0015 **
0016 ** GNU Lesser General Public License Usage
0017 ** Alternatively, this file may be used under the terms of the GNU Lesser
0018 ** General Public License version 2.1 as published by the Free Software
0019 ** Foundation and appearing in the file LICENSE.LGPL included in the
0020 ** packaging of this file.  Please review the following information to
0021 ** ensure the GNU Lesser General Public License version 2.1 requirements
0022 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
0023 **
0024 ** In addition, as a special exception, Nokia gives you certain additional
0025 ** rights.  These rights are described in the Nokia Qt LGPL Exception
0026 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
0027 **
0028 ** GNU General Public License Usage
0029 ** Alternatively, this file may be used under the terms of the GNU
0030 ** General Public License version 3.0 as published by the Free Software
0031 ** Foundation and appearing in the file LICENSE.GPL included in the
0032 ** packaging of this file.  Please review the following information to
0033 ** ensure the GNU General Public License version 3.0 requirements will be
0034 ** met: http://www.gnu.org/copyleft/gpl.html.
0035 **
0036 ** If you have questions regarding the use of this file, please contact
0037 ** Nokia at qt-info@nokia.com.
0038 ** $QT_END_LICENSE$
0039 **
0040 ****************************************************************************/
0041 
0042 #ifndef SEEKSLIDER_PLUGIN_H
0043 #define SEEKSLIDER_PLUGIN_H
0044 
0045 #include <QDesignerCustomWidgetInterface>
0046 
0047 class SeekSliderPlugin: public QObject, public QDesignerCustomWidgetInterface
0048 {
0049     Q_OBJECT
0050     Q_INTERFACES(QDesignerCustomWidgetInterface)
0051 public:
0052     explicit SeekSliderPlugin(const QString &group, QObject *parent = nullptr);
0053 
0054     QString name() const override;
0055     QString group() const override;
0056     QString toolTip() const override;
0057     QString whatsThis() const override;
0058     QString includeFile() const override;
0059     QIcon icon() const override;
0060     bool isContainer() const override;
0061     QWidget *createWidget(QWidget *parent) override;
0062     bool isInitialized() const override;
0063     void initialize(QDesignerFormEditorInterface *core) override;
0064     QString domXml() const override;
0065 
0066 private:
0067     const QString m_group;
0068     bool m_initialized;
0069 };
0070 
0071 #endif // SEEKSLIDER_PLUGIN_H