Diffstat (limited to 'libopie/big-screen/example/osplitter_mail.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie/big-screen/example/osplitter_mail.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/libopie/big-screen/example/osplitter_mail.h b/libopie/big-screen/example/osplitter_mail.h new file mode 100644 index 0000000..d76f264 --- a/dev/null +++ b/libopie/big-screen/example/osplitter_mail.h | |||
@@ -0,0 +1,48 @@ | |||
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 | class Folder; | ||
18 | class QLabel; | ||
19 | |||
20 | class OSplitter; | ||
21 | class ListViews : public QWidget { | ||
22 | Q_OBJECT | ||
23 | public: | ||
24 | static QString appName() { return QString::fromLatin1("osplitter-mail"); } | ||
25 | ListViews( QWidget* parent, const char * name, WFlags fl ); | ||
26 | ~ListViews(); | ||
27 | |||
28 | private: | ||
29 | void initFolders(); | ||
30 | void initFolder( Folder *folder, unsigned int &count ); | ||
31 | |||
32 | QListView *m_messages, *m_overview; | ||
33 | QLabel *m_message, *m_attach; | ||
34 | QList<QListView> m_folders; // used in tab mode | ||
35 | QList<Folder> m_lstFolders; | ||
36 | bool m_mode : 1; // bitfield | ||
37 | OSplitter *m_splitter; | ||
38 | OSplitter *splitti; | ||
39 | QListView *folder1; | ||
40 | #if 0 | ||
41 | //private slots: | ||
42 | // void slotFolderChanged( QListViewItem* ); | ||
43 | // void slotMessageChanged(); | ||
44 | // void slotSizeChange( bool, const QSize& ); | ||
45 | #endif | ||
46 | }; | ||
47 | |||
48 | #endif | ||