summaryrefslogtreecommitdiffstats
path: root/src/part/part.h
blob: 8a55f3a3d6177f353124607f6eb75bc72bbc37b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Author:    Max Howell <[email protected]>, (C) 2005
// Copyright: See COPYING file that comes with this distribution

#ifndef CODEINE_PART_H
#define CODEINE_PART_H

#include <tdeparts/statusbarextension.h>
#include <tdeparts/part.h>
#include <kurl.h>

class TDEAboutData;
class TQSlider;


namespace Codeine
{
   class Part : public KParts::ReadOnlyPart
   {
   public:
      Part( TQWidget*, const char*, TQObject*, const char*, const TQStringList& );

      virtual bool openFile() { return false; } //pure virtual in base class
      virtual bool openURL( const KURL& );
      virtual bool closeURL();

      static TDEAboutData *createAboutData();

   private:
      KParts::StatusBarExtension *m_statusBarExtension;
      TQSlider *m_slider;

      KStatusBar *statusBar() { return m_statusBarExtension->statusBar(); }

      virtual void timerEvent( TQTimerEvent* );
   };
}

#endif