You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
924 B
39 lines
924 B
4 years ago
|
// Author: Max Howell <max.howell@methylblue.com>, (C) 2005
|
||
|
// Copyright: See COPYING file that comes with this distribution
|
||
|
|
||
|
#ifndef CODEINE_PART_H
|
||
|
#define CODEINE_PART_H
|
||
|
|
||
|
#include <kparts/statusbarextension.h>
|
||
|
#include <kparts/part.h>
|
||
|
#include <kurl.h>
|
||
|
|
||
|
class KAboutData;
|
||
|
class QSlider;
|
||
|
|
||
|
|
||
|
namespace Codeine
|
||
|
{
|
||
|
class Part : public KParts::ReadOnlyPart
|
||
|
{
|
||
|
public:
|
||
|
Part( QWidget*, const char*, QObject*, const char*, const QStringList& );
|
||
|
|
||
|
virtual bool openFile() { return false; } //pure virtual in base class
|
||
|
virtual bool openURL( const KURL& );
|
||
|
virtual bool closeURL();
|
||
|
|
||
|
static KAboutData *createAboutData();
|
||
|
|
||
|
private:
|
||
|
KParts::StatusBarExtension *m_statusBarExtension;
|
||
|
QSlider *m_slider;
|
||
|
|
||
|
KStatusBar *statusBar() { return m_statusBarExtension->statusBar(); }
|
||
|
|
||
|
virtual void timerEvent( QTimerEvent* );
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif
|