Home · All Classes · Main Classes · Annotated · Grouped Classes · Functions

window.h Example File
painting/painterpaths/window.h

    #ifndef WINDOW_H
    #define WINDOW_H

    #include <QWidget>

    class QComboBox;
    class QLabel;
    class QSpinBox;
    class RenderArea;

    class Window : public QWidget
    {
        Q_OBJECT

    public:
        Window();

    private slots:
        void fillRuleChanged();
        void fillGradientChanged();
        void penColorChanged();

    private:
        void addItem(QComboBox *comboBox, const QString &text, int id);
        void addColor(QComboBox *comboBox, const QString &text,
                      const QColor &color);
        void populateWithColors(QComboBox *comboBox);

        enum { NumRenderAreas = 9 };

        RenderArea *renderAreas[NumRenderAreas];
        QLabel *fillRuleLabel;
        QLabel *fillGradientLabel;
        QLabel *fillToLabel;
        QLabel *penWidthLabel;
        QLabel *penColorLabel;
        QLabel *rotationAngleLabel;
        QComboBox *fillRuleComboBox;
        QComboBox *fillColor1ComboBox;
        QComboBox *fillColor2ComboBox;
        QSpinBox *penWidthSpinBox;
        QComboBox *penColorComboBox;
        QSpinBox *rotationAngleSpinBox;
    };

    #endif


Copyright © 2005 Trolltech Trademarks
Qt 4.0.0-b2