CenGen - Генератор ценников  1.1
addlinemaster.h
00001 #ifndef ADDLINEMASTER_H
00002 #define ADDLINEMASTER_H
00003 
00004 #include <QDialog>
00005 #include <QPushButton>
00006 #include <QSpinBox>
00007 #include <QGraphicsView>
00008 
00009 QT_BEGIN_NAMESPACE
00010 class QPushButton;
00011 class QGraphicsView;
00012 class QSpinBox;
00013 QT_END_NAMESPACE
00014 
00015 namespace Ui {
00016     class AddLineMaster;
00017 }
00018 
00019 class AddLineMaster : public QDialog
00020 {
00021     Q_OBJECT
00022 
00023 public:
00024     explicit AddLineMaster(QWidget *parent = 0);
00025     ~AddLineMaster();
00026 
00027     void update_preview();
00028     void set_line_number(int number);
00029     void set_values(float startX, float startY, float width, float heith, float thick);
00030 
00031 private:
00032     Ui::AddLineMaster *ui;
00033     QPushButton *buttonOK, *buttonCancel;
00034     QSpinBox *ui_startXspin, *ui_startYspin, *ui_widthSpin, *ui_heithSpin, *ui_thickSpin;
00035     QGraphicsView *ui_grView;
00036     int line_number;
00037 
00038 signals:
00039     void values_changed(QString type, float startX, float startY, float width, float heith, float thick);
00040 
00041 private slots:
00042     void on_values_changed();
00043 
00044 
00045 
00046 
00047 
00048 };
00049 
00050 #endif // ADDLINEMASTER_H
 Указатель Классы Функции