From 93d14e979852f31d19fac49ebb88cab4e5d1b6c2 Mon Sep 17 00:00:00 2001 From: dismine Date: Fri, 21 Feb 2014 14:25:27 +0200 Subject: [PATCH] Dialog Standard Measurements. --HG-- branch : feature --- src/dialogs/dialogs.pri | 9 +- src/dialogs/dialogstandardmeasurements.cpp | 42 ++++++++ src/dialogs/dialogstandardmeasurements.h | 50 ++++++++++ src/dialogs/dialogstandardmeasurements.ui | 107 +++++++++++++++++++++ 4 files changed, 205 insertions(+), 3 deletions(-) create mode 100644 src/dialogs/dialogstandardmeasurements.cpp create mode 100644 src/dialogs/dialogstandardmeasurements.h create mode 100644 src/dialogs/dialogstandardmeasurements.ui diff --git a/src/dialogs/dialogs.pri b/src/dialogs/dialogs.pri index 58829f139..36ad18cd7 100644 --- a/src/dialogs/dialogs.pri +++ b/src/dialogs/dialogs.pri @@ -26,7 +26,8 @@ HEADERS += \ src/dialogs/configdialog.h \ src/dialogs/pages.h \ src/dialogs/dialogpatternproperties.h \ - src/dialogs/dialogmeasurements.h + src/dialogs/dialogmeasurements.h \ + src/dialogs/dialogstandardmeasurements.h SOURCES += \ src/dialogs/dialogtriangle.cpp \ @@ -55,7 +56,8 @@ SOURCES += \ src/dialogs/configdialog.cpp \ src/dialogs/pages.cpp \ src/dialogs/dialogpatternproperties.cpp \ - src/dialogs/dialogmeasurements.cpp + src/dialogs/dialogmeasurements.cpp \ + src/dialogs/dialogstandardmeasurements.cpp FORMS += \ src/dialogs/dialogtriangle.ui \ @@ -81,4 +83,5 @@ FORMS += \ src/dialogs/dialoguniondetails.ui \ src/dialogs/dialogcutarc.ui \ src/dialogs/dialogpatternproperties.ui \ - src/dialogs/dialogmeasurements.ui + src/dialogs/dialogmeasurements.ui \ + src/dialogs/dialogstandardmeasurements.ui diff --git a/src/dialogs/dialogstandardmeasurements.cpp b/src/dialogs/dialogstandardmeasurements.cpp new file mode 100644 index 000000000..c5d7c5091 --- /dev/null +++ b/src/dialogs/dialogstandardmeasurements.cpp @@ -0,0 +1,42 @@ +/************************************************************************ + ** + ** @file dialogstandardmeasurements.cpp + ** @author Roman Telezhinsky + ** @date 21 2, 2014 + ** + ** @brief + ** @copyright + ** This source code is part of the Valentine project, a pattern making + ** program, whose allow create and modeling patterns of clothing. + ** Copyright (C) 2013 Valentina project + ** All Rights Reserved. + ** + ** Valentina is free software: you can redistribute it and/or modify + ** it under the terms of the GNU General Public License as published by + ** the Free Software Foundation, either version 3 of the License, or + ** (at your option) any later version. + ** + ** Valentina is distributed in the hope that it will be useful, + ** but WITHOUT ANY WARRANTY; without even the implied warranty of + ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ** GNU General Public License for more details. + ** + ** You should have received a copy of the GNU General Public License + ** along with Valentina. If not, see . + ** + *************************************************************************/ + +#include "dialogstandardmeasurements.h" +#include "ui_dialogstandardmeasurements.h" + +DialogStandardMeasurements::DialogStandardMeasurements(QWidget *parent) : + QDialog(parent), + ui(new Ui::DialogStandardMeasurements) +{ + ui->setupUi(this); +} + +DialogStandardMeasurements::~DialogStandardMeasurements() +{ + delete ui; +} diff --git a/src/dialogs/dialogstandardmeasurements.h b/src/dialogs/dialogstandardmeasurements.h new file mode 100644 index 000000000..deb50e5b4 --- /dev/null +++ b/src/dialogs/dialogstandardmeasurements.h @@ -0,0 +1,50 @@ +/************************************************************************ + ** + ** @file dialogstandardmeasurements.h + ** @author Roman Telezhinsky + ** @date 21 2, 2014 + ** + ** @brief + ** @copyright + ** This source code is part of the Valentine project, a pattern making + ** program, whose allow create and modeling patterns of clothing. + ** Copyright (C) 2013 Valentina project + ** All Rights Reserved. + ** + ** Valentina is free software: you can redistribute it and/or modify + ** it under the terms of the GNU General Public License as published by + ** the Free Software Foundation, either version 3 of the License, or + ** (at your option) any later version. + ** + ** Valentina is distributed in the hope that it will be useful, + ** but WITHOUT ANY WARRANTY; without even the implied warranty of + ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ** GNU General Public License for more details. + ** + ** You should have received a copy of the GNU General Public License + ** along with Valentina. If not, see . + ** + *************************************************************************/ + +#ifndef DIALOGSTANDARDMEASUREMENTS_H +#define DIALOGSTANDARDMEASUREMENTS_H + +#include + +namespace Ui { +class DialogStandardMeasurements; +} + +class DialogStandardMeasurements : public QDialog +{ + Q_OBJECT + +public: + explicit DialogStandardMeasurements(QWidget *parent = 0); + ~DialogStandardMeasurements(); + +private: + Ui::DialogStandardMeasurements *ui; +}; + +#endif // DIALOGSTANDARDMEASUREMENTS_H diff --git a/src/dialogs/dialogstandardmeasurements.ui b/src/dialogs/dialogstandardmeasurements.ui new file mode 100644 index 000000000..e424e6311 --- /dev/null +++ b/src/dialogs/dialogstandardmeasurements.ui @@ -0,0 +1,107 @@ + + + DialogStandardMeasurements + + + + 0 + 0 + 439 + 247 + + + + Standard table + + + + + + + + + 0 + 0 + + + + Pattern peace name + + + 0 + + + + + + + + + + + + + + + 0 + 0 + + + + Standard measurements table + + + + + + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + + + + + + + buttonBox + accepted() + DialogStandardMeasurements + accept() + + + 248 + 254 + + + 157 + 274 + + + + + buttonBox + rejected() + DialogStandardMeasurements + reject() + + + 316 + 260 + + + 286 + 274 + + + + +