blob: 72775a9babb99f6ef35c612767e2fb0a2a9d3e67 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
#ifndef OPIE_DATEBOOK_SHOW_H
#define OPIE_DATEBOOK_SHOW_H
#include <qstring.h>
#include <qtextview.h>
#include <opie/oevent.h>
namespace Datebook {
class MainWindow;
/**
* here is the show
* The show interface will
* show the richtext information
* of the OEvent
*/
class Show {
public:
/**
* mainwindow as parent
*/
Show(MainWindow* );
virtual ~Show();
/**
* show the OEvent
*/
virtual void show(const OEvent& str) = 0;
/**
* the Widget
*/
virtual QWidget* widget() = 0;
protected:
/**
* the show is over
* ask the mainwindow to hide
*/
void hideMe();
private:
MainWindow* m_win;
};
class TextShow : public QTextView {
Q_OBJECT
public:
TextShow( QWidget* parent, MainWindow* win );
~TextShow();
QWidget* widget();
void show(const OEvent&);
};
}
#endif
|