Dialog Standard Measurements.

--HG--
branch : feature
This commit is contained in:
dismine 2014-02-21 14:25:27 +02:00
parent 49a45e9d57
commit 93d14e9798
4 changed files with 205 additions and 3 deletions

View File

@ -26,7 +26,8 @@ HEADERS += \
src/dialogs/configdialog.h \ src/dialogs/configdialog.h \
src/dialogs/pages.h \ src/dialogs/pages.h \
src/dialogs/dialogpatternproperties.h \ src/dialogs/dialogpatternproperties.h \
src/dialogs/dialogmeasurements.h src/dialogs/dialogmeasurements.h \
src/dialogs/dialogstandardmeasurements.h
SOURCES += \ SOURCES += \
src/dialogs/dialogtriangle.cpp \ src/dialogs/dialogtriangle.cpp \
@ -55,7 +56,8 @@ SOURCES += \
src/dialogs/configdialog.cpp \ src/dialogs/configdialog.cpp \
src/dialogs/pages.cpp \ src/dialogs/pages.cpp \
src/dialogs/dialogpatternproperties.cpp \ src/dialogs/dialogpatternproperties.cpp \
src/dialogs/dialogmeasurements.cpp src/dialogs/dialogmeasurements.cpp \
src/dialogs/dialogstandardmeasurements.cpp
FORMS += \ FORMS += \
src/dialogs/dialogtriangle.ui \ src/dialogs/dialogtriangle.ui \
@ -81,4 +83,5 @@ FORMS += \
src/dialogs/dialoguniondetails.ui \ src/dialogs/dialoguniondetails.ui \
src/dialogs/dialogcutarc.ui \ src/dialogs/dialogcutarc.ui \
src/dialogs/dialogpatternproperties.ui \ src/dialogs/dialogpatternproperties.ui \
src/dialogs/dialogmeasurements.ui src/dialogs/dialogmeasurements.ui \
src/dialogs/dialogstandardmeasurements.ui

View File

@ -0,0 +1,42 @@
/************************************************************************
**
** @file dialogstandardmeasurements.cpp
** @author Roman Telezhinsky <dismine@gmail.com>
** @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
** <https://bitbucket.org/dismine/valentina> 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 <http://www.gnu.org/licenses/>.
**
*************************************************************************/
#include "dialogstandardmeasurements.h"
#include "ui_dialogstandardmeasurements.h"
DialogStandardMeasurements::DialogStandardMeasurements(QWidget *parent) :
QDialog(parent),
ui(new Ui::DialogStandardMeasurements)
{
ui->setupUi(this);
}
DialogStandardMeasurements::~DialogStandardMeasurements()
{
delete ui;
}

View File

@ -0,0 +1,50 @@
/************************************************************************
**
** @file dialogstandardmeasurements.h
** @author Roman Telezhinsky <dismine@gmail.com>
** @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
** <https://bitbucket.org/dismine/valentina> 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 <http://www.gnu.org/licenses/>.
**
*************************************************************************/
#ifndef DIALOGSTANDARDMEASUREMENTS_H
#define DIALOGSTANDARDMEASUREMENTS_H
#include <QDialog>
namespace Ui {
class DialogStandardMeasurements;
}
class DialogStandardMeasurements : public QDialog
{
Q_OBJECT
public:
explicit DialogStandardMeasurements(QWidget *parent = 0);
~DialogStandardMeasurements();
private:
Ui::DialogStandardMeasurements *ui;
};
#endif // DIALOGSTANDARDMEASUREMENTS_H

View File

@ -0,0 +1,107 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>DialogStandardMeasurements</class>
<widget class="QDialog" name="DialogStandardMeasurements">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>439</width>
<height>247</height>
</rect>
</property>
<property name="windowTitle">
<string>Standard table</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="label">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Pattern peace name</string>
</property>
<property name="margin">
<number>0</number>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEdit"/>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QLabel" name="label_2">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Standard measurements table</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboBox"/>
</item>
</layout>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>DialogStandardMeasurements</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>DialogStandardMeasurements</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel">
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>