summaryrefslogtreecommitdiff
path: root/libopie2/examples/opieui/osplitter_example/osplitter_mail.h
blob: 1447a92059eacaf6590b600e69c5971633558d0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
 * You may use, modify and distribute this code without any limitation
 */

/*
 * Header file for a more complete email client like
 * layout
 */

#ifndef OPIE_SPLITTER_MAIL_EXAMPLE_H
#define OPIE_SPLITTER_MAIL_EXAMPLE_H

#include <qwidget.h>
#include <qlist.h>
#include <qlistview.h>

#include <opie2/osplitter.h>

using Opie::OSplitter;

class Folder;
class QLabel;

class OSplitter;
class ListViews : public QWidget {
    Q_OBJECT
public:
    static QString appName() { return QString::fromLatin1("osplitter-mail"); }
    ListViews( QWidget* parent, const char * name, WFlags fl );
    ~ListViews();

    bool eventFilter( QObject* , QEvent* );
private:
    void initFolders();
    void initFolder( Folder *folder, unsigned int &count );

    QListView *m_messages, *m_overview;
    QLabel *m_message, *m_attach;
    QList<QListView> m_folders; // used in tab mode
    QList<Folder> m_lstFolders;
    bool m_mode : 1; // bitfield
    OSplitter *m_splitter;
    OSplitter *splitti;
    QListView *folder1;
#if 0
//private slots:
//    void slotFolderChanged( QListViewItem* );
//    void slotMessageChanged();
//    void slotSizeChange( bool, const QSize& );
#endif
};

#endif