⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ksimplesound.h

📁 konqueror3 embedded版本, KDE环境下的当家浏览器的嵌入式版本源码包.
💻 H
字号:
/* This file is part of the KDE Project   Copyright (c) 2002 Paul Chitescu <paulc-devel@null.ro>   This library is free software; you can redistribute it and/or   modify it under the terms of the GNU Library General Public   License version 2 as published by the Free Software Foundation.   This library is distributed in the hope that it will be useful,   but WITHOUT ANY WARRANTY; without even the implied warranty of   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU   Library General Public License for more details.   You should have received a copy of the GNU Library General Public License   along with this library; see the file COPYING.LIB.  If not, write to   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,   Boston, MA 02110-1301, USA.*/#ifndef __KSIMPLESOUND_H#define __KSIMPLESOUND_H#include <config.h>#include <qobject.h>#ifdef QT_NO_SOUND#error KSimpleSound needs QSound support compiled in Qt#endif#include <kparts/part.h>#include <kparts/factory.h>class KSimpleSound : public KParts::ReadOnlyPart{	Q_OBJECTpublic:    KSimpleSound( QWidget *parentWidget, const char *widgetName,		  QObject *parent, const char *name,		  const QStringList &args = QStringList() );    virtual ~KSimpleSound();public slots:    virtual void play();protected slots:    void fileOpen();protected:    virtual bool openFile();    bool m_autoplay;    bool m_loop;};class SimpleSoundFactory : public KParts::Factory{	Q_OBJECTpublic:    SimpleSoundFactory();    virtual ~SimpleSoundFactory();    static KInstance* instance();protected:    virtual KParts::Part* createPartObject( QWidget *parentWidget, const char *widgetName,                                            QObject *parent, const char *name,					    const char *classname = "KParts::ReadOnlyPart",					    const QStringList &args = QStringList() );};#endif // __KSIMPLESOUND_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -