source: branches/start/Taper/src/taperview.h@ 9437

Last change on this file since 9437 was 4307, checked in by merck, 20 years ago
new project
File size: 1.9 KB
Line 
1/***************************************************************************
2 * Copyright (C) 2004 by Martin Merck *
3 * merck@astro.uni-wuerzburg.de *
4 *
5 * This software is part of the MAGIC software. *
6 ***************************************************************************/
7
8#ifndef _TAPERVIEW_H_
9#define _TAPERVIEW_H_
10
11#include <qwidget.h>
12#include <kparts/part.h>
13#include <taperiface.h>
14
15class QPainter;
16class KURL;
17
18/**
19 * This is the main view class for Taper. Most of the non-menu,
20 * non-toolbar, and non-statusbar (e.g., non frame) GUI code should go
21 * here.
22 *
23 * This taper uses an HTML component as an example.
24 *
25 * @short Main view
26 * @author Martin Merck <merck@astro.uni-wuerzburg.de>
27 * @version 0.1
28 */
29class TaperView : public QWidget, public TaperIface
30{
31 Q_OBJECT
32public:
33 /**
34 * Default constructor
35 */
36 TaperView(QWidget *parent);
37
38 /**
39 * Destructor
40 */
41 virtual ~TaperView();
42
43 /**
44 * Random 'get' function
45 */
46 QString currentURL();
47
48 /**
49 * Random 'set' function accessed by DCOP
50 */
51 virtual void openURL(QString url);
52
53 /**
54 * Random 'set' function
55 */
56 virtual void openURL(const KURL& url);
57
58 /**
59 * Print this view to any medium -- paper or not
60 */
61 void print(QPainter *, int height, int width);
62
63signals:
64 /**
65 * Use this signal to change the content of the statusbar
66 */
67 void signalChangeStatusbar(const QString& text);
68
69 /**
70 * Use this signal to change the content of the caption
71 */
72 void signalChangeCaption(const QString& text);
73
74private slots:
75 void slotOnURL(const QString& url);
76 void slotSetTitle(const QString& title);
77
78private:
79 KParts::ReadOnlyPart *m_html;
80};
81
82#endif // _TAPERVIEW_H_
Note: See TracBrowser for help on using the repository browser.