diff --git a/.gitignore b/.gitignore index f3eccb1..e66464f 100644 --- a/.gitignore +++ b/.gitignore @@ -4,5 +4,5 @@ /dist Calc3D.spec /releases -*.ui -__pycache__ \ No newline at end of file +__pycache__ +.vscode \ No newline at end of file diff --git a/UI/Add_printer.ui b/UI/Add_printer.ui new file mode 100644 index 0000000..c532af1 --- /dev/null +++ b/UI/Add_printer.ui @@ -0,0 +1,427 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>Dialog</class> + <widget class="QDialog" name="Dialog"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>376</width> + <height>196</height> + </rect> + </property> + <property name="windowTitle"> + <string>Добавление принтера</string> + </property> + <property name="windowIcon"> + <iconset> + <normaloff>img/logo-1.png</normaloff>img/logo-1.png</iconset> + </property> + <widget class="QWidget" name="layoutWidget"> + <property name="geometry"> + <rect> + <x>20</x> + <y>160</y> + <width>341</width> + <height>27</height> + </rect> + </property> + <layout class="QHBoxLayout" name="horizontalLayout"> + <item> + <widget class="QPushButton" name="pushButton"> + <property name="styleSheet"> + <string notr="true">background-color: rgb(0, 80, 0);</string> + </property> + <property name="text"> + <string>Сохранить</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="pushButton_2"> + <property name="styleSheet"> + <string notr="true">background-color: rgb(0, 80, 0);</string> + </property> + <property name="text"> + <string>Отмена</string> + </property> + </widget> + </item> + </layout> + </widget> + <widget class="QLabel" name="power_printer"> + <property name="geometry"> + <rect> + <x>20</x> + <y>90</y> + <width>261</width> + <height>17</height> + </rect> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(255, 255, 255);</string> + </property> + <property name="text"> + <string>Срок полезного использования, лет</string> + </property> + </widget> + <widget class="QPlainTextEdit" name="input_power"> + <property name="geometry"> + <rect> + <x>290</x> + <y>90</y> + <width>71</width> + <height>20</height> + </rect> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + <stylestrategy>PreferAntialias</stylestrategy> + </font> + </property> + <property name="acceptDrops"> + <bool>false</bool> + </property> + <property name="toolTipDuration"> + <number>0</number> + </property> + <property name="whatsThis"> + <string/> + </property> + <property name="autoFillBackground"> + <bool>false</bool> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(77, 77, 77);</string> + </property> + <property name="inputMethodHints"> + <set>Qt::ImhDigitsOnly</set> + </property> + <property name="lineWidth"> + <number>0</number> + </property> + <property name="verticalScrollBarPolicy"> + <enum>Qt::ScrollBarAlwaysOff</enum> + </property> + <property name="horizontalScrollBarPolicy"> + <enum>Qt::ScrollBarAsNeeded</enum> + </property> + <property name="undoRedoEnabled"> + <bool>false</bool> + </property> + <property name="lineWrapMode"> + <enum>QPlainTextEdit::NoWrap</enum> + </property> + <property name="plainText"> + <string notr="true"/> + </property> + <property name="tabStopDistance"> + <double>80.000000000000000</double> + </property> + <property name="maximumBlockCount"> + <number>3</number> + </property> + <property name="centerOnScroll"> + <bool>false</bool> + </property> + <property name="placeholderText"> + <string notr="true">0</string> + </property> + </widget> + <widget class="QLabel" name="power_printer_2"> + <property name="geometry"> + <rect> + <x>20</x> + <y>120</y> + <width>181</width> + <height>17</height> + </rect> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(255, 255, 255);</string> + </property> + <property name="text"> + <string>Стоимость принетра, руб</string> + </property> + </widget> + <widget class="QPlainTextEdit" name="input_power_2"> + <property name="geometry"> + <rect> + <x>290</x> + <y>120</y> + <width>71</width> + <height>20</height> + </rect> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + <stylestrategy>PreferAntialias</stylestrategy> + </font> + </property> + <property name="acceptDrops"> + <bool>false</bool> + </property> + <property name="toolTipDuration"> + <number>0</number> + </property> + <property name="whatsThis"> + <string/> + </property> + <property name="autoFillBackground"> + <bool>false</bool> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(77, 77, 77);</string> + </property> + <property name="inputMethodHints"> + <set>Qt::ImhDigitsOnly</set> + </property> + <property name="lineWidth"> + <number>0</number> + </property> + <property name="verticalScrollBarPolicy"> + <enum>Qt::ScrollBarAlwaysOff</enum> + </property> + <property name="horizontalScrollBarPolicy"> + <enum>Qt::ScrollBarAsNeeded</enum> + </property> + <property name="undoRedoEnabled"> + <bool>false</bool> + </property> + <property name="lineWrapMode"> + <enum>QPlainTextEdit::NoWrap</enum> + </property> + <property name="plainText"> + <string notr="true"/> + </property> + <property name="tabStopDistance"> + <double>80.000000000000000</double> + </property> + <property name="maximumBlockCount"> + <number>3</number> + </property> + <property name="centerOnScroll"> + <bool>false</bool> + </property> + <property name="placeholderText"> + <string notr="true">0</string> + </property> + </widget> + <widget class="QLabel" name="power_printer_3"> + <property name="geometry"> + <rect> + <x>20</x> + <y>60</y> + <width>181</width> + <height>17</height> + </rect> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(255, 255, 255);</string> + </property> + <property name="text"> + <string>Мощность принтера, Вт</string> + </property> + </widget> + <widget class="QPlainTextEdit" name="input_power_3"> + <property name="geometry"> + <rect> + <x>290</x> + <y>60</y> + <width>71</width> + <height>20</height> + </rect> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + <stylestrategy>PreferAntialias</stylestrategy> + </font> + </property> + <property name="acceptDrops"> + <bool>false</bool> + </property> + <property name="toolTipDuration"> + <number>0</number> + </property> + <property name="whatsThis"> + <string/> + </property> + <property name="autoFillBackground"> + <bool>false</bool> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(77, 77, 77);</string> + </property> + <property name="inputMethodHints"> + <set>Qt::ImhDigitsOnly</set> + </property> + <property name="lineWidth"> + <number>0</number> + </property> + <property name="verticalScrollBarPolicy"> + <enum>Qt::ScrollBarAlwaysOff</enum> + </property> + <property name="horizontalScrollBarPolicy"> + <enum>Qt::ScrollBarAsNeeded</enum> + </property> + <property name="undoRedoEnabled"> + <bool>false</bool> + </property> + <property name="lineWrapMode"> + <enum>QPlainTextEdit::NoWrap</enum> + </property> + <property name="plainText"> + <string notr="true"/> + </property> + <property name="tabStopDistance"> + <double>80.000000000000000</double> + </property> + <property name="maximumBlockCount"> + <number>3</number> + </property> + <property name="centerOnScroll"> + <bool>false</bool> + </property> + <property name="placeholderText"> + <string notr="true">0</string> + </property> + </widget> + <widget class="QLabel" name="power_printer_4"> + <property name="geometry"> + <rect> + <x>20</x> + <y>20</y> + <width>181</width> + <height>17</height> + </rect> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(255, 255, 255);</string> + </property> + <property name="text"> + <string>Название пресета</string> + </property> + </widget> + <widget class="QTextEdit" name="textEdit"> + <property name="enabled"> + <bool>true</bool> + </property> + <property name="geometry"> + <rect> + <x>180</x> + <y>20</y> + <width>181</width> + <height>21</height> + </rect> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <stylestrategy>PreferAntialias</stylestrategy> + <kerning>false</kerning> + </font> + </property> + <property name="tabletTracking"> + <bool>false</bool> + </property> + <property name="acceptDrops"> + <bool>true</bool> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(77, 77, 77);</string> + </property> + <property name="frameShape"> + <enum>QFrame::NoFrame</enum> + </property> + <property name="frameShadow"> + <enum>QFrame::Sunken</enum> + </property> + <property name="verticalScrollBarPolicy"> + <enum>Qt::ScrollBarAlwaysOff</enum> + </property> + <property name="horizontalScrollBarPolicy"> + <enum>Qt::ScrollBarAlwaysOff</enum> + </property> + <property name="autoFormatting"> + <set>QTextEdit::AutoBulletList</set> + </property> + <property name="tabChangesFocus"> + <bool>true</bool> + </property> + <property name="documentTitle"> + <string notr="true"/> + </property> + <property name="undoRedoEnabled"> + <bool>false</bool> + </property> + <property name="lineWrapMode"> + <enum>QTextEdit::WidgetWidth</enum> + </property> + <property name="markdown"> + <string/> + </property> + <property name="acceptRichText"> + <bool>false</bool> + </property> + <property name="cursorWidth"> + <number>1</number> + </property> + <property name="textInteractionFlags"> + <set>Qt::TextEditorInteraction</set> + </property> + <property name="placeholderText"> + <string>Название принтера</string> + </property> + </widget> + </widget> + <resources/> + <connections/> +</ui> diff --git a/UI/Calc3d.ui b/UI/Calc3d.ui new file mode 100644 index 0000000..76c622c --- /dev/null +++ b/UI/Calc3d.ui @@ -0,0 +1,968 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>Calc3DbyRisen</class> + <widget class="QMainWindow" name="Calc3DbyRisen"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>373</width> + <height>471</height> + </rect> + </property> + <property name="font"> + <font> + <bold>true</bold> + </font> + </property> + <property name="acceptDrops"> + <bool>false</bool> + </property> + <property name="windowTitle"> + <string>Calc3D by Risen v.1.0.0</string> + </property> + <property name="windowIcon"> + <iconset> + <normaloff>img/logo-1.png</normaloff>img/logo-1.png</iconset> + </property> + <property name="autoFillBackground"> + <bool>true</bool> + </property> + <property name="styleSheet"> + <string notr="true"/> + </property> + <property name="dockOptions"> + <set>QMainWindow::DockOption::AllowTabbedDocks|QMainWindow::DockOption::AnimatedDocks</set> + </property> + <widget class="QWidget" name="centralwidget"> + <widget class="QLabel" name="quantity"> + <property name="geometry"> + <rect> + <x>20</x> + <y>270</y> + <width>171</width> + <height>17</height> + </rect> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(255, 255, 255);</string> + </property> + <property name="text"> + <string>Количество экземпляров</string> + </property> + </widget> + <widget class="QLabel" name="weight"> + <property name="geometry"> + <rect> + <x>20</x> + <y>240</y> + <width>101</width> + <height>17</height> + </rect> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(255, 255, 255);</string> + </property> + <property name="text"> + <string>Масса детали</string> + </property> + </widget> + <widget class="QLabel" name="time_print"> + <property name="geometry"> + <rect> + <x>20</x> + <y>210</y> + <width>101</width> + <height>17</height> + </rect> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(255, 255, 255);</string> + </property> + <property name="text"> + <string>Время печати</string> + </property> + </widget> + <widget class="QLabel" name="printer"> + <property name="geometry"> + <rect> + <x>21</x> + <y>171</y> + <width>81</width> + <height>17</height> + </rect> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(255, 255, 255);</string> + </property> + <property name="text"> + <string>Принтер</string> + </property> + </widget> + <widget class="QComboBox" name="printer_menu"> + <property name="geometry"> + <rect> + <x>181</x> + <y>170</y> + <width>171</width> + <height>25</height> + </rect> + </property> + <property name="acceptDrops"> + <bool>true</bool> + </property> + <property name="styleSheet"> + <string notr="true">alternate-background-color: rgb(77, 77, 77);</string> + </property> + <property name="currentText"> + <string/> + </property> + <property name="currentIndex"> + <number>-1</number> + </property> + <property name="insertPolicy"> + <enum>QComboBox::InsertPolicy::NoInsert</enum> + </property> + <property name="placeholderText"> + <string>Выбор принтера</string> + </property> + <item> + <property name="text"> + <string>Ender3/Ender3pro</string> + </property> + </item> + <item> + <property name="text"> + <string>FlyBeer</string> + </property> + </item> + </widget> + <widget class="QLCDNumber" name="lcd_result"> + <property name="geometry"> + <rect> + <x>20</x> + <y>10</y> + <width>301</width> + <height>71</height> + </rect> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + </font> + </property> + <property name="autoFillBackground"> + <bool>false</bool> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(36, 36, 36);</string> + </property> + <property name="frameShape"> + <enum>QFrame::Shape::StyledPanel</enum> + </property> + <property name="frameShadow"> + <enum>QFrame::Shadow::Raised</enum> + </property> + <property name="digitCount"> + <number>10</number> + </property> + <property name="segmentStyle"> + <enum>QLCDNumber::SegmentStyle::Flat</enum> + </property> + </widget> + <widget class="QLCDNumber" name="lcd_result_2"> + <property name="geometry"> + <rect> + <x>180</x> + <y>90</y> + <width>141</width> + <height>41</height> + </rect> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(36, 36, 36);</string> + </property> + <property name="digitCount"> + <number>10</number> + </property> + <property name="segmentStyle"> + <enum>QLCDNumber::SegmentStyle::Flat</enum> + </property> + </widget> + <widget class="QLabel" name="cost_price"> + <property name="geometry"> + <rect> + <x>20</x> + <y>110</y> + <width>141</width> + <height>17</height> + </rect> + </property> + <property name="font"> + <font> + <pointsize>12</pointsize> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(255, 255, 255);</string> + </property> + <property name="text"> + <string>Себестоимость</string> + </property> + </widget> + <widget class="QPlainTextEdit" name="input_hours"> + <property name="geometry"> + <rect> + <x>180</x> + <y>210</y> + <width>51</width> + <height>20</height> + </rect> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + <stylestrategy>PreferAntialias</stylestrategy> + </font> + </property> + <property name="acceptDrops"> + <bool>false</bool> + </property> + <property name="toolTipDuration"> + <number>0</number> + </property> + <property name="whatsThis"> + <string/> + </property> + <property name="autoFillBackground"> + <bool>false</bool> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(77, 77, 77);</string> + </property> + <property name="inputMethodHints"> + <set>Qt::InputMethodHint::ImhDigitsOnly</set> + </property> + <property name="lineWidth"> + <number>0</number> + </property> + <property name="verticalScrollBarPolicy"> + <enum>Qt::ScrollBarPolicy::ScrollBarAlwaysOff</enum> + </property> + <property name="horizontalScrollBarPolicy"> + <enum>Qt::ScrollBarPolicy::ScrollBarAsNeeded</enum> + </property> + <property name="undoRedoEnabled"> + <bool>false</bool> + </property> + <property name="lineWrapMode"> + <enum>QPlainTextEdit::LineWrapMode::NoWrap</enum> + </property> + <property name="plainText"> + <string notr="true"/> + </property> + <property name="tabStopDistance"> + <double>80.000000000000000</double> + </property> + <property name="maximumBlockCount"> + <number>3</number> + </property> + <property name="centerOnScroll"> + <bool>false</bool> + </property> + <property name="placeholderText"> + <string notr="true">0</string> + </property> + </widget> + <widget class="QLabel" name="text_time_hours"> + <property name="geometry"> + <rect> + <x>240</x> + <y>210</y> + <width>21</width> + <height>17</height> + </rect> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(255, 255, 255);</string> + </property> + <property name="text"> + <string>ч.</string> + </property> + </widget> + <widget class="QPlainTextEdit" name="input_minutes"> + <property name="geometry"> + <rect> + <x>260</x> + <y>210</y> + <width>51</width> + <height>21</height> + </rect> + </property> + <property name="acceptDrops"> + <bool>false</bool> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(77, 77, 77);</string> + </property> + <property name="inputMethodHints"> + <set>Qt::InputMethodHint::ImhDigitsOnly</set> + </property> + <property name="maximumBlockCount"> + <number>3</number> + </property> + <property name="centerOnScroll"> + <bool>true</bool> + </property> + <property name="placeholderText"> + <string>0</string> + </property> + </widget> + <widget class="QLabel" name="text_time_minuts"> + <property name="geometry"> + <rect> + <x>320</x> + <y>210</y> + <width>31</width> + <height>17</height> + </rect> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(255, 255, 255);</string> + </property> + <property name="text"> + <string>мин.</string> + </property> + </widget> + <widget class="QPlainTextEdit" name="input_gram"> + <property name="geometry"> + <rect> + <x>230</x> + <y>240</y> + <width>81</width> + <height>20</height> + </rect> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + <stylestrategy>PreferAntialias</stylestrategy> + </font> + </property> + <property name="acceptDrops"> + <bool>false</bool> + </property> + <property name="toolTipDuration"> + <number>0</number> + </property> + <property name="autoFillBackground"> + <bool>false</bool> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(77, 77, 77);</string> + </property> + <property name="inputMethodHints"> + <set>Qt::InputMethodHint::ImhFormattedNumbersOnly</set> + </property> + <property name="lineWidth"> + <number>0</number> + </property> + <property name="verticalScrollBarPolicy"> + <enum>Qt::ScrollBarPolicy::ScrollBarAlwaysOff</enum> + </property> + <property name="horizontalScrollBarPolicy"> + <enum>Qt::ScrollBarPolicy::ScrollBarAsNeeded</enum> + </property> + <property name="plainText"> + <string notr="true"/> + </property> + <property name="centerOnScroll"> + <bool>true</bool> + </property> + <property name="placeholderText"> + <string>0</string> + </property> + </widget> + <widget class="QPlainTextEdit" name="input_things"> + <property name="geometry"> + <rect> + <x>230</x> + <y>270</y> + <width>81</width> + <height>20</height> + </rect> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + <stylestrategy>PreferAntialias</stylestrategy> + </font> + </property> + <property name="acceptDrops"> + <bool>false</bool> + </property> + <property name="toolTipDuration"> + <number>0</number> + </property> + <property name="autoFillBackground"> + <bool>false</bool> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(77, 77, 77);</string> + </property> + <property name="inputMethodHints"> + <set>Qt::InputMethodHint::ImhDigitsOnly</set> + </property> + <property name="lineWidth"> + <number>0</number> + </property> + <property name="verticalScrollBarPolicy"> + <enum>Qt::ScrollBarPolicy::ScrollBarAlwaysOff</enum> + </property> + <property name="horizontalScrollBarPolicy"> + <enum>Qt::ScrollBarPolicy::ScrollBarAsNeeded</enum> + </property> + <property name="plainText"> + <string notr="true"/> + </property> + <property name="centerOnScroll"> + <bool>true</bool> + </property> + <property name="placeholderText"> + <string>0</string> + </property> + </widget> + <widget class="QPlainTextEdit" name="input_mod"> + <property name="geometry"> + <rect> + <x>230</x> + <y>330</y> + <width>81</width> + <height>20</height> + </rect> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + <stylestrategy>PreferAntialias</stylestrategy> + </font> + </property> + <property name="acceptDrops"> + <bool>false</bool> + </property> + <property name="toolTipDuration"> + <number>0</number> + </property> + <property name="autoFillBackground"> + <bool>false</bool> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(77, 77, 77);</string> + </property> + <property name="inputMethodHints"> + <set>Qt::InputMethodHint::ImhDigitsOnly</set> + </property> + <property name="lineWidth"> + <number>0</number> + </property> + <property name="verticalScrollBarPolicy"> + <enum>Qt::ScrollBarPolicy::ScrollBarAlwaysOff</enum> + </property> + <property name="horizontalScrollBarPolicy"> + <enum>Qt::ScrollBarPolicy::ScrollBarAsNeeded</enum> + </property> + <property name="plainText"> + <string notr="true"/> + </property> + <property name="centerOnScroll"> + <bool>true</bool> + </property> + <property name="placeholderText"> + <string>0</string> + </property> + </widget> + <widget class="QPlainTextEdit" name="input_post"> + <property name="geometry"> + <rect> + <x>230</x> + <y>360</y> + <width>81</width> + <height>20</height> + </rect> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + <stylestrategy>PreferAntialias</stylestrategy> + </font> + </property> + <property name="acceptDrops"> + <bool>false</bool> + </property> + <property name="toolTipDuration"> + <number>0</number> + </property> + <property name="autoFillBackground"> + <bool>false</bool> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(77, 77, 77);</string> + </property> + <property name="inputMethodHints"> + <set>Qt::InputMethodHint::ImhDigitsOnly</set> + </property> + <property name="lineWidth"> + <number>0</number> + </property> + <property name="verticalScrollBarPolicy"> + <enum>Qt::ScrollBarPolicy::ScrollBarAlwaysOff</enum> + </property> + <property name="horizontalScrollBarPolicy"> + <enum>Qt::ScrollBarPolicy::ScrollBarAsNeeded</enum> + </property> + <property name="plainText"> + <string notr="true"/> + </property> + <property name="centerOnScroll"> + <bool>true</bool> + </property> + <property name="placeholderText"> + <string>0</string> + </property> + </widget> + <widget class="QLabel" name="text_gram"> + <property name="geometry"> + <rect> + <x>320</x> + <y>240</y> + <width>31</width> + <height>17</height> + </rect> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(255, 255, 255);</string> + </property> + <property name="text"> + <string>г.</string> + </property> + </widget> + <widget class="QLabel" name="text_things"> + <property name="geometry"> + <rect> + <x>320</x> + <y>270</y> + <width>31</width> + <height>17</height> + </rect> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(255, 255, 255);</string> + </property> + <property name="text"> + <string>шт.</string> + </property> + </widget> + <widget class="QLabel" name="text_rub_mod"> + <property name="geometry"> + <rect> + <x>320</x> + <y>330</y> + <width>31</width> + <height>17</height> + </rect> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(255, 255, 255);</string> + </property> + <property name="text"> + <string>руб.</string> + </property> + </widget> + <widget class="QLabel" name="text_rub_post"> + <property name="geometry"> + <rect> + <x>320</x> + <y>360</y> + <width>31</width> + <height>17</height> + </rect> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(255, 255, 255);</string> + </property> + <property name="text"> + <string>руб.</string> + </property> + </widget> + <widget class="QLabel" name="ico_rub"> + <property name="geometry"> + <rect> + <x>330</x> + <y>50</y> + <width>31</width> + <height>31</height> + </rect> + </property> + <property name="text"> + <string/> + </property> + <property name="pixmap"> + <pixmap>img/rubl.png</pixmap> + </property> + <property name="scaledContents"> + <bool>true</bool> + </property> + </widget> + <widget class="QFrame" name="frame"> + <property name="geometry"> + <rect> + <x>20</x> + <y>130</y> + <width>331</width> + <height>31</height> + </rect> + </property> + <property name="frameShape"> + <enum>QFrame::Shape::HLine</enum> + </property> + <property name="frameShadow"> + <enum>QFrame::Shadow::Raised</enum> + </property> + <property name="lineWidth"> + <number>2</number> + </property> + </widget> + <widget class="QFrame" name="frame_2"> + <property name="geometry"> + <rect> + <x>20</x> + <y>300</y> + <width>331</width> + <height>31</height> + </rect> + </property> + <property name="frameShape"> + <enum>QFrame::Shape::HLine</enum> + </property> + <property name="frameShadow"> + <enum>QFrame::Shadow::Raised</enum> + </property> + <property name="lineWidth"> + <number>2</number> + </property> + </widget> + <widget class="QWidget" name="layoutWidget"> + <property name="geometry"> + <rect> + <x>20</x> + <y>400</y> + <width>331</width> + <height>41</height> + </rect> + </property> + <layout class="QHBoxLayout" name="buttons"> + <item> + <widget class="QPushButton" name="get_result_btn"> + <property name="font"> + <font> + <pointsize>10</pointsize> + <italic>false</italic> + <bold>true</bold> + <stylestrategy>PreferAntialias</stylestrategy> + <kerning>true</kerning> + </font> + </property> + <property name="acceptDrops"> + <bool>true</bool> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(0, 80, 0);</string> + </property> + <property name="text"> + <string>Рассчитать</string> + </property> + <property name="icon"> + <iconset> + <normaloff>img/calc.png</normaloff>img/calc.png</iconset> + </property> + <property name="iconSize"> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="exit_btn"> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(0, 80, 0);</string> + </property> + <property name="text"> + <string>Выход</string> + </property> + <property name="icon"> + <iconset> + <normaloff>img/exit.png</normaloff>img/exit.png</iconset> + </property> + <property name="iconSize"> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + </widget> + </item> + </layout> + </widget> + <widget class="QLabel" name="modeling"> + <property name="geometry"> + <rect> + <x>20</x> + <y>330</y> + <width>141</width> + <height>17</height> + </rect> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(255, 255, 255);</string> + </property> + <property name="text"> + <string>Моделирование</string> + </property> + </widget> + <widget class="QLabel" name="post_print"> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="geometry"> + <rect> + <x>20</x> + <y>360</y> + <width>121</width> + <height>17</height> + </rect> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(255, 255, 255);</string> + </property> + <property name="text"> + <string>Постобработка</string> + </property> + </widget> + </widget> + <widget class="QMenuBar" name="menubar"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>373</width> + <height>22</height> + </rect> + </property> + <widget class="QMenu" name="settings"> + <property name="title"> + <string>Файл</string> + </property> + <widget class="QMenu" name="pressets"> + <property name="title"> + <string>Пресеты принтера</string> + </property> + <addaction name="add_printer"/> + <addaction name="edit_printer"/> + <addaction name="del_printer"/> + </widget> + <addaction name="settings_2"/> + <addaction name="pressets"/> + <addaction name="separator"/> + <addaction name="separator"/> + <addaction name="action_3"/> + </widget> + <widget class="QMenu" name="help"> + <property name="contextMenuPolicy"> + <enum>Qt::ContextMenuPolicy::DefaultContextMenu</enum> + </property> + <property name="autoFillBackground"> + <bool>false</bool> + </property> + <property name="tearOffEnabled"> + <bool>false</bool> + </property> + <property name="title"> + <string>Помощь</string> + </property> + <property name="separatorsCollapsible"> + <bool>false</bool> + </property> + <addaction name="check_update"/> + <addaction name="formula"/> + <addaction name="about"/> + </widget> + <addaction name="settings"/> + <addaction name="help"/> + </widget> + <action name="check_update"> + <property name="checkable"> + <bool>false</bool> + </property> + <property name="text"> + <string>Проверить обновления</string> + </property> + </action> + <action name="formula"> + <property name="text"> + <string>Как расчитывается стоимость</string> + </property> + </action> + <action name="about"> + <property name="text"> + <string>О програме</string> + </property> + </action> + <action name="settings_2"> + <property name="text"> + <string>Настройки</string> + </property> + </action> + <action name="add_printer"> + <property name="text"> + <string>Добавить принтер</string> + </property> + </action> + <action name="edit_printer"> + <property name="text"> + <string>Редактировать принтер</string> + </property> + </action> + <action name="del_printer"> + <property name="text"> + <string>Удалить принтер</string> + </property> + </action> + <action name="action_3"> + <property name="text"> + <string>Выход</string> + </property> + <property name="menuRole"> + <enum>QAction::MenuRole::QuitRole</enum> + </property> + </action> + </widget> + <resources/> + <connections/> +</ui> diff --git a/UI/Del_preset.ui b/UI/Del_preset.ui new file mode 100644 index 0000000..df77984 --- /dev/null +++ b/UI/Del_preset.ui @@ -0,0 +1,78 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>Dialog</class> + <widget class="QDialog" name="Dialog"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>369</width> + <height>347</height> + </rect> + </property> + <property name="windowTitle"> + <string>Настройки принтера</string> + </property> + <property name="windowIcon"> + <iconset> + <normaloff>img/logo-1.png</normaloff>img/logo-1.png</iconset> + </property> + <widget class="QTableWidget" name="tableWidget"> + <property name="geometry"> + <rect> + <x>20</x> + <y>20</y> + <width>321</width> + <height>271</height> + </rect> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(36, 36, 36);</string> + </property> + </widget> + <widget class="QWidget" name=""> + <property name="geometry"> + <rect> + <x>23</x> + <y>310</y> + <width>321</width> + <height>27</height> + </rect> + </property> + <layout class="QHBoxLayout" name="horizontalLayout"> + <item> + <widget class="QPushButton" name="pushButton"> + <property name="styleSheet"> + <string notr="true">background-color: rgb(0, 80, 0);</string> + </property> + <property name="text"> + <string>Изменить</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="pushButton_3"> + <property name="styleSheet"> + <string notr="true">background-color: rgb(255, 0, 0);</string> + </property> + <property name="text"> + <string>Удалить</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="pushButton_2"> + <property name="styleSheet"> + <string notr="true">background-color: rgb(0, 80, 0);</string> + </property> + <property name="text"> + <string>Отмена</string> + </property> + </widget> + </item> + </layout> + </widget> + </widget> + <resources/> + <connections/> +</ui> diff --git a/UI/Edit_presset.ui b/UI/Edit_presset.ui new file mode 100644 index 0000000..cb71bcb --- /dev/null +++ b/UI/Edit_presset.ui @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>Dialog</class> + <widget class="QDialog" name="Dialog"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>369</width> + <height>169</height> + </rect> + </property> + <property name="windowTitle"> + <string>Изменить пресет</string> + </property> + <property name="windowIcon"> + <iconset> + <normaloff>img/logo-1.png</normaloff>img/logo-1.png</iconset> + </property> + <widget class="QWidget" name=""> + <property name="geometry"> + <rect> + <x>22</x> + <y>130</y> + <width>321</width> + <height>27</height> + </rect> + </property> + <layout class="QHBoxLayout" name="horizontalLayout"> + <item> + <widget class="QPushButton" name="pushButton"> + <property name="styleSheet"> + <string notr="true">background-color: rgb(0, 80, 0);</string> + </property> + <property name="text"> + <string>Сохранить</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="pushButton_2"> + <property name="styleSheet"> + <string notr="true">background-color: rgb(0, 80, 0);</string> + </property> + <property name="text"> + <string>Закрыть</string> + </property> + </widget> + </item> + </layout> + </widget> + </widget> + <resources/> + <connections/> +</ui> diff --git a/UI/Settings.ui b/UI/Settings.ui new file mode 100644 index 0000000..f7e1d49 --- /dev/null +++ b/UI/Settings.ui @@ -0,0 +1,532 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>Dialog</class> + <widget class="QDialog" name="Dialog"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>379</width> + <height>337</height> + </rect> + </property> + <property name="windowTitle"> + <string>Настройки</string> + </property> + <property name="windowIcon"> + <iconset> + <normaloff>img/logo-1.png</normaloff>img/logo-1.png</iconset> + </property> + <widget class="QPlainTextEdit" name="input_tarif"> + <property name="geometry"> + <rect> + <x>280</x> + <y>90</y> + <width>71</width> + <height>20</height> + </rect> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + <stylestrategy>PreferAntialias</stylestrategy> + </font> + </property> + <property name="acceptDrops"> + <bool>false</bool> + </property> + <property name="toolTipDuration"> + <number>0</number> + </property> + <property name="whatsThis"> + <string/> + </property> + <property name="autoFillBackground"> + <bool>false</bool> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(77, 77, 77);</string> + </property> + <property name="inputMethodHints"> + <set>Qt::ImhDigitsOnly</set> + </property> + <property name="lineWidth"> + <number>0</number> + </property> + <property name="verticalScrollBarPolicy"> + <enum>Qt::ScrollBarAlwaysOff</enum> + </property> + <property name="horizontalScrollBarPolicy"> + <enum>Qt::ScrollBarAsNeeded</enum> + </property> + <property name="undoRedoEnabled"> + <bool>false</bool> + </property> + <property name="lineWrapMode"> + <enum>QPlainTextEdit::NoWrap</enum> + </property> + <property name="plainText"> + <string notr="true"/> + </property> + <property name="tabStopDistance"> + <double>80.000000000000000</double> + </property> + <property name="maximumBlockCount"> + <number>3</number> + </property> + <property name="centerOnScroll"> + <bool>false</bool> + </property> + <property name="placeholderText"> + <string notr="true">0</string> + </property> + </widget> + <widget class="QLabel" name="Tarif"> + <property name="geometry"> + <rect> + <x>20</x> + <y>90</y> + <width>221</width> + <height>17</height> + </rect> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(255, 255, 255);</string> + </property> + <property name="text"> + <string>Тариф электроэнергии, кВТ/ч</string> + </property> + </widget> + <widget class="QPlainTextEdit" name="input_q_trash"> + <property name="geometry"> + <rect> + <x>280</x> + <y>130</y> + <width>71</width> + <height>20</height> + </rect> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + <stylestrategy>PreferAntialias</stylestrategy> + </font> + </property> + <property name="acceptDrops"> + <bool>false</bool> + </property> + <property name="toolTipDuration"> + <number>0</number> + </property> + <property name="whatsThis"> + <string/> + </property> + <property name="autoFillBackground"> + <bool>false</bool> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(77, 77, 77);</string> + </property> + <property name="inputMethodHints"> + <set>Qt::ImhDigitsOnly</set> + </property> + <property name="lineWidth"> + <number>0</number> + </property> + <property name="verticalScrollBarPolicy"> + <enum>Qt::ScrollBarAlwaysOff</enum> + </property> + <property name="horizontalScrollBarPolicy"> + <enum>Qt::ScrollBarAsNeeded</enum> + </property> + <property name="undoRedoEnabled"> + <bool>false</bool> + </property> + <property name="lineWrapMode"> + <enum>QPlainTextEdit::NoWrap</enum> + </property> + <property name="plainText"> + <string notr="true"/> + </property> + <property name="tabStopDistance"> + <double>80.000000000000000</double> + </property> + <property name="maximumBlockCount"> + <number>3</number> + </property> + <property name="centerOnScroll"> + <bool>false</bool> + </property> + <property name="placeholderText"> + <string notr="true">0</string> + </property> + </widget> + <widget class="QLabel" name="Q_trash"> + <property name="geometry"> + <rect> + <x>20</x> + <y>130</y> + <width>201</width> + <height>17</height> + </rect> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(255, 255, 255);</string> + </property> + <property name="text"> + <string>Коэффициент выбраковки</string> + </property> + </widget> + <widget class="QPlainTextEdit" name="input_price_pastik"> + <property name="geometry"> + <rect> + <x>280</x> + <y>170</y> + <width>71</width> + <height>20</height> + </rect> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + <stylestrategy>PreferAntialias</stylestrategy> + </font> + </property> + <property name="acceptDrops"> + <bool>false</bool> + </property> + <property name="toolTipDuration"> + <number>0</number> + </property> + <property name="whatsThis"> + <string/> + </property> + <property name="autoFillBackground"> + <bool>false</bool> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(77, 77, 77);</string> + </property> + <property name="inputMethodHints"> + <set>Qt::ImhDigitsOnly</set> + </property> + <property name="lineWidth"> + <number>0</number> + </property> + <property name="verticalScrollBarPolicy"> + <enum>Qt::ScrollBarAlwaysOff</enum> + </property> + <property name="horizontalScrollBarPolicy"> + <enum>Qt::ScrollBarAsNeeded</enum> + </property> + <property name="undoRedoEnabled"> + <bool>false</bool> + </property> + <property name="lineWrapMode"> + <enum>QPlainTextEdit::NoWrap</enum> + </property> + <property name="plainText"> + <string notr="true"/> + </property> + <property name="tabStopDistance"> + <double>80.000000000000000</double> + </property> + <property name="maximumBlockCount"> + <number>3</number> + </property> + <property name="centerOnScroll"> + <bool>false</bool> + </property> + <property name="placeholderText"> + <string notr="true">0</string> + </property> + </widget> + <widget class="QLabel" name="Price_plastik"> + <property name="geometry"> + <rect> + <x>20</x> + <y>170</y> + <width>181</width> + <height>17</height> + </rect> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(255, 255, 255);</string> + </property> + <property name="text"> + <string>Стоимость катушки, руб</string> + </property> + </widget> + <widget class="QPlainTextEdit" name="input_overprice"> + <property name="geometry"> + <rect> + <x>280</x> + <y>210</y> + <width>71</width> + <height>20</height> + </rect> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + <stylestrategy>PreferAntialias</stylestrategy> + </font> + </property> + <property name="acceptDrops"> + <bool>false</bool> + </property> + <property name="toolTipDuration"> + <number>0</number> + </property> + <property name="whatsThis"> + <string/> + </property> + <property name="autoFillBackground"> + <bool>false</bool> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(77, 77, 77);</string> + </property> + <property name="inputMethodHints"> + <set>Qt::ImhDigitsOnly</set> + </property> + <property name="lineWidth"> + <number>0</number> + </property> + <property name="verticalScrollBarPolicy"> + <enum>Qt::ScrollBarAlwaysOff</enum> + </property> + <property name="horizontalScrollBarPolicy"> + <enum>Qt::ScrollBarAsNeeded</enum> + </property> + <property name="undoRedoEnabled"> + <bool>false</bool> + </property> + <property name="lineWrapMode"> + <enum>QPlainTextEdit::NoWrap</enum> + </property> + <property name="plainText"> + <string notr="true"/> + </property> + <property name="tabStopDistance"> + <double>80.000000000000000</double> + </property> + <property name="maximumBlockCount"> + <number>3</number> + </property> + <property name="centerOnScroll"> + <bool>false</bool> + </property> + <property name="placeholderText"> + <string notr="true">0</string> + </property> + </widget> + <widget class="QLabel" name="Over_price"> + <property name="geometry"> + <rect> + <x>20</x> + <y>210</y> + <width>181</width> + <height>17</height> + </rect> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(255, 255, 255);</string> + </property> + <property name="text"> + <string>Наценка, %</string> + </property> + </widget> + <widget class="QLabel" name="weight_plastik"> + <property name="geometry"> + <rect> + <x>20</x> + <y>250</y> + <width>181</width> + <height>17</height> + </rect> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(255, 255, 255);</string> + </property> + <property name="text"> + <string>Вес катушки, гр</string> + </property> + </widget> + <widget class="QComboBox" name="plastik_menu"> + <property name="geometry"> + <rect> + <x>280</x> + <y>250</y> + <width>71</width> + <height>25</height> + </rect> + </property> + <property name="acceptDrops"> + <bool>true</bool> + </property> + <property name="toolTipDuration"> + <number>-1</number> + </property> + <property name="styleSheet"> + <string notr="true">alternate-background-color: rgb(77, 77, 77);</string> + </property> + <property name="currentText"> + <string>1000</string> + </property> + <property name="currentIndex"> + <number>2</number> + </property> + <property name="insertPolicy"> + <enum>QComboBox::NoInsert</enum> + </property> + <property name="placeholderText"> + <string/> + </property> + <item> + <property name="text"> + <string>5000</string> + </property> + </item> + <item> + <property name="text"> + <string>2500</string> + </property> + </item> + <item> + <property name="text"> + <string>1000</string> + </property> + </item> + <item> + <property name="text"> + <string>750</string> + </property> + </item> + <item> + <property name="text"> + <string>500</string> + </property> + </item> + <item> + <property name="text"> + <string>250</string> + </property> + </item> + </widget> + <widget class="QLabel" name="warning_text"> + <property name="geometry"> + <rect> + <x>30</x> + <y>10</y> + <width>311</width> + <height>51</height> + </rect> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(255, 0, 0);</string> + </property> + <property name="text"> + <string>ВНИМАНИЕ! Перед установкой параметра "Коэффициент выбраковки" прочитайте раздел Помощь, с описанием формулы расчета!</string> + </property> + <property name="alignment"> + <set>Qt::AlignHCenter|Qt::AlignTop</set> + </property> + <property name="wordWrap"> + <bool>true</bool> + </property> + </widget> + <widget class="QWidget" name="layoutWidget"> + <property name="geometry"> + <rect> + <x>20</x> + <y>300</y> + <width>331</width> + <height>27</height> + </rect> + </property> + <layout class="QHBoxLayout" name="horizontalLayout"> + <item> + <widget class="QPushButton" name="save"> + <property name="styleSheet"> + <string notr="true">background-color: rgb(0, 80, 0);</string> + </property> + <property name="text"> + <string>Сохранить</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="exit"> + <property name="styleSheet"> + <string notr="true">background-color: rgb(0, 80, 0);</string> + </property> + <property name="text"> + <string>Отмена</string> + </property> + </widget> + </item> + </layout> + </widget> + </widget> + <resources/> + <connections/> +</ui> diff --git a/UI/Updates.ui b/UI/Updates.ui new file mode 100644 index 0000000..b87383b --- /dev/null +++ b/UI/Updates.ui @@ -0,0 +1,129 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>Dialog</class> + <widget class="QDialog" name="Dialog"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>379</width> + <height>99</height> + </rect> + </property> + <property name="windowTitle"> + <string>Updates</string> + </property> + <property name="windowIcon"> + <iconset> + <normaloff>img/logo-1.png</normaloff>img/logo-1.png</iconset> + </property> + <widget class="QLabel" name="label"> + <property name="geometry"> + <rect> + <x>73</x> + <y>0</y> + <width>191</width> + <height>31</height> + </rect> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + </font> + </property> + <property name="text"> + <string>Ваша версия:</string> + </property> + </widget> + <widget class="QLabel" name="label_2"> + <property name="geometry"> + <rect> + <x>70</x> + <y>20</y> + <width>191</width> + <height>31</height> + </rect> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + </font> + </property> + <property name="text"> + <string>Версия на сайте:</string> + </property> + </widget> + <widget class="QLabel" name="label_3"> + <property name="geometry"> + <rect> + <x>250</x> + <y>10</y> + <width>54</width> + <height>17</height> + </rect> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + </font> + </property> + <property name="text"> + <string>1.0.0</string> + </property> + </widget> + <widget class="QLabel" name="label_4"> + <property name="geometry"> + <rect> + <x>250</x> + <y>30</y> + <width>54</width> + <height>17</height> + </rect> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + </font> + </property> + <property name="text"> + <string>1.0.0</string> + </property> + </widget> + <widget class="QWidget" name="layoutWidget"> + <property name="geometry"> + <rect> + <x>20</x> + <y>60</y> + <width>331</width> + <height>27</height> + </rect> + </property> + <layout class="QHBoxLayout" name="horizontalLayout"> + <item> + <widget class="QPushButton" name="pushButton"> + <property name="styleSheet"> + <string notr="true">background-color: rgb(0, 80, 0);</string> + </property> + <property name="text"> + <string>Перейти на сайт</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="pushButton_2"> + <property name="styleSheet"> + <string notr="true">background-color: rgb(0, 80, 0);</string> + </property> + <property name="text"> + <string>Закрыть</string> + </property> + </widget> + </item> + </layout> + </widget> + </widget> + <resources/> + <connections/> +</ui> diff --git a/UI/about.ui b/UI/about.ui new file mode 100644 index 0000000..f91c186 --- /dev/null +++ b/UI/about.ui @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>About</class> + <widget class="QDialog" name="About"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>365</width> + <height>97</height> + </rect> + </property> + <property name="windowTitle"> + <string>О прграмме</string> + </property> + <property name="windowIcon"> + <iconset> + <normaloff>img/logo-1.png</normaloff>img/logo-1.png</iconset> + </property> + <widget class="QLabel" name="label"> + <property name="geometry"> + <rect> + <x>20</x> + <y>10</y> + <width>331</width> + <height>231</height> + </rect> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + </font> + </property> + <property name="text"> + <string>Калькулятор Calc3D by Risen предназначен для быстрой оценки стоимости печати на 3D принтере, +исходя из стоимости пластика, веса, тарифа электроэнергии и прочего...</string> + </property> + <property name="textFormat"> + <enum>Qt::AutoText</enum> + </property> + <property name="scaledContents"> + <bool>false</bool> + </property> + <property name="alignment"> + <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> + </property> + <property name="wordWrap"> + <bool>true</bool> + </property> + </widget> + </widget> + <resources/> + <connections/> +</ui> diff --git a/UI/formula.ui b/UI/formula.ui new file mode 100644 index 0000000..5642c4d --- /dev/null +++ b/UI/formula.ui @@ -0,0 +1,143 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>Dialog</class> + <widget class="QDialog" name="Dialog"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>367</width> + <height>377</height> + </rect> + </property> + <property name="windowTitle"> + <string>Формула расчета</string> + </property> + <property name="windowIcon"> + <iconset> + <normaloff>img/logo-1.png</normaloff>img/logo-1.png</iconset> + </property> + <widget class="QLabel" name="label"> + <property name="geometry"> + <rect> + <x>100</x> + <y>10</y> + <width>171</width> + <height>41</height> + </rect> + </property> + <property name="font"> + <font> + <pointsize>9</pointsize> + </font> + </property> + <property name="text"> + <string>## Формула расчета</string> + </property> + <property name="textFormat"> + <enum>Qt::MarkdownText</enum> + </property> + <property name="alignment"> + <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> + </property> + </widget> + <widget class="QLabel" name="label_2"> + <property name="geometry"> + <rect> + <x>30</x> + <y>50</y> + <width>341</width> + <height>21</height> + </rect> + </property> + <property name="font"> + <font> + <family>Sans Serif</family> + <pointsize>10</pointsize> + <bold>true</bold> + <kerning>false</kerning> + </font> + </property> + <property name="autoFillBackground"> + <bool>false</bool> + </property> + <property name="text"> + <string>S = ((p/1000*t/60*h)+(md*d*st/mk)+(a+post))*x+mod</string> + </property> + <property name="textFormat"> + <enum>Qt::MarkdownText</enum> + </property> + <property name="scaledContents"> + <bool>true</bool> + </property> + <property name="alignment"> + <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + </widget> + <widget class="QLabel" name="label_3"> + <property name="geometry"> + <rect> + <x>10</x> + <y>80</y> + <width>341</width> + <height>281</height> + </rect> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + </font> + </property> + <property name="text"> + <string>где +``` +S - стоимость печати, руб. +p - мощность принтера, Вт +t - время печати, мин. +h - тариф на электроэнергию, кВт/ч +md - вес детали, гр. +d - множитель отбраковки. +st - стоимость катушки пластика, руб. +mk - вес пластика в катушке, гр. +a - амортизация принтера, руб. +post - стоимость постобработки, руб. +х - количество печатаемых дубликатов, шт. +mod - стоимость моделирования, руб +```</string> + </property> + <property name="textFormat"> + <enum>Qt::MarkdownText</enum> + </property> + <property name="scaledContents"> + <bool>false</bool> + </property> + <property name="alignment"> + <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> + </property> + <property name="wordWrap"> + <bool>true</bool> + </property> + </widget> + <widget class="QPushButton" name="pushButton"> + <property name="geometry"> + <rect> + <x>100</x> + <y>340</y> + <width>161</width> + <height>25</height> + </rect> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(0, 80, 0);</string> + </property> + <property name="text"> + <string>Закрыть</string> + </property> + </widget> + </widget> + <resources/> + <connections/> +</ui> diff --git a/UI/preset_settings.ui b/UI/preset_settings.ui new file mode 100644 index 0000000..37849c3 --- /dev/null +++ b/UI/preset_settings.ui @@ -0,0 +1,427 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>addprinter</class> + <widget class="QDialog" name="addprinter"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>375</width> + <height>195</height> + </rect> + </property> + <property name="windowTitle"> + <string>Настройки пресета принтера</string> + </property> + <property name="windowIcon"> + <iconset> + <normaloff>../img/logo-1.png</normaloff>../img/logo-1.png</iconset> + </property> + <widget class="QLabel" name="price_printer"> + <property name="geometry"> + <rect> + <x>20</x> + <y>120</y> + <width>181</width> + <height>17</height> + </rect> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(255, 255, 255);</string> + </property> + <property name="text"> + <string>Стоимость принетра, руб</string> + </property> + </widget> + <widget class="QPlainTextEdit" name="input_prise_printer"> + <property name="geometry"> + <rect> + <x>290</x> + <y>120</y> + <width>71</width> + <height>20</height> + </rect> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + <stylestrategy>PreferAntialias</stylestrategy> + </font> + </property> + <property name="acceptDrops"> + <bool>false</bool> + </property> + <property name="toolTipDuration"> + <number>0</number> + </property> + <property name="whatsThis"> + <string/> + </property> + <property name="autoFillBackground"> + <bool>false</bool> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(77, 77, 77);</string> + </property> + <property name="inputMethodHints"> + <set>Qt::InputMethodHint::ImhDigitsOnly</set> + </property> + <property name="lineWidth"> + <number>0</number> + </property> + <property name="verticalScrollBarPolicy"> + <enum>Qt::ScrollBarPolicy::ScrollBarAlwaysOff</enum> + </property> + <property name="horizontalScrollBarPolicy"> + <enum>Qt::ScrollBarPolicy::ScrollBarAsNeeded</enum> + </property> + <property name="undoRedoEnabled"> + <bool>false</bool> + </property> + <property name="lineWrapMode"> + <enum>QPlainTextEdit::LineWrapMode::NoWrap</enum> + </property> + <property name="plainText"> + <string notr="true"/> + </property> + <property name="tabStopDistance"> + <double>80.000000000000000</double> + </property> + <property name="maximumBlockCount"> + <number>3</number> + </property> + <property name="centerOnScroll"> + <bool>false</bool> + </property> + <property name="placeholderText"> + <string notr="true">0</string> + </property> + </widget> + <widget class="QLabel" name="power_printer"> + <property name="geometry"> + <rect> + <x>20</x> + <y>60</y> + <width>181</width> + <height>17</height> + </rect> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(255, 255, 255);</string> + </property> + <property name="text"> + <string>Мощность принтера, Вт</string> + </property> + </widget> + <widget class="QWidget" name="layoutWidget"> + <property name="geometry"> + <rect> + <x>20</x> + <y>160</y> + <width>341</width> + <height>27</height> + </rect> + </property> + <layout class="QHBoxLayout" name="horizontalLayout"> + <item> + <widget class="QPushButton" name="save"> + <property name="styleSheet"> + <string notr="true">background-color: rgb(0, 80, 0);</string> + </property> + <property name="text"> + <string>Сохранить</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="cancel"> + <property name="styleSheet"> + <string notr="true">background-color: rgb(0, 80, 0);</string> + </property> + <property name="text"> + <string>Отмена</string> + </property> + </widget> + </item> + </layout> + </widget> + <widget class="QPlainTextEdit" name="input_time_to_use"> + <property name="geometry"> + <rect> + <x>290</x> + <y>90</y> + <width>71</width> + <height>20</height> + </rect> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + <stylestrategy>PreferAntialias</stylestrategy> + </font> + </property> + <property name="acceptDrops"> + <bool>false</bool> + </property> + <property name="toolTipDuration"> + <number>0</number> + </property> + <property name="whatsThis"> + <string/> + </property> + <property name="autoFillBackground"> + <bool>false</bool> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(77, 77, 77);</string> + </property> + <property name="inputMethodHints"> + <set>Qt::InputMethodHint::ImhDigitsOnly</set> + </property> + <property name="lineWidth"> + <number>0</number> + </property> + <property name="verticalScrollBarPolicy"> + <enum>Qt::ScrollBarPolicy::ScrollBarAlwaysOff</enum> + </property> + <property name="horizontalScrollBarPolicy"> + <enum>Qt::ScrollBarPolicy::ScrollBarAsNeeded</enum> + </property> + <property name="undoRedoEnabled"> + <bool>false</bool> + </property> + <property name="lineWrapMode"> + <enum>QPlainTextEdit::LineWrapMode::NoWrap</enum> + </property> + <property name="plainText"> + <string notr="true"/> + </property> + <property name="tabStopDistance"> + <double>80.000000000000000</double> + </property> + <property name="maximumBlockCount"> + <number>3</number> + </property> + <property name="centerOnScroll"> + <bool>false</bool> + </property> + <property name="placeholderText"> + <string notr="true">0</string> + </property> + </widget> + <widget class="QPlainTextEdit" name="input_power"> + <property name="geometry"> + <rect> + <x>290</x> + <y>60</y> + <width>71</width> + <height>20</height> + </rect> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + <stylestrategy>PreferAntialias</stylestrategy> + </font> + </property> + <property name="acceptDrops"> + <bool>false</bool> + </property> + <property name="toolTipDuration"> + <number>0</number> + </property> + <property name="whatsThis"> + <string/> + </property> + <property name="autoFillBackground"> + <bool>false</bool> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(77, 77, 77);</string> + </property> + <property name="inputMethodHints"> + <set>Qt::InputMethodHint::ImhDigitsOnly</set> + </property> + <property name="lineWidth"> + <number>0</number> + </property> + <property name="verticalScrollBarPolicy"> + <enum>Qt::ScrollBarPolicy::ScrollBarAlwaysOff</enum> + </property> + <property name="horizontalScrollBarPolicy"> + <enum>Qt::ScrollBarPolicy::ScrollBarAsNeeded</enum> + </property> + <property name="undoRedoEnabled"> + <bool>false</bool> + </property> + <property name="lineWrapMode"> + <enum>QPlainTextEdit::LineWrapMode::NoWrap</enum> + </property> + <property name="plainText"> + <string notr="true"/> + </property> + <property name="tabStopDistance"> + <double>80.000000000000000</double> + </property> + <property name="maximumBlockCount"> + <number>3</number> + </property> + <property name="centerOnScroll"> + <bool>false</bool> + </property> + <property name="placeholderText"> + <string notr="true">0</string> + </property> + </widget> + <widget class="QTextEdit" name="Input_name_printer"> + <property name="enabled"> + <bool>true</bool> + </property> + <property name="geometry"> + <rect> + <x>180</x> + <y>20</y> + <width>181</width> + <height>21</height> + </rect> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <stylestrategy>PreferAntialias</stylestrategy> + <kerning>false</kerning> + </font> + </property> + <property name="tabletTracking"> + <bool>false</bool> + </property> + <property name="acceptDrops"> + <bool>true</bool> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(77, 77, 77);</string> + </property> + <property name="frameShape"> + <enum>QFrame::Shape::NoFrame</enum> + </property> + <property name="frameShadow"> + <enum>QFrame::Shadow::Sunken</enum> + </property> + <property name="verticalScrollBarPolicy"> + <enum>Qt::ScrollBarPolicy::ScrollBarAlwaysOff</enum> + </property> + <property name="horizontalScrollBarPolicy"> + <enum>Qt::ScrollBarPolicy::ScrollBarAlwaysOff</enum> + </property> + <property name="autoFormatting"> + <set>QTextEdit::AutoFormattingFlag::AutoBulletList</set> + </property> + <property name="tabChangesFocus"> + <bool>true</bool> + </property> + <property name="documentTitle"> + <string notr="true"/> + </property> + <property name="undoRedoEnabled"> + <bool>false</bool> + </property> + <property name="lineWrapMode"> + <enum>QTextEdit::LineWrapMode::WidgetWidth</enum> + </property> + <property name="markdown"> + <string/> + </property> + <property name="acceptRichText"> + <bool>false</bool> + </property> + <property name="cursorWidth"> + <number>1</number> + </property> + <property name="textInteractionFlags"> + <set>Qt::TextInteractionFlag::TextEditorInteraction</set> + </property> + <property name="placeholderText"> + <string>Название принтера</string> + </property> + </widget> + <widget class="QLabel" name="time_to_use"> + <property name="geometry"> + <rect> + <x>20</x> + <y>90</y> + <width>261</width> + <height>17</height> + </rect> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(255, 255, 255);</string> + </property> + <property name="text"> + <string>Срок полезного использования, лет</string> + </property> + </widget> + <widget class="QLabel" name="name_printer"> + <property name="geometry"> + <rect> + <x>20</x> + <y>20</y> + <width>181</width> + <height>17</height> + </rect> + </property> + <property name="font"> + <font> + <pointsize>10</pointsize> + <bold>true</bold> + </font> + </property> + <property name="styleSheet"> + <string notr="true">color: rgb(255, 255, 255);</string> + </property> + <property name="text"> + <string>Название пресета</string> + </property> + </widget> + </widget> + <resources/> + <connections/> +</ui>