summaryrefslogtreecommitdiff
path: root/core/pim/datebook2/show.h
authorzecke <zecke>2003-02-23 21:27:08 (UTC)
committer zecke <zecke>2003-02-23 21:27:08 (UTC)
commit041eda0d7482d60cd67731b81fd36104fcd3120f (patch) (side-by-side diff)
treec7bc7730b9e76e22f828291d404821f7bd922d6f /core/pim/datebook2/show.h
parenta195865dfdb03b4c7c972acfc8cfd87743ab3e6f (diff)
downloadopie-041eda0d7482d60cd67731b81fd36104fcd3120f.zip
opie-041eda0d7482d60cd67731b81fd36104fcd3120f.tar.gz
opie-041eda0d7482d60cd67731b81fd36104fcd3120f.tar.bz2
Implement some of the new framework
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,44 +1,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
*/
- 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