~mutse-young/chinese-calendar/trunk

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
#ifndef CNOTE_H
#define CNOTE_H

#include <QWidget>
#include <QtGui>

class Cnote : public QWidget
{
    Q_OBJECT
public:
    explicit Cnote(QWidget *parent = 0);
    ~Cnote();
    QPixmap pix;
    void paintEvent(QPaintEvent *);
    QPoint dragPos;
    QTextEdit *textedit;
    QLabel *datelabel;
protected:
    void  mouseMoveEvent(QMouseEvent *event);
    void  mousePressEvent(QMouseEvent *event);
    void  mouseReleaseEvent(QMouseEvent *event);
private:
//    QTextEdit *textedit;
    QPushButton *ok;
    QPushButton *cancel;
    QPushButton *clearplan;
public slots:
    void savenote();
    void cancelnote();
    void clean();

signals:
    void save(QString);


    
};

#endif // CNOTE_H