Back to index

scribus-ng  1.3.4.dfsg+svn20071115
measurements.h
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 #ifndef MEASUREMENTS_H
00008 #define MEASUREMENTS_H
00009 
00010 #include "scribusapi.h"
00011 #include "scrpalettebase.h"
00012 
00013 class QVBoxLayout;
00014 class QHBoxLayout;
00015 class QGridLayout;
00016 class QLabel;
00017 class QVariant;
00018 
00019 class SCRIBUS_API Measurements : public ScrPaletteBase
00020 {
00021        Q_OBJECT
00022 
00023 public:
00024        Measurements( QWidget* parent );
00025        ~Measurements() {};
00026        //void closeEvent(QCloseEvent *ce);
00027 
00028 signals:
00029        //void Schliessen(bool);
00030 
00031 public slots:
00032        void setValues(double x1, double y1, double x2, double y2, double angle, double length, int unitIndex);
00033        void languageChange();
00034 
00035 protected:
00036        QGridLayout* measurementsLayout;
00037        QLabel* x1Label;
00038        QLabel* y1Label;
00039        QLabel* x2Label;
00040        QLabel* y2Label;
00041        QLabel* dxLabel;
00042        QLabel* dyLabel;
00043        QLabel* angleLabel;
00044        QLabel* lengthLabel;
00045        QLabel* x1Data;
00046        QLabel* y1Data;
00047        QLabel* x2Data;
00048        QLabel* y2Data;
00049        QLabel* dXData;
00050        QLabel* dYData;
00051        QLabel* lengthData;
00052        QLabel* angleData;
00053 };
00054 
00055 #endif // MEASUREMENTS_H