summaryrefslogtreecommitdiff
path: root/core/pim/datebook2/show.h
Side-by-side diff
Diffstat (limited to 'core/pim/datebook2/show.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/datebook2/show.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/core/pim/datebook2/show.h b/core/pim/datebook2/show.h
index 37d22fe..72775a9 100644
--- a/core/pim/datebook2/show.h
+++ b/core/pim/datebook2/show.h
@@ -1,10 +1,11 @@
#ifndef OPIE_DATEBOOK_SHOW_H
#define OPIE_DATEBOOK_SHOW_H
#include <qstring.h>
+#include <qtextview.h>
#include <opie/oevent.h>
namespace Datebook {
class MainWindow;
@@ -22,23 +23,35 @@ namespace Datebook {
Show(MainWindow* );
virtual ~Show();
/**
* show the OEvent
*/
- void show(const OEvent& str);
+ 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