summaryrefslogtreecommitdiff
path: root/core/pim/todo/quickeditimpl.h
blob: d465dba2fd83a3e9367d2e33c85a2fc3aba075cf (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
#ifndef OPIE_QUICK_EDIT_IMPL_H
#define OPIE_QUICK_EDIT_IMPL_H

#include <qpixmap.h>

#include <qtoolbar.h>

#include "quickedit.h"

class QLineEdit;
class QLabel;

class QuickEditImpl : public QToolBar, public Todo::QuickEdit {
    Q_OBJECT
public:
    QuickEditImpl( QWidget* parent,  bool visible);
    ~QuickEditImpl();
    OPimTodo todo()const;
    QWidget* widget();
private slots:
    void slotEnter();
    void slotPrio();
    void slotMore();
    void slotCancel();
private:
    void reinit();
    int m_state;
    QLabel* m_lbl;
    QLineEdit* m_edit;
    QLabel* m_enter;
    QLabel* m_more;
    QPopupMenu* m_menu;
    OPimTodo m_todo;
    bool m_visible;

    QPixmap priority1;
    QPixmap priority3;
    QPixmap priority5;
};

#endif