/
Hyperion
/
cpp-calculator
Обзор
Документация
Войти
/
Hyperion
/
cpp-calculator
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
submission/mainwindow.ui
542 строки
16 KB
Pavel Galkin
проект прошел тесты
31 авг 2025, 07:12
31 авг 2025, 07:12
104a7e0
Код
Авторство
О чём код?
<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>MainWindow</class> <widget class="QMainWindow" name="MainWindow"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>305</width> <height>412</height> </rect> </property> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="font"> <font> <pointsize>14</pointsize> </font> </property> <property name="windowTitle"> <string>Калькулятор</string> </property> <widget class="QWidget" name="centralwidget"> <layout class="QGridLayout" name="gridLayout" rowstretch="0,0,0" columnstretch="0"> <item row="1" column="0"> <layout class="QHBoxLayout" name="horizontalLayout" stretch="0,0"> <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> <item> <widget class="QLabel" name="l_memory"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="text"> <string/> </property> </widget> </item> <item> <widget class="QLabel" name="l_result"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="text"> <string/> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> </item> </layout> </item> <item row="0" column="0"> <widget class="QLabel" name="l_formula"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="text"> <string/> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> </item> <item row="2" column="0"> <layout class="QGridLayout" name="gridLayout_2" rowstretch="0,0,0,0,0,1" columnstretch="0,0,0,1" rowminimumheight="0,1,0,0,1,0" columnminimumwidth="0,0,0,1"> <item row="2" column="2"> <widget class="QPushButton" name="pb_nine"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>40</width> <height>50</height> </size> </property> <property name="text"> <string>9</string> </property> </widget> </item> <item row="3" column="0"> <widget class="QPushButton" name="pb_four"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>40</width> <height>50</height> </size> </property> <property name="text"> <string>4</string> </property> </widget> </item> <item row="0" column="0"> <widget class="QPushButton" name="pb_memory_clear"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>40</width> <height>35</height> </size> </property> <property name="text"> <string>MC</string> </property> </widget> </item> <item row="1" column="3"> <widget class="QPushButton" name="pb_division"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>50</width> <height>50</height> </size> </property> <property name="text"> <string>÷</string> </property> </widget> </item> <item row="2" column="0"> <widget class="QPushButton" name="pb_seven"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>40</width> <height>50</height> </size> </property> <property name="text"> <string>7</string> </property> </widget> </item> <item row="1" column="0" colspan="2"> <widget class="QPushButton" name="pb_clear"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>40</width> <height>50</height> </size> </property> <property name="text"> <string>C</string> </property> </widget> </item> <item row="0" column="2"> <widget class="QPushButton" name="pb_save_number"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>40</width> <height>35</height> </size> </property> <property name="text"> <string>MS</string> </property> </widget> </item> <item row="2" column="1"> <widget class="QPushButton" name="pb_eight"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>40</width> <height>50</height> </size> </property> <property name="text"> <string>8</string> </property> </widget> </item> <item row="0" column="3"> <widget class="QPushButton" name="pb_pow"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>50</width> <height>35</height> </size> </property> <property name="text"> <string>xʸ</string> </property> </widget> </item> <item row="2" column="3"> <widget class="QPushButton" name="pb_multiply"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>50</width> <height>50</height> </size> </property> <property name="text"> <string>×</string> </property> </widget> </item> <item row="0" column="1"> <widget class="QPushButton" name="pb_memory_read"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>40</width> <height>35</height> </size> </property> <property name="text"> <string>MR</string> </property> </widget> </item> <item row="1" column="2"> <widget class="QPushButton" name="pb_change_of_sign"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>40</width> <height>50</height> </size> </property> <property name="text"> <string>±</string> </property> </widget> </item> <item row="4" column="0"> <widget class="QPushButton" name="pb_one"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>40</width> <height>50</height> </size> </property> <property name="text"> <string>1</string> </property> </widget> </item> <item row="5" column="0"> <widget class="QPushButton" name="pb_dot"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>40</width> <height>50</height> </size> </property> <property name="text"> <string>.</string> </property> </widget> </item> <item row="3" column="1"> <widget class="QPushButton" name="pb_five"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>40</width> <height>50</height> </size> </property> <property name="text"> <string>5</string> </property> </widget> </item> <item row="3" column="2"> <widget class="QPushButton" name="pb_six"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>40</width> <height>50</height> </size> </property> <property name="text"> <string>6</string> </property> </widget> </item> <item row="3" column="3"> <widget class="QPushButton" name="pb_substraction"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>50</width> <height>50</height> </size> </property> <property name="text"> <string>−</string> </property> </widget> </item> <item row="4" column="1"> <widget class="QPushButton" name="pb_two"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>40</width> <height>50</height> </size> </property> <property name="text"> <string>2</string> </property> </widget> </item> <item row="5" column="1"> <widget class="QPushButton" name="pb_zero"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>40</width> <height>50</height> </size> </property> <property name="text"> <string>0</string> </property> </widget> </item> <item row="4" column="2"> <widget class="QPushButton" name="pb_three"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>40</width> <height>50</height> </size> </property> <property name="text"> <string>3</string> </property> </widget> </item> <item row="4" column="3"> <widget class="QPushButton" name="pb_add"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>50</width> <height>50</height> </size> </property> <property name="text"> <string>+</string> </property> </widget> </item> <item row="5" column="3"> <widget class="QPushButton" name="pb_result"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>50</width> <height>50</height> </size> </property> <property name="baseSize"> <size> <width>60</width> <height>0</height> </size> </property> <property name="text"> <string>=</string> </property> </widget> </item> <item row="5" column="2"> <widget class="QPushButton" name="pb_delete"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>40</width> <height>50</height> </size> </property> <property name="text"> <string>⌫</string> </property> </widget> </item> </layout> </item> </layout> </widget> </widget> <resources/> <connections/> </ui>