Skip to content
Snippets Groups Projects
paint.h 901 B
Newer Older
  • Learn to ignore specific revisions
  • Pelotrio's avatar
    Pelotrio committed
    #ifndef PAINT_H
    #define PAINT_H
    
    #include <QWidget>
    #include <QGroupBox>
    
    
    class QPushButton;
    
    class QComboBox;
    
    class QLabel;
    
    class QCheckBox;
    
    class Canvas;
    
    class Scene;
    
    
    class Paint : public QWidget {
    Q_OBJECT
    
    public:
        Paint(QWidget *parent = 0);
    
        ~Paint();
    
    private slots:
    
        void clearBtnPressed();
    
        void deleteBtnPressed();
    
        void colorBtnPressed();
    
        void primModeChanged();
    
        void trafoModeChanged();
    
        void showOutlineOnly(bool);
    
        void scene1Pressed();
    
        void scene2Pressed();
    
    private:
        Canvas *viewport;
    
        QPushButton *btnClearCanvas;
        QPushButton *btnScene1;
        QPushButton *btnScene2;
        QPushButton *btnScene3;
        QComboBox *cobPrimModes;
        QComboBox *cobTrafoModes;
        QLabel *lblPrimModes;
        QPushButton *btnDeleteObj;
        QPushButton *btnChangeCol;
        QCheckBox *cbOutline;
    
        void changeScene(int index);
    };
    
    #endif // PAINT_H