Subversion Repositories Scribus

Rev

Rev 1195 | Rev 1828 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

#ifndef TABGUIDES_H
#define TABGUIDES_H

#include <qvariant.h>
#include <qwidget.h>
class QGridLayout;
class QVBoxLayout;
class QHBoxLayout;
class QGroupBox;
class QButtonGroup;
class QRadioButton;
class QLabel;
class MSpinBox;
class QSpinBox;
class QPushButton;
class QCheckBox;
class QColor;

class TabGuides : public QWidget
{
        Q_OBJECT

public:
        TabGuides( QWidget* parent, struct guidesPrefs *prefsData, struct typoPrefs *prefsData2, int unitIndex);
        ~TabGuides() {};

        MSpinBox* majorSpace;
        MSpinBox* minorSpace;
        MSpinBox* snapDistance;
        QCheckBox* checkMargin;
        QCheckBox* checkGuides;
        QCheckBox* checkBaseline;
        QColor colorGuides;
        QColor colorMargin;
        QColor colorMajorGrid;
        QColor colorMinorGrid;
        QColor colorBaselineGrid;
        QGroupBox* checkGrid;
        QGroupBox* groupBox1;
        QGroupBox* groupBox2;
        QGroupBox* commonBox;
        QGroupBox* snapBox;
        QGroupBox* guideBox;
        QGroupBox* marginBox;
        QGroupBox* baselineBox;
        QButtonGroup* buttonGroup1;
        QRadioButton* inBackground;
        QRadioButton* inForeground;
        QLabel* textLabel4;
        QLabel* textLabel5;
        QLabel* textLabel6;
        QLabel* textLabel7;
        QLabel* textLabel8;
        QLabel* textLabel82;
        QPushButton* majorGridColor;
        QPushButton* minorGridColor;
        QPushButton* baselineColor;
        QPushButton* guideColor;
        QPushButton* marginColor;
        QSpinBox* grabDistance;
        QLabel* textLabel6a;
        QSpinBox* autoLine;
        QLabel* textLabel7a;
        MSpinBox* baseGrid;
        MSpinBox* baseOffset;
        QLabel* textLabel8a;

protected slots:
        virtual void changeMajorColor();
        virtual void changeMinorColor();
        virtual void changeBaselineColor();
        virtual void changeGuideColor();
        virtual void changeMarginColor();

protected:
        QVBoxLayout* tabGuidesLayout;
        QGridLayout* checkGridLayout;
        QGridLayout* groupBox1Layout;
        QGridLayout* groupBox2Layout;
        QHBoxLayout* commonBoxLayout;
        QGridLayout* snapBoxLayout;
        QHBoxLayout* guideBoxLayout;
        QHBoxLayout* marginBoxLayout;
        QGridLayout* baselineBoxLayout;
        QVBoxLayout* buttonGroup1Layout;
        QHBoxLayout* layout9;
       
        double unitRatio;
        QString unit;
        int precision;
};
#endif