author | mickeyl <mickeyl> | 2005-01-29 14:18:51 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-01-29 14:18:51 (UTC) |
commit | 555b999359a5aad999eaaf48632ce85f25125b85 (patch) (unidiff) | |
tree | 7414362241e49e06f49486e93a8f504113961b1c /examples/opieui/osplitter_example/osplitter_mail.h | |
parent | 7b06e36fe27adc6a4fde2004eac13aaf8c0f0f02 (diff) | |
download | opie-555b999359a5aad999eaaf48632ce85f25125b85.zip opie-555b999359a5aad999eaaf48632ce85f25125b85.tar.gz opie-555b999359a5aad999eaaf48632ce85f25125b85.tar.bz2 |
examples appear here
Diffstat (limited to 'examples/opieui/osplitter_example/osplitter_mail.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | examples/opieui/osplitter_example/osplitter_mail.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/examples/opieui/osplitter_example/osplitter_mail.h b/examples/opieui/osplitter_example/osplitter_mail.h new file mode 100644 index 0000000..67961fb --- a/dev/null +++ b/examples/opieui/osplitter_example/osplitter_mail.h | |||
@@ -0,0 +1,51 @@ | |||
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 | |||
17 | #include <opie2/osplitter.h> | ||
18 | |||
19 | |||
20 | class Folder; | ||
21 | class QLabel; | ||
22 | |||
23 | class ListViews : public QWidget { | ||
24 | Q_OBJECT | ||
25 | public: | ||
26 | static QString appName() { return QString::fromLatin1("osplitter-mail"); } | ||
27 | ListViews( QWidget* parent, const char * name, WFlags fl ); | ||
28 | ~ListViews(); | ||
29 | |||
30 | bool eventFilter( QObject* , QEvent* ); | ||
31 | private: | ||
32 | void initFolders(); | ||
33 | void initFolder( Folder *folder, unsigned int &count ); | ||
34 | |||
35 | QListView *m_messages, *m_overview; | ||
36 | QLabel *m_message, *m_attach; | ||
37 | QList<QListView> m_folders; // used in tab mode | ||
38 | QList<Folder> m_lstFolders; | ||
39 | bool m_mode : 1; // bitfield | ||
40 | Opie::Ui::OSplitter *m_splitter; | ||
41 | Opie::Ui::OSplitter *splitti; | ||
42 | QListView *folder1; | ||
43 | #if 0 | ||
44 | //private slots: | ||
45 | // void slotFolderChanged( QListViewItem* ); | ||
46 | // void slotMessageChanged(); | ||
47 | // void slotSizeChange( bool, const QSize& ); | ||
48 | #endif | ||
49 | }; | ||
50 | |||
51 | #endif | ||