12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- #ifndef BIRD_H
- #define BIRD_H
-
- #include <QWidget>
- #include <QPainter>
-
-
-
-
-
-
-
-
-
-
- class Bird : public QWidget
- {
- Q_OBJECT
- public:
-
-
-
- enum EyeBrowType {
- UNI,
- ANGRY,
- UPSET,
- BUSHY
- };
-
- explicit Bird(QWidget *parent = 0);
- Bird(int , EyeBrowType , QString , QString, QWidget *parent = 0) ;
- QString getEyeColor() ;
- QString getFaceColor() ;
- void setEyeColor(QString) ;
- void setFaceColor(QString) ;
- int getSize() ;
- EyeBrowType getEyebrow() ;
- void setSize(int) ;
- void setEyebrow(EyeBrowType) ;
- Qt::GlobalColor getColor(QString) ;
-
- Bird & operator=(Bird &b);
- signals:
-
- public slots:
-
- protected:
- void paintEvent(QPaintEvent *event);
-
- private:
- int size ;
- EyeBrowType eyeBrow ;
- QString color ;
- QString eColor ;
- int randInt(int min, int max) ;
- };
-
- #endif
|