summaryrefslogtreecommitdiff
path: root/libopie2/examples/opieui/osplitter_example/osplitter_mail.h
authormickeyl <mickeyl>2004-01-15 15:50:38 (UTC)
committer mickeyl <mickeyl>2004-01-15 15:50:38 (UTC)
commit53fa609d585216173c834cd1f22678a087394cde (patch) (unidiff)
tree750759ec9a94326fc68e3ae573350c47b7aa52fe /libopie2/examples/opieui/osplitter_example/osplitter_mail.h
parent84bb8c9046007fe2adfaa016aded88b961c65e62 (diff)
downloadopie-53fa609d585216173c834cd1f22678a087394cde.zip
opie-53fa609d585216173c834cd1f22678a087394cde.tar.gz
opie-53fa609d585216173c834cd1f22678a087394cde.tar.bz2
- add oapplicationfactory to opiecore
- add big screen examples
Diffstat (limited to 'libopie2/examples/opieui/osplitter_example/osplitter_mail.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/examples/opieui/osplitter_example/osplitter_mail.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/libopie2/examples/opieui/osplitter_example/osplitter_mail.h b/libopie2/examples/opieui/osplitter_example/osplitter_mail.h
new file mode 100644
index 0000000..b7e7efe
--- a/dev/null
+++ b/libopie2/examples/opieui/osplitter_example/osplitter_mail.h
@@ -0,0 +1,49 @@
1/*
2 * You may use, modify and distribute this code without any limitation
3 */
4
5/*
6 * Header file for a more complete email client like
7 * layout
8 */
9
10#ifndef OPIE_SPLITTER_MAIL_EXAMPLE_H
11#define OPIE_SPLITTER_MAIL_EXAMPLE_H
12
13#include <qwidget.h>
14#include <qlist.h>
15#include <qlistview.h>
16
17class Folder;
18class QLabel;
19
20class OSplitter;
21class ListViews : public QWidget {
22 Q_OBJECT
23public:
24 static QString appName() { return QString::fromLatin1("osplitter-mail"); }
25 ListViews( QWidget* parent, const char * name, WFlags fl );
26 ~ListViews();
27
28 bool eventFilter( QObject* , QEvent* );
29private:
30 void initFolders();
31 void initFolder( Folder *folder, unsigned int &count );
32
33 QListView *m_messages, *m_overview;
34 QLabel *m_message, *m_attach;
35 QList<QListView> m_folders; // used in tab mode
36 QList<Folder> m_lstFolders;
37 bool m_mode : 1; // bitfield
38 OSplitter *m_splitter;
39 OSplitter *splitti;
40 QListView *folder1;
41#if 0
42//private slots:
43// void slotFolderChanged( QListViewItem* );
44// void slotMessageChanged();
45// void slotSizeChange( bool, const QSize& );
46#endif
47};
48
49#endif