710 lines
18 KiB
XML
710 lines
18 KiB
XML
<?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>390</width>
|
||
<height>377</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,0,0,0,0,0,0,0,0" columnstretch="0,0,0,0,0,0,0">
|
||
<item row="1" column="1" colspan="6">
|
||
<widget class="QLabel" name="l_formula">
|
||
<property name="font">
|
||
<font>
|
||
<pointsize>10</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>l_formula</string>
|
||
</property>
|
||
<property name="alignment">
|
||
<set>Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter</set>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="7" column="0">
|
||
<widget class="QPushButton" name="tb_four">
|
||
<property name="sizePolicy">
|
||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||
<horstretch>0</horstretch>
|
||
<verstretch>0</verstretch>
|
||
</sizepolicy>
|
||
</property>
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>0</width>
|
||
<height>0</height>
|
||
</size>
|
||
</property>
|
||
<property name="font">
|
||
<font>
|
||
<family>Arial Narrow</family>
|
||
<pointsize>14</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>4</string>
|
||
</property>
|
||
<property name="shortcut">
|
||
<string>4</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="1" column="0">
|
||
<widget class="QComboBox" name="cmb_controller">
|
||
<property name="sizePolicy">
|
||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||
<horstretch>0</horstretch>
|
||
<verstretch>0</verstretch>
|
||
</sizepolicy>
|
||
</property>
|
||
<item>
|
||
<property name="text">
|
||
<string>double</string>
|
||
</property>
|
||
</item>
|
||
<item>
|
||
<property name="text">
|
||
<string>float</string>
|
||
</property>
|
||
</item>
|
||
<item>
|
||
<property name="text">
|
||
<string>uint8_t</string>
|
||
</property>
|
||
</item>
|
||
<item>
|
||
<property name="text">
|
||
<string>int</string>
|
||
</property>
|
||
</item>
|
||
<item>
|
||
<property name="text">
|
||
<string>int64_t</string>
|
||
</property>
|
||
</item>
|
||
<item>
|
||
<property name="text">
|
||
<string>size_t</string>
|
||
</property>
|
||
</item>
|
||
<item>
|
||
<property name="text">
|
||
<string>Rational</string>
|
||
</property>
|
||
</item>
|
||
</widget>
|
||
</item>
|
||
<item row="9" column="4">
|
||
<widget class="QPushButton" name="tb_add">
|
||
<property name="sizePolicy">
|
||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||
<horstretch>0</horstretch>
|
||
<verstretch>0</verstretch>
|
||
</sizepolicy>
|
||
</property>
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>0</width>
|
||
<height>0</height>
|
||
</size>
|
||
</property>
|
||
<property name="font">
|
||
<font>
|
||
<family>Arial Narrow</family>
|
||
<pointsize>14</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>+</string>
|
||
</property>
|
||
<property name="shortcut">
|
||
<string>+</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="9" column="0">
|
||
<widget class="QPushButton" name="tb_one">
|
||
<property name="sizePolicy">
|
||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||
<horstretch>0</horstretch>
|
||
<verstretch>0</verstretch>
|
||
</sizepolicy>
|
||
</property>
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>0</width>
|
||
<height>0</height>
|
||
</size>
|
||
</property>
|
||
<property name="font">
|
||
<font>
|
||
<family>Arial Narrow</family>
|
||
<pointsize>14</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>1</string>
|
||
</property>
|
||
<property name="shortcut">
|
||
<string>1</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="10" column="2">
|
||
<widget class="QPushButton" name="tb_backspace">
|
||
<property name="sizePolicy">
|
||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||
<horstretch>0</horstretch>
|
||
<verstretch>0</verstretch>
|
||
</sizepolicy>
|
||
</property>
|
||
<property name="text">
|
||
<string>⌫</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="7" column="2">
|
||
<widget class="QPushButton" name="tb_six">
|
||
<property name="sizePolicy">
|
||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||
<horstretch>0</horstretch>
|
||
<verstretch>0</verstretch>
|
||
</sizepolicy>
|
||
</property>
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>0</width>
|
||
<height>0</height>
|
||
</size>
|
||
</property>
|
||
<property name="font">
|
||
<font>
|
||
<family>Arial Narrow</family>
|
||
<pointsize>14</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>6</string>
|
||
</property>
|
||
<property name="shortcut">
|
||
<string>6</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="9" column="2">
|
||
<widget class="QPushButton" name="tb_three">
|
||
<property name="sizePolicy">
|
||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||
<horstretch>0</horstretch>
|
||
<verstretch>0</verstretch>
|
||
</sizepolicy>
|
||
</property>
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>0</width>
|
||
<height>0</height>
|
||
</size>
|
||
</property>
|
||
<property name="font">
|
||
<font>
|
||
<family>Arial Narrow</family>
|
||
<pointsize>14</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>3</string>
|
||
</property>
|
||
<property name="shortcut">
|
||
<string>3</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="7" column="4">
|
||
<widget class="QPushButton" name="tb_substract">
|
||
<property name="sizePolicy">
|
||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||
<horstretch>0</horstretch>
|
||
<verstretch>0</verstretch>
|
||
</sizepolicy>
|
||
</property>
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>0</width>
|
||
<height>0</height>
|
||
</size>
|
||
</property>
|
||
<property name="font">
|
||
<font>
|
||
<family>Arial Narrow</family>
|
||
<pointsize>14</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>−</string>
|
||
</property>
|
||
<property name="shortcut">
|
||
<string>-</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="6" column="2">
|
||
<widget class="QPushButton" name="tb_nine">
|
||
<property name="sizePolicy">
|
||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||
<horstretch>0</horstretch>
|
||
<verstretch>0</verstretch>
|
||
</sizepolicy>
|
||
</property>
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>0</width>
|
||
<height>0</height>
|
||
</size>
|
||
</property>
|
||
<property name="font">
|
||
<font>
|
||
<family>Arial Narrow</family>
|
||
<pointsize>14</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>9</string>
|
||
</property>
|
||
<property name="shortcut">
|
||
<string>9</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="9" column="1">
|
||
<widget class="QPushButton" name="tb_two">
|
||
<property name="sizePolicy">
|
||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||
<horstretch>0</horstretch>
|
||
<verstretch>0</verstretch>
|
||
</sizepolicy>
|
||
</property>
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>0</width>
|
||
<height>0</height>
|
||
</size>
|
||
</property>
|
||
<property name="font">
|
||
<font>
|
||
<family>Arial Narrow</family>
|
||
<pointsize>14</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>2</string>
|
||
</property>
|
||
<property name="shortcut">
|
||
<string>2</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="3" column="4">
|
||
<widget class="QPushButton" name="tb_power">
|
||
<property name="text">
|
||
<string>xʸ</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="5" column="2">
|
||
<widget class="QPushButton" name="tb_negate">
|
||
<property name="sizePolicy">
|
||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||
<horstretch>0</horstretch>
|
||
<verstretch>0</verstretch>
|
||
</sizepolicy>
|
||
</property>
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>0</width>
|
||
<height>0</height>
|
||
</size>
|
||
</property>
|
||
<property name="font">
|
||
<font>
|
||
<family>Arial Narrow</family>
|
||
<pointsize>14</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>±</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="6" column="1">
|
||
<widget class="QPushButton" name="tb_eight">
|
||
<property name="sizePolicy">
|
||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||
<horstretch>0</horstretch>
|
||
<verstretch>0</verstretch>
|
||
</sizepolicy>
|
||
</property>
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>0</width>
|
||
<height>0</height>
|
||
</size>
|
||
</property>
|
||
<property name="font">
|
||
<font>
|
||
<family>Arial Narrow</family>
|
||
<pointsize>14</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>8</string>
|
||
</property>
|
||
<property name="shortcut">
|
||
<string>8</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="3" column="0">
|
||
<widget class="QPushButton" name="tb_mc">
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>0</width>
|
||
<height>0</height>
|
||
</size>
|
||
</property>
|
||
<property name="font">
|
||
<font>
|
||
<family>Arial Narrow</family>
|
||
<pointsize>14</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>MC</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="10" column="0">
|
||
<widget class="QPushButton" name="tb_extra">
|
||
<property name="sizePolicy">
|
||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||
<horstretch>0</horstretch>
|
||
<verstretch>0</verstretch>
|
||
</sizepolicy>
|
||
</property>
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>0</width>
|
||
<height>0</height>
|
||
</size>
|
||
</property>
|
||
<property name="font">
|
||
<font>
|
||
<family>Arial Narrow</family>
|
||
<pointsize>14</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>.</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="3" column="2">
|
||
<widget class="QPushButton" name="tb_ms">
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>0</width>
|
||
<height>0</height>
|
||
</size>
|
||
</property>
|
||
<property name="font">
|
||
<font>
|
||
<family>Arial Narrow</family>
|
||
<pointsize>14</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>MS</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="10" column="1">
|
||
<widget class="QPushButton" name="tb_zero">
|
||
<property name="sizePolicy">
|
||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||
<horstretch>0</horstretch>
|
||
<verstretch>0</verstretch>
|
||
</sizepolicy>
|
||
</property>
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>0</width>
|
||
<height>0</height>
|
||
</size>
|
||
</property>
|
||
<property name="font">
|
||
<font>
|
||
<family>Arial Narrow</family>
|
||
<pointsize>14</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>0</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="5" column="4">
|
||
<widget class="QPushButton" name="tb_divide">
|
||
<property name="sizePolicy">
|
||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||
<horstretch>0</horstretch>
|
||
<verstretch>0</verstretch>
|
||
</sizepolicy>
|
||
</property>
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>0</width>
|
||
<height>0</height>
|
||
</size>
|
||
</property>
|
||
<property name="font">
|
||
<font>
|
||
<family>Arial Narrow</family>
|
||
<pointsize>14</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>÷</string>
|
||
</property>
|
||
<property name="shortcut">
|
||
<string>/</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="7" column="1">
|
||
<widget class="QPushButton" name="tb_five">
|
||
<property name="sizePolicy">
|
||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||
<horstretch>0</horstretch>
|
||
<verstretch>0</verstretch>
|
||
</sizepolicy>
|
||
</property>
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>0</width>
|
||
<height>0</height>
|
||
</size>
|
||
</property>
|
||
<property name="font">
|
||
<font>
|
||
<family>Arial Narrow</family>
|
||
<pointsize>14</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>5</string>
|
||
</property>
|
||
<property name="shortcut">
|
||
<string>5</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="5" column="0" colspan="2">
|
||
<widget class="QPushButton" name="tb_reset">
|
||
<property name="sizePolicy">
|
||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||
<horstretch>0</horstretch>
|
||
<verstretch>0</verstretch>
|
||
</sizepolicy>
|
||
</property>
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>0</width>
|
||
<height>0</height>
|
||
</size>
|
||
</property>
|
||
<property name="font">
|
||
<font>
|
||
<family>Arial Narrow</family>
|
||
<pointsize>14</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>C</string>
|
||
</property>
|
||
<property name="shortcut">
|
||
<string>Esc</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="3" column="1">
|
||
<widget class="QPushButton" name="tn_mr">
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>0</width>
|
||
<height>0</height>
|
||
</size>
|
||
</property>
|
||
<property name="font">
|
||
<font>
|
||
<family>Arial Narrow</family>
|
||
<pointsize>14</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>MR</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="2" column="0" colspan="7">
|
||
<layout class="QHBoxLayout" name="horizontalLayout" stretch="0,1">
|
||
<item>
|
||
<widget class="QLabel" name="l_memory">
|
||
<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="text">
|
||
<string>l_memory</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<widget class="QLabel" name="l_result">
|
||
<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="text">
|
||
<string>l_result</string>
|
||
</property>
|
||
<property name="alignment">
|
||
<set>Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter</set>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
</layout>
|
||
</item>
|
||
<item row="6" column="0">
|
||
<widget class="QPushButton" name="tb_seven">
|
||
<property name="sizePolicy">
|
||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||
<horstretch>0</horstretch>
|
||
<verstretch>0</verstretch>
|
||
</sizepolicy>
|
||
</property>
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>0</width>
|
||
<height>0</height>
|
||
</size>
|
||
</property>
|
||
<property name="font">
|
||
<font>
|
||
<family>Arial Narrow</family>
|
||
<pointsize>14</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>7</string>
|
||
</property>
|
||
<property name="shortcut">
|
||
<string>7</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="10" column="4">
|
||
<widget class="QPushButton" name="tb_equal">
|
||
<property name="sizePolicy">
|
||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||
<horstretch>0</horstretch>
|
||
<verstretch>0</verstretch>
|
||
</sizepolicy>
|
||
</property>
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>0</width>
|
||
<height>0</height>
|
||
</size>
|
||
</property>
|
||
<property name="font">
|
||
<font>
|
||
<family>Arial Narrow</family>
|
||
<pointsize>14</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>=</string>
|
||
</property>
|
||
<property name="shortcut">
|
||
<string>Enter</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item row="6" column="4">
|
||
<widget class="QPushButton" name="tb_multiplicate">
|
||
<property name="sizePolicy">
|
||
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
||
<horstretch>0</horstretch>
|
||
<verstretch>0</verstretch>
|
||
</sizepolicy>
|
||
</property>
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>0</width>
|
||
<height>0</height>
|
||
</size>
|
||
</property>
|
||
<property name="font">
|
||
<font>
|
||
<family>Arial Narrow</family>
|
||
<pointsize>14</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>×</string>
|
||
</property>
|
||
<property name="shortcut">
|
||
<string>*</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
</layout>
|
||
</widget>
|
||
</widget>
|
||
<resources/>
|
||
<connections/>
|
||
</ui>
|