2018-03-04 09:19:32 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2018-03-04 08:05:20 +00:00
|
|
|
<ui version="4.0">
|
|
|
|
<class>NewRecipeDialog</class>
|
|
|
|
<widget class="QDialog" name="NewRecipeDialog">
|
2018-03-04 09:19:32 +00:00
|
|
|
<property name="enabled">
|
|
|
|
<bool>true</bool>
|
|
|
|
</property>
|
2018-03-04 08:05:20 +00:00
|
|
|
<property name="geometry">
|
|
|
|
<rect>
|
|
|
|
<x>0</x>
|
|
|
|
<y>0</y>
|
|
|
|
<width>640</width>
|
2018-03-10 07:51:17 +00:00
|
|
|
<height>689</height>
|
2018-03-04 08:05:20 +00:00
|
|
|
</rect>
|
|
|
|
</property>
|
2018-03-04 09:19:32 +00:00
|
|
|
<property name="sizePolicy">
|
|
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
|
|
|
<horstretch>0</horstretch>
|
|
|
|
<verstretch>0</verstretch>
|
|
|
|
</sizepolicy>
|
|
|
|
</property>
|
2018-03-04 08:05:20 +00:00
|
|
|
<property name="windowTitle">
|
2018-03-04 09:19:32 +00:00
|
|
|
<string>New Recipe</string>
|
|
|
|
</property>
|
2018-03-10 13:06:24 +00:00
|
|
|
<property name="windowIcon">
|
2018-03-31 20:15:01 +00:00
|
|
|
<iconset resource="../res.qrc">
|
2018-03-10 13:06:24 +00:00
|
|
|
<normaloff>:/images/images/icon.png</normaloff>:/images/images/icon.png</iconset>
|
|
|
|
</property>
|
2018-03-11 08:33:48 +00:00
|
|
|
<property name="styleSheet">
|
2018-03-31 20:45:19 +00:00
|
|
|
<string notr="true"/>
|
2018-03-11 08:33:48 +00:00
|
|
|
</property>
|
2018-03-10 13:06:24 +00:00
|
|
|
<property name="modal">
|
|
|
|
<bool>true</bool>
|
|
|
|
</property>
|
2018-03-04 09:19:32 +00:00
|
|
|
<layout class="QVBoxLayout" name="verticalLayout">
|
2018-03-10 11:36:14 +00:00
|
|
|
<property name="spacing">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="leftMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="topMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="rightMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="bottomMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
2018-03-04 09:19:32 +00:00
|
|
|
<item alignment="Qt::AlignTop">
|
2018-03-10 07:51:17 +00:00
|
|
|
<widget class="QWidget" name="mainContentPanel" native="true">
|
2018-03-04 09:19:32 +00:00
|
|
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
2018-03-10 11:36:14 +00:00
|
|
|
<property name="spacing">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="leftMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="topMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="rightMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="bottomMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
2018-03-04 09:19:32 +00:00
|
|
|
<item>
|
2018-03-10 11:36:14 +00:00
|
|
|
<widget class="QWidget" name="tagsAndBasicPanel" native="true">
|
|
|
|
<layout class="QHBoxLayout" name="horizontalLayout_6">
|
|
|
|
<property name="spacing">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="leftMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="topMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="rightMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="bottomMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
2018-03-10 07:51:17 +00:00
|
|
|
<item>
|
2018-03-10 11:36:14 +00:00
|
|
|
<widget class="QWidget" name="basicRecipePanel" native="true">
|
|
|
|
<property name="layoutDirection">
|
|
|
|
<enum>Qt::LeftToRight</enum>
|
2018-03-10 07:51:17 +00:00
|
|
|
</property>
|
2018-03-10 11:36:14 +00:00
|
|
|
<property name="styleSheet">
|
|
|
|
<string notr="true">background-color: rgb(234, 235, 255);</string>
|
2018-03-10 07:51:17 +00:00
|
|
|
</property>
|
2018-03-10 11:36:14 +00:00
|
|
|
<layout class="QVBoxLayout" name="verticalLayout_10">
|
2018-03-04 09:19:32 +00:00
|
|
|
<item>
|
2018-03-10 11:36:14 +00:00
|
|
|
<widget class="QWidget" name="recipeNamePanel" native="true">
|
|
|
|
<layout class="QVBoxLayout" name="verticalLayout_9">
|
2018-03-31 13:02:35 +00:00
|
|
|
<property name="spacing">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
2018-03-10 11:36:14 +00:00
|
|
|
<item>
|
|
|
|
<widget class="QLineEdit" name="recipeNameEdit">
|
|
|
|
<property name="font">
|
|
|
|
<font>
|
2018-03-31 20:45:19 +00:00
|
|
|
<pointsize>14</pointsize>
|
|
|
|
<weight>50</weight>
|
2018-03-11 08:33:48 +00:00
|
|
|
<italic>false</italic>
|
|
|
|
<bold>false</bold>
|
2018-03-10 11:36:14 +00:00
|
|
|
</font>
|
|
|
|
</property>
|
2018-03-31 13:02:35 +00:00
|
|
|
<property name="styleSheet">
|
|
|
|
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
|
|
|
</property>
|
|
|
|
<property name="frame">
|
|
|
|
<bool>false</bool>
|
|
|
|
</property>
|
2018-03-10 11:36:14 +00:00
|
|
|
<property name="alignment">
|
|
|
|
<set>Qt::AlignCenter</set>
|
|
|
|
</property>
|
|
|
|
<property name="placeholderText">
|
|
|
|
<string>Recipe Name</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2018-03-31 13:02:35 +00:00
|
|
|
<item>
|
|
|
|
<widget class="QLineEdit" name="authorNameEdit">
|
|
|
|
<property name="font">
|
|
|
|
<font>
|
2018-03-31 20:45:19 +00:00
|
|
|
<pointsize>12</pointsize>
|
|
|
|
<weight>50</weight>
|
2018-03-31 13:02:35 +00:00
|
|
|
<italic>false</italic>
|
|
|
|
<bold>false</bold>
|
|
|
|
</font>
|
|
|
|
</property>
|
|
|
|
<property name="styleSheet">
|
|
|
|
<string notr="true">background-color: rgb(245, 245, 255);</string>
|
|
|
|
</property>
|
|
|
|
<property name="frame">
|
|
|
|
<bool>false</bool>
|
|
|
|
</property>
|
|
|
|
<property name="alignment">
|
|
|
|
<set>Qt::AlignCenter</set>
|
|
|
|
</property>
|
|
|
|
<property name="placeholderText">
|
|
|
|
<string>Author</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2018-03-10 11:36:14 +00:00
|
|
|
</layout>
|
2018-03-04 09:19:32 +00:00
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
2018-03-10 11:36:14 +00:00
|
|
|
<widget class="QWidget" name="basicInfoPanel" native="true">
|
|
|
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
|
|
|
<item alignment="Qt::AlignTop">
|
|
|
|
<widget class="QWidget" name="prepTimePanel" native="true">
|
|
|
|
<layout class="QVBoxLayout" name="verticalLayout_3">
|
|
|
|
<item>
|
|
|
|
<widget class="QLabel" name="label">
|
|
|
|
<property name="text">
|
|
|
|
<string>Prep Time</string>
|
|
|
|
</property>
|
|
|
|
<property name="alignment">
|
|
|
|
<set>Qt::AlignCenter</set>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<widget class="QTimeEdit" name="prepTimeEdit">
|
|
|
|
<property name="dateTime">
|
|
|
|
<datetime>
|
|
|
|
<hour>0</hour>
|
|
|
|
<minute>0</minute>
|
|
|
|
<second>0</second>
|
|
|
|
<year>1999</year>
|
|
|
|
<month>12</month>
|
2018-05-22 19:02:08 +00:00
|
|
|
<day>20</day>
|
2018-03-10 11:36:14 +00:00
|
|
|
</datetime>
|
|
|
|
</property>
|
|
|
|
<property name="currentSection">
|
|
|
|
<enum>QDateTimeEdit::HourSection</enum>
|
|
|
|
</property>
|
|
|
|
<property name="displayFormat">
|
|
|
|
<string>hh:mm:ss</string>
|
|
|
|
</property>
|
|
|
|
<property name="timeSpec">
|
|
|
|
<enum>Qt::UTC</enum>
|
|
|
|
</property>
|
|
|
|
<property name="time">
|
|
|
|
<time>
|
|
|
|
<hour>0</hour>
|
|
|
|
<minute>0</minute>
|
|
|
|
<second>0</second>
|
|
|
|
</time>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
</layout>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item alignment="Qt::AlignTop">
|
|
|
|
<widget class="QWidget" name="cookTimePanel" native="true">
|
|
|
|
<layout class="QVBoxLayout" name="verticalLayout_4">
|
|
|
|
<item>
|
|
|
|
<widget class="QLabel" name="label_2">
|
|
|
|
<property name="text">
|
|
|
|
<string>Cook Time</string>
|
|
|
|
</property>
|
|
|
|
<property name="alignment">
|
|
|
|
<set>Qt::AlignCenter</set>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<widget class="QTimeEdit" name="cookTimeEdit">
|
|
|
|
<property name="currentSection">
|
|
|
|
<enum>QDateTimeEdit::HourSection</enum>
|
|
|
|
</property>
|
|
|
|
<property name="displayFormat">
|
|
|
|
<string>hh:mm:ss</string>
|
|
|
|
</property>
|
|
|
|
<property name="timeSpec">
|
|
|
|
<enum>Qt::UTC</enum>
|
|
|
|
</property>
|
|
|
|
<property name="time">
|
|
|
|
<time>
|
|
|
|
<hour>0</hour>
|
|
|
|
<minute>0</minute>
|
|
|
|
<second>0</second>
|
|
|
|
</time>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
</layout>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item alignment="Qt::AlignTop">
|
|
|
|
<widget class="QWidget" name="servingsWidget" native="true">
|
|
|
|
<layout class="QVBoxLayout" name="verticalLayout_5">
|
|
|
|
<item>
|
|
|
|
<widget class="QLabel" name="label_3">
|
|
|
|
<property name="text">
|
|
|
|
<string>Servings</string>
|
|
|
|
</property>
|
|
|
|
<property name="alignment">
|
|
|
|
<set>Qt::AlignCenter</set>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<widget class="QDoubleSpinBox" name="servingsSpinBox">
|
|
|
|
<property name="decimals">
|
|
|
|
<number>1</number>
|
|
|
|
</property>
|
|
|
|
<property name="value">
|
|
|
|
<double>1.000000000000000</double>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
</layout>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
</layout>
|
2018-03-04 09:19:32 +00:00
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
</layout>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2018-03-10 11:36:14 +00:00
|
|
|
<item>
|
|
|
|
<widget class="QWidget" name="tagsPanel" native="true">
|
|
|
|
<property name="styleSheet">
|
|
|
|
<string notr="true">background-color: rgb(222, 226, 255);</string>
|
|
|
|
</property>
|
|
|
|
<layout class="QVBoxLayout" name="verticalLayout_11">
|
|
|
|
<item alignment="Qt::AlignTop">
|
|
|
|
<widget class="QLabel" name="tagsPanelLabel">
|
2018-03-04 09:19:32 +00:00
|
|
|
<property name="text">
|
2018-03-10 11:36:14 +00:00
|
|
|
<string>Tags</string>
|
2018-03-04 09:19:32 +00:00
|
|
|
</property>
|
|
|
|
<property name="alignment">
|
|
|
|
<set>Qt::AlignCenter</set>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2018-03-10 11:36:14 +00:00
|
|
|
<item alignment="Qt::AlignTop">
|
|
|
|
<widget class="QWidget" name="newTagBoxPanel" native="true">
|
|
|
|
<layout class="QHBoxLayout" name="horizontalLayout_7">
|
2018-03-31 13:02:35 +00:00
|
|
|
<property name="spacing">
|
|
|
|
<number>2</number>
|
|
|
|
</property>
|
2018-03-10 11:36:14 +00:00
|
|
|
<property name="leftMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="topMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="rightMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="bottomMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<item>
|
2018-03-10 13:56:43 +00:00
|
|
|
<widget class="QComboBox" name="tagsComboBox">
|
|
|
|
<property name="sizePolicy">
|
|
|
|
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
|
|
|
<horstretch>0</horstretch>
|
|
|
|
<verstretch>0</verstretch>
|
|
|
|
</sizepolicy>
|
|
|
|
</property>
|
2018-03-30 12:33:48 +00:00
|
|
|
<property name="styleSheet">
|
|
|
|
<string notr="true">background-color: rgb(113, 119, 255);</string>
|
|
|
|
</property>
|
|
|
|
<property name="insertPolicy">
|
|
|
|
<enum>QComboBox::InsertAlphabetically</enum>
|
|
|
|
</property>
|
2018-03-10 13:56:43 +00:00
|
|
|
</widget>
|
2018-03-10 11:36:14 +00:00
|
|
|
</item>
|
2018-03-10 13:56:43 +00:00
|
|
|
<item alignment="Qt::AlignRight">
|
2018-03-10 11:36:14 +00:00
|
|
|
<widget class="QPushButton" name="newTagButton">
|
2018-03-10 13:56:43 +00:00
|
|
|
<property name="toolTip">
|
|
|
|
<string>Create a new tag</string>
|
|
|
|
</property>
|
2018-03-31 13:02:35 +00:00
|
|
|
<property name="styleSheet">
|
|
|
|
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
|
|
|
</property>
|
2018-03-10 13:56:43 +00:00
|
|
|
<property name="icon">
|
2018-03-31 20:15:01 +00:00
|
|
|
<iconset resource="../res.qrc">
|
2018-03-10 13:56:43 +00:00
|
|
|
<normaloff>:/images/images/plus_icon.png</normaloff>:/images/images/plus_icon.png</iconset>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item alignment="Qt::AlignRight">
|
|
|
|
<widget class="QPushButton" name="removeTagButton">
|
|
|
|
<property name="toolTip">
|
|
|
|
<string>Permanently delete this tag</string>
|
|
|
|
</property>
|
2018-03-31 13:02:35 +00:00
|
|
|
<property name="styleSheet">
|
|
|
|
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
|
|
|
</property>
|
2018-03-10 13:56:43 +00:00
|
|
|
<property name="icon">
|
2018-03-31 20:15:01 +00:00
|
|
|
<iconset resource="../res.qrc">
|
2018-03-10 13:56:43 +00:00
|
|
|
<normaloff>:/images/images/minus_icon.png</normaloff>:/images/images/minus_icon.png</iconset>
|
2018-03-10 11:36:14 +00:00
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
</layout>
|
2018-03-04 09:19:32 +00:00
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
2018-03-10 11:36:14 +00:00
|
|
|
<widget class="QWidget" name="tagsListControlPanel" native="true">
|
|
|
|
<layout class="QHBoxLayout" name="horizontalLayout_8">
|
2018-03-31 13:02:35 +00:00
|
|
|
<property name="spacing">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
2018-03-10 11:36:14 +00:00
|
|
|
<property name="leftMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="topMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="rightMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="bottomMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<item>
|
|
|
|
<widget class="QPushButton" name="addTagButton">
|
2018-03-31 13:02:35 +00:00
|
|
|
<property name="minimumSize">
|
|
|
|
<size>
|
|
|
|
<width>0</width>
|
|
|
|
<height>20</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
|
|
|
<property name="toolTip">
|
|
|
|
<string>Add the above tag to the recipe</string>
|
|
|
|
</property>
|
|
|
|
<property name="styleSheet">
|
|
|
|
<string notr="true">QPushButton#addTagButton {
|
|
|
|
background-color: rgb(235, 235, 255);
|
|
|
|
border: 0px;
|
|
|
|
}
|
|
|
|
QPushButton#addTagButton:hover{
|
|
|
|
background-color: rgb(245, 245, 255);
|
|
|
|
}
|
|
|
|
QPushButton#addTagButton:pressed{
|
|
|
|
background-color: rgb(255, 255, 255);
|
|
|
|
}</string>
|
|
|
|
</property>
|
2018-03-10 11:36:14 +00:00
|
|
|
<property name="text">
|
|
|
|
<string>Add</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<widget class="QPushButton" name="deleteTagButton">
|
2018-03-31 13:02:35 +00:00
|
|
|
<property name="minimumSize">
|
|
|
|
<size>
|
|
|
|
<width>0</width>
|
|
|
|
<height>20</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
|
|
|
<property name="toolTip">
|
|
|
|
<string>Remove this tag from the recipe</string>
|
|
|
|
</property>
|
|
|
|
<property name="styleSheet">
|
|
|
|
<string notr="true">QPushButton#deleteTagButton {
|
|
|
|
background-color: rgb(225, 225, 255);
|
|
|
|
border: 0px;
|
|
|
|
}
|
|
|
|
QPushButton#deleteTagButton:hover{
|
|
|
|
background-color: rgb(235, 235, 255);
|
|
|
|
}
|
|
|
|
QPushButton#deleteTagButton:pressed{
|
|
|
|
background-color: rgb(245, 245, 255);
|
|
|
|
}</string>
|
|
|
|
</property>
|
2018-03-10 11:36:14 +00:00
|
|
|
<property name="text">
|
2018-03-31 13:02:35 +00:00
|
|
|
<string>Remove</string>
|
2018-03-10 11:36:14 +00:00
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
</layout>
|
2018-03-04 09:19:32 +00:00
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
2018-03-10 11:36:14 +00:00
|
|
|
<widget class="QListView" name="tagsListView">
|
|
|
|
<property name="autoFillBackground">
|
|
|
|
<bool>false</bool>
|
|
|
|
</property>
|
|
|
|
<property name="styleSheet">
|
|
|
|
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
2018-03-04 09:19:32 +00:00
|
|
|
</property>
|
2018-03-10 11:36:14 +00:00
|
|
|
<property name="frameShape">
|
|
|
|
<enum>QFrame::NoFrame</enum>
|
2018-03-04 09:19:32 +00:00
|
|
|
</property>
|
2018-03-10 13:06:24 +00:00
|
|
|
<property name="selectionMode">
|
|
|
|
<enum>QAbstractItemView::MultiSelection</enum>
|
|
|
|
</property>
|
2018-03-31 10:53:31 +00:00
|
|
|
<property name="verticalScrollMode">
|
|
|
|
<enum>QAbstractItemView::ScrollPerPixel</enum>
|
|
|
|
</property>
|
2018-03-04 09:19:32 +00:00
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
</layout>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
</layout>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item alignment="Qt::AlignTop">
|
2018-03-10 11:58:31 +00:00
|
|
|
<widget class="QWidget" name="ingredientsAndImagePanel" native="true">
|
|
|
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
2018-03-10 11:36:14 +00:00
|
|
|
<property name="spacing">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="leftMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="topMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="rightMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="bottomMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
2018-03-04 09:19:32 +00:00
|
|
|
<item>
|
2018-03-10 11:58:31 +00:00
|
|
|
<widget class="QWidget" name="ingredientsPanel" native="true">
|
|
|
|
<property name="sizePolicy">
|
|
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
|
|
|
<horstretch>0</horstretch>
|
|
|
|
<verstretch>0</verstretch>
|
|
|
|
</sizepolicy>
|
2018-03-04 09:19:32 +00:00
|
|
|
</property>
|
2018-03-10 11:58:31 +00:00
|
|
|
<property name="styleSheet">
|
|
|
|
<string notr="true">background-color: rgb(245, 245, 255);</string>
|
2018-03-04 09:19:32 +00:00
|
|
|
</property>
|
2018-03-10 11:58:31 +00:00
|
|
|
<layout class="QVBoxLayout" name="verticalLayout_6">
|
|
|
|
<property name="spacing">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="sizeConstraint">
|
|
|
|
<enum>QLayout::SetMaximumSize</enum>
|
|
|
|
</property>
|
|
|
|
<property name="leftMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="topMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="rightMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="bottomMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<item>
|
|
|
|
<widget class="QWidget" name="ingredientsSubPanel" native="true">
|
|
|
|
<layout class="QVBoxLayout" name="verticalLayout_12">
|
2018-03-04 09:19:32 +00:00
|
|
|
<item>
|
2018-03-10 11:58:31 +00:00
|
|
|
<widget class="QWidget" name="addIngredientPanel" native="true">
|
|
|
|
<layout class="QVBoxLayout" name="verticalLayout_7">
|
2018-03-04 09:19:32 +00:00
|
|
|
<property name="spacing">
|
2018-03-10 11:58:31 +00:00
|
|
|
<number>5</number>
|
2018-03-04 09:19:32 +00:00
|
|
|
</property>
|
|
|
|
<property name="leftMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="topMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="rightMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="bottomMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<item>
|
2018-03-10 11:58:31 +00:00
|
|
|
<widget class="QLabel" name="addIngredientLabel">
|
|
|
|
<property name="text">
|
2018-03-31 13:02:35 +00:00
|
|
|
<string>Ingredients</string>
|
2018-03-04 09:19:32 +00:00
|
|
|
</property>
|
2018-03-10 11:58:31 +00:00
|
|
|
<property name="alignment">
|
|
|
|
<set>Qt::AlignCenter</set>
|
2018-03-04 09:19:32 +00:00
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
2018-05-22 19:02:08 +00:00
|
|
|
<widget class="QLineEdit" name="ingredientLineEdit">
|
2018-03-10 11:58:31 +00:00
|
|
|
<property name="minimumSize">
|
|
|
|
<size>
|
|
|
|
<width>0</width>
|
|
|
|
<height>0</height>
|
|
|
|
</size>
|
2018-03-04 09:19:32 +00:00
|
|
|
</property>
|
2018-03-10 11:58:31 +00:00
|
|
|
<property name="frame">
|
|
|
|
<bool>false</bool>
|
2018-03-04 09:19:32 +00:00
|
|
|
</property>
|
2018-03-10 11:58:31 +00:00
|
|
|
<property name="alignment">
|
2018-05-22 19:02:08 +00:00
|
|
|
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
2018-03-10 11:58:31 +00:00
|
|
|
</property>
|
|
|
|
<property name="placeholderText">
|
2018-05-22 19:02:08 +00:00
|
|
|
<string>Write ingredient here...</string>
|
2018-03-10 11:58:31 +00:00
|
|
|
</property>
|
|
|
|
<property name="clearButtonEnabled">
|
|
|
|
<bool>false</bool>
|
2018-03-04 09:19:32 +00:00
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2018-03-10 07:51:17 +00:00
|
|
|
<item>
|
2018-03-10 11:58:31 +00:00
|
|
|
<widget class="QWidget" name="ingredientsListControlPanel" native="true">
|
|
|
|
<layout class="QHBoxLayout" name="horizontalLayout_9">
|
2018-03-31 13:02:35 +00:00
|
|
|
<property name="spacing">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
2018-03-10 11:58:31 +00:00
|
|
|
<property name="leftMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="topMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="rightMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="bottomMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<item>
|
|
|
|
<widget class="QPushButton" name="addIngredientButton">
|
2018-03-31 13:02:35 +00:00
|
|
|
<property name="minimumSize">
|
|
|
|
<size>
|
|
|
|
<width>0</width>
|
|
|
|
<height>30</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
|
|
|
<property name="toolTip">
|
|
|
|
<string>Add the above ingredient to the recipe</string>
|
|
|
|
</property>
|
|
|
|
<property name="styleSheet">
|
|
|
|
<string notr="true">QPushButton#addIngredientButton {
|
|
|
|
background-color: rgb(235, 235, 255);
|
|
|
|
border: 0px;
|
|
|
|
}
|
|
|
|
QPushButton#addIngredientButton:hover{
|
|
|
|
background-color: rgb(245, 245, 255);
|
|
|
|
}
|
|
|
|
QPushButton#addIngredientButton:pressed{
|
|
|
|
background-color: rgb(255, 255, 255);
|
|
|
|
}</string>
|
|
|
|
</property>
|
2018-03-10 11:58:31 +00:00
|
|
|
<property name="text">
|
|
|
|
<string>Add</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
2018-03-29 14:09:58 +00:00
|
|
|
<widget class="QPushButton" name="removeIngredientButton">
|
2018-03-31 13:02:35 +00:00
|
|
|
<property name="minimumSize">
|
|
|
|
<size>
|
|
|
|
<width>0</width>
|
|
|
|
<height>30</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
|
|
|
<property name="toolTip">
|
|
|
|
<string>Remove this ingredient from the recipe</string>
|
|
|
|
</property>
|
|
|
|
<property name="styleSheet">
|
|
|
|
<string notr="true">QPushButton#removeIngredientButton {
|
|
|
|
background-color: rgb(225, 225, 255);
|
|
|
|
border: 0px;
|
|
|
|
}
|
|
|
|
QPushButton#removeIngredientButton:hover{
|
|
|
|
background-color: rgb(235, 235, 255);
|
|
|
|
}
|
|
|
|
QPushButton#removeIngredientButton:pressed{
|
|
|
|
background-color: rgb(245, 245, 255);
|
|
|
|
}</string>
|
|
|
|
</property>
|
2018-03-10 11:58:31 +00:00
|
|
|
<property name="text">
|
2018-03-31 13:02:35 +00:00
|
|
|
<string>Remove</string>
|
2018-03-10 11:58:31 +00:00
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
</layout>
|
2018-03-10 09:42:22 +00:00
|
|
|
</widget>
|
|
|
|
</item>
|
2018-03-04 09:19:32 +00:00
|
|
|
</layout>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
2018-03-10 11:58:31 +00:00
|
|
|
<widget class="QListView" name="ingredientsListView">
|
|
|
|
<property name="styleSheet">
|
|
|
|
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
2018-03-04 09:19:32 +00:00
|
|
|
</property>
|
2018-03-10 11:58:31 +00:00
|
|
|
<property name="frameShape">
|
|
|
|
<enum>QFrame::NoFrame</enum>
|
2018-03-04 09:19:32 +00:00
|
|
|
</property>
|
2018-03-10 13:06:24 +00:00
|
|
|
<property name="selectionMode">
|
|
|
|
<enum>QAbstractItemView::MultiSelection</enum>
|
|
|
|
</property>
|
2018-03-31 10:53:31 +00:00
|
|
|
<property name="verticalScrollMode">
|
|
|
|
<enum>QAbstractItemView::ScrollPerPixel</enum>
|
|
|
|
</property>
|
2018-03-10 11:58:31 +00:00
|
|
|
<property name="batchSize">
|
|
|
|
<number>100</number>
|
2018-03-04 09:19:32 +00:00
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
</layout>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
</layout>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2018-03-10 13:06:24 +00:00
|
|
|
<item>
|
2018-03-10 11:58:31 +00:00
|
|
|
<widget class="QWidget" name="imagePanel" native="true">
|
2018-03-11 07:57:57 +00:00
|
|
|
<property name="styleSheet">
|
|
|
|
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
|
|
|
</property>
|
2018-03-10 11:58:31 +00:00
|
|
|
<layout class="QVBoxLayout" name="verticalLayout_13">
|
|
|
|
<property name="spacing">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="leftMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="topMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="rightMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="bottomMargin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<item>
|
2018-03-11 07:57:57 +00:00
|
|
|
<widget class="AspectRatioPixmapLabel" name="imageDisplayLabel">
|
|
|
|
<property name="sizePolicy">
|
|
|
|
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
|
|
|
|
<horstretch>0</horstretch>
|
|
|
|
<verstretch>0</verstretch>
|
|
|
|
</sizepolicy>
|
|
|
|
</property>
|
2018-03-10 12:22:04 +00:00
|
|
|
<property name="maximumSize">
|
|
|
|
<size>
|
|
|
|
<width>500</width>
|
|
|
|
<height>500</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
2018-03-10 11:58:31 +00:00
|
|
|
<property name="text">
|
|
|
|
<string/>
|
|
|
|
</property>
|
2018-03-10 12:22:04 +00:00
|
|
|
<property name="pixmap">
|
2018-03-31 20:15:01 +00:00
|
|
|
<pixmap resource="../res.qrc">:/images/images/no_image.png</pixmap>
|
2018-03-10 12:22:04 +00:00
|
|
|
</property>
|
2018-03-10 11:58:31 +00:00
|
|
|
<property name="scaledContents">
|
2018-03-11 07:57:57 +00:00
|
|
|
<bool>false</bool>
|
2018-03-10 11:58:31 +00:00
|
|
|
</property>
|
|
|
|
<property name="alignment">
|
|
|
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2018-03-10 12:22:04 +00:00
|
|
|
<item>
|
|
|
|
<widget class="QPushButton" name="selectImageButton">
|
|
|
|
<property name="text">
|
|
|
|
<string>Select Image...</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2018-03-10 11:58:31 +00:00
|
|
|
</layout>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2018-03-04 09:19:32 +00:00
|
|
|
</layout>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2018-03-10 07:51:17 +00:00
|
|
|
<item>
|
|
|
|
<widget class="QWidget" name="instructionsPanel" native="true">
|
2018-03-10 13:06:24 +00:00
|
|
|
<property name="styleSheet">
|
|
|
|
<string notr="true">background-color: rgb(250, 250, 255);</string>
|
|
|
|
</property>
|
2018-03-10 07:51:17 +00:00
|
|
|
<layout class="QVBoxLayout" name="verticalLayout_8">
|
2018-03-10 09:42:22 +00:00
|
|
|
<item alignment="Qt::AlignLeft|Qt::AlignTop">
|
|
|
|
<widget class="QWidget" name="textControlPanel" native="true">
|
|
|
|
<layout class="QHBoxLayout" name="horizontalLayout_5">
|
|
|
|
<item>
|
|
|
|
<widget class="QToolButton" name="italicsButton">
|
|
|
|
<property name="font">
|
|
|
|
<font>
|
2018-03-31 20:45:19 +00:00
|
|
|
<weight>50</weight>
|
2018-03-11 08:33:48 +00:00
|
|
|
<italic>false</italic>
|
|
|
|
<bold>false</bold>
|
2018-03-10 09:42:22 +00:00
|
|
|
</font>
|
|
|
|
</property>
|
|
|
|
<property name="text">
|
2018-03-31 10:53:31 +00:00
|
|
|
<string>Italic</string>
|
2018-03-10 09:42:22 +00:00
|
|
|
</property>
|
|
|
|
<property name="checkable">
|
|
|
|
<bool>true</bool>
|
|
|
|
</property>
|
|
|
|
<property name="toolButtonStyle">
|
|
|
|
<enum>Qt::ToolButtonIconOnly</enum>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<widget class="QToolButton" name="boldButton">
|
|
|
|
<property name="font">
|
|
|
|
<font>
|
2018-03-31 20:45:19 +00:00
|
|
|
<weight>50</weight>
|
2018-03-11 08:33:48 +00:00
|
|
|
<italic>false</italic>
|
|
|
|
<bold>false</bold>
|
2018-03-10 09:42:22 +00:00
|
|
|
</font>
|
|
|
|
</property>
|
|
|
|
<property name="text">
|
2018-03-31 10:53:31 +00:00
|
|
|
<string>Bold</string>
|
2018-03-10 09:42:22 +00:00
|
|
|
</property>
|
|
|
|
<property name="checkable">
|
|
|
|
<bool>true</bool>
|
|
|
|
</property>
|
|
|
|
<property name="checked">
|
|
|
|
<bool>false</bool>
|
|
|
|
</property>
|
|
|
|
<property name="autoRaise">
|
|
|
|
<bool>false</bool>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
</layout>
|
2018-03-10 07:51:17 +00:00
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<widget class="QTextEdit" name="instructionsTextEdit">
|
2018-03-10 13:06:24 +00:00
|
|
|
<property name="styleSheet">
|
|
|
|
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
|
|
|
</property>
|
|
|
|
<property name="frameShape">
|
|
|
|
<enum>QFrame::NoFrame</enum>
|
|
|
|
</property>
|
2018-03-10 07:51:17 +00:00
|
|
|
<property name="placeholderText">
|
|
|
|
<string>Enter instructions here.</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
</layout>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2018-03-10 11:36:14 +00:00
|
|
|
<item>
|
|
|
|
<widget class="QDialogButtonBox" name="buttonBox">
|
|
|
|
<property name="layoutDirection">
|
|
|
|
<enum>Qt::LeftToRight</enum>
|
|
|
|
</property>
|
2018-03-10 13:06:24 +00:00
|
|
|
<property name="autoFillBackground">
|
2018-03-31 10:53:31 +00:00
|
|
|
<bool>false</bool>
|
2018-03-30 09:05:17 +00:00
|
|
|
</property>
|
|
|
|
<property name="styleSheet">
|
|
|
|
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
2018-03-10 13:06:24 +00:00
|
|
|
</property>
|
2018-03-10 11:36:14 +00:00
|
|
|
<property name="standardButtons">
|
|
|
|
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
|
|
|
</property>
|
2018-03-10 13:06:24 +00:00
|
|
|
<property name="centerButtons">
|
|
|
|
<bool>true</bool>
|
|
|
|
</property>
|
2018-03-10 11:36:14 +00:00
|
|
|
</widget>
|
|
|
|
</item>
|
2018-03-04 09:19:32 +00:00
|
|
|
</layout>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
</layout>
|
2018-03-04 08:05:20 +00:00
|
|
|
</widget>
|
2018-03-11 07:57:57 +00:00
|
|
|
<customwidgets>
|
|
|
|
<customwidget>
|
|
|
|
<class>AspectRatioPixmapLabel</class>
|
|
|
|
<extends>QLabel</extends>
|
|
|
|
<header>utils/aspectratiopixmaplabel.h</header>
|
|
|
|
</customwidget>
|
|
|
|
</customwidgets>
|
2018-03-10 12:22:04 +00:00
|
|
|
<resources>
|
2018-03-31 20:15:01 +00:00
|
|
|
<include location="../res.qrc"/>
|
2018-03-10 12:22:04 +00:00
|
|
|
</resources>
|
2018-03-04 08:05:20 +00:00
|
|
|
<connections/>
|
|
|
|
</ui>
|