# -*- coding: utf-8 -*-

# Resource object code
#
# Created: Mo. Apr. 28 00:55:51 2014
#      by: The Resource Compiler for PySide (Qt v4.8.5)
#
# WARNING! All changes made in this file will be lost!

from PySide import QtCore

qt_resource_data = b"\x00\x00\x224<ui version=\x224.0\x22 >\x0a <class>Calculator</class>\x0a <widget class=\x22QWidget\x22 name=\x22Calculator\x22 >\x0a  <property name=\x22geometry\x22 >\x0a   <rect>\x0a    <x>0</x>\x0a    <y>0</y>\x0a    <width>314</width>\x0a    <height>301</height>\x0a   </rect>\x0a  </property>\x0a  <property name=\x22sizePolicy\x22 >\x0a   <sizepolicy vsizetype=\x22Fixed\x22 hsizetype=\x22Fixed\x22 >\x0a    <horstretch>0</horstretch>\x0a    <verstretch>0</verstretch>\x0a   </sizepolicy>\x0a  </property>\x0a  <property name=\x22minimumSize\x22 >\x0a   <size>\x0a    <width>314</width>\x0a    <height>301</height>\x0a   </size>\x0a  </property>\x0a  <property name=\x22maximumSize\x22 >\x0a   <size>\x0a    <width>314</width>\x0a    <height>301</height>\x0a   </size>\x0a  </property>\x0a  <property name=\x22windowTitle\x22 >\x0a   <string>Calculator</string>\x0a  </property>\x0a  <widget class=\x22QToolButton\x22 name=\x22backspaceButton\x22 >\x0a   <property name=\x22geometry\x22 >\x0a    <rect>\x0a     <x>10</x>\x0a     <y>50</y>\x0a     <width>91</width>\x0a     <height>41</height>\x0a    </rect>\x0a   </property>\x0a   <property name=\x22text\x22 >\x0a    <string>Backspace</string>\x0a   </property>\x0a  </widget>\x0a  <widget class=\x22QToolButton\x22 name=\x22clearButton\x22 >\x0a   <property name=\x22geometry\x22 >\x0a    <rect>\x0a     <x>110</x>\x0a     <y>50</y>\x0a     <width>91</width>\x0a     <height>41</height>\x0a    </rect>\x0a   </property>\x0a   <property name=\x22text\x22 >\x0a    <string>Clear</string>\x0a   </property>\x0a  </widget>\x0a  <widget class=\x22QToolButton\x22 name=\x22clearAllButton\x22 >\x0a   <property name=\x22geometry\x22 >\x0a    <rect>\x0a     <x>210</x>\x0a     <y>50</y>\x0a     <width>91</width>\x0a     <height>41</height>\x0a    </rect>\x0a   </property>\x0a   <property name=\x22text\x22 >\x0a    <string>Clear All</string>\x0a   </property>\x0a  </widget>\x0a  <widget class=\x22QToolButton\x22 name=\x22clearMemoryButton\x22 >\x0a   <property name=\x22geometry\x22 >\x0a    <rect>\x0a     <x>10</x>\x0a     <y>100</y>\x0a     <width>41</width>\x0a     <height>41</height>\x0a    </rect>\x0a   </property>\x0a   <property name=\x22text\x22 >\x0a    <string>MC</string>\x0a   </property>\x0a  </widget>\x0a  <widget class=\x22QToolButton\x22 name=\x22readMemoryButton\x22 >\x0a   <property name=\x22geometry\x22 >\x0a    <rect>\x0a     <x>10</x>\x0a     <y>150</y>\x0a     <width>41</width>\x0a     <height>41</height>\x0a    </rect>\x0a   </property>\x0a   <property name=\x22text\x22 >\x0a    <string>MR</string>\x0a   </property>\x0a  </widget>\x0a  <widget class=\x22QToolButton\x22 name=\x22setMemoryButton\x22 >\x0a   <property name=\x22geometry\x22 >\x0a    <rect>\x0a     <x>10</x>\x0a     <y>200</y>\x0a     <width>41</width>\x0a     <height>41</height>\x0a    </rect>\x0a   </property>\x0a   <property name=\x22text\x22 >\x0a    <string>MS</string>\x0a   </property>\x0a  </widget>\x0a  <widget class=\x22QToolButton\x22 name=\x22addToMemoryButton\x22 >\x0a   <property name=\x22geometry\x22 >\x0a    <rect>\x0a     <x>10</x>\x0a     <y>250</y>\x0a     <width>41</width>\x0a     <height>41</height>\x0a    </rect>\x0a   </property>\x0a   <property name=\x22text\x22 >\x0a    <string>M+</string>\x0a   </property>\x0a  </widget>\x0a  <widget class=\x22QToolButton\x22 name=\x22sevenButton\x22 >\x0a   <property name=\x22geometry\x22 >\x0a    <rect>\x0a     <x>60</x>\x0a     <y>100</y>\x0a     <width>41</width>\x0a     <height>41</height>\x0a    </rect>\x0a   </property>\x0a   <property name=\x22text\x22 >\x0a    <string>7</string>\x0a   </property>\x0a  </widget>\x0a  <widget class=\x22QToolButton\x22 name=\x22eightButton\x22 >\x0a   <property name=\x22geometry\x22 >\x0a    <rect>\x0a     <x>110</x>\x0a     <y>100</y>\x0a     <width>41</width>\x0a     <height>41</height>\x0a    </rect>\x0a   </property>\x0a   <property name=\x22text\x22 >\x0a    <string>8</string>\x0a   </property>\x0a  </widget>\x0a  <widget class=\x22QToolButton\x22 name=\x22nineButton\x22 >\x0a   <property name=\x22geometry\x22 >\x0a    <rect>\x0a     <x>160</x>\x0a     <y>100</y>\x0a     <width>41</width>\x0a     <height>41</height>\x0a    </rect>\x0a   </property>\x0a   <property name=\x22text\x22 >\x0a    <string>9</string>\x0a   </property>\x0a  </widget>\x0a  <widget class=\x22QToolButton\x22 name=\x22fourButton\x22 >\x0a   <property name=\x22geometry\x22 >\x0a    <rect>\x0a     <x>60</x>\x0a     <y>150</y>\x0a     <width>41</width>\x0a     <height>41</height>\x0a    </rect>\x0a   </property>\x0a   <property name=\x22text\x22 >\x0a    <string>4</string>\x0a   </property>\x0a  </widget>\x0a  <widget class=\x22QToolButton\x22 name=\x22fiveButton\x22 >\x0a   <property name=\x22geometry\x22 >\x0a    <rect>\x0a     <x>110</x>\x0a     <y>150</y>\x0a     <width>41</width>\x0a     <height>41</height>\x0a    </rect>\x0a   </property>\x0a   <property name=\x22text\x22 >\x0a    <string>5</string>\x0a   </property>\x0a  </widget>\x0a  <widget class=\x22QToolButton\x22 name=\x22sixButton\x22 >\x0a   <property name=\x22geometry\x22 >\x0a    <rect>\x0a     <x>160</x>\x0a     <y>150</y>\x0a     <width>41</width>\x0a     <height>41</height>\x0a    </rect>\x0a   </property>\x0a   <property name=\x22text\x22 >\x0a    <string>6</string>\x0a   </property>\x0a  </widget>\x0a  <widget class=\x22QToolButton\x22 name=\x22oneButton\x22 >\x0a   <property name=\x22geometry\x22 >\x0a    <rect>\x0a     <x>60</x>\x0a     <y>200</y>\x0a     <width>41</width>\x0a     <height>41</height>\x0a    </rect>\x0a   </property>\x0a   <property name=\x22text\x22 >\x0a    <string>1</string>\x0a   </property>\x0a  </widget>\x0a  <widget class=\x22QToolButton\x22 name=\x22twoButton\x22 >\x0a   <property name=\x22geometry\x22 >\x0a    <rect>\x0a     <x>110</x>\x0a     <y>200</y>\x0a     <width>41</width>\x0a     <height>41</height>\x0a    </rect>\x0a   </property>\x0a   <property name=\x22text\x22 >\x0a    <string>2</string>\x0a   </property>\x0a  </widget>\x0a  <widget class=\x22QToolButton\x22 name=\x22threeButton\x22 >\x0a   <property name=\x22geometry\x22 >\x0a    <rect>\x0a     <x>160</x>\x0a     <y>200</y>\x0a     <width>41</width>\x0a     <height>41</height>\x0a    </rect>\x0a   </property>\x0a   <property name=\x22text\x22 >\x0a    <string>3</string>\x0a   </property>\x0a  </widget>\x0a  <widget class=\x22QToolButton\x22 name=\x22zeroButton\x22 >\x0a   <property name=\x22geometry\x22 >\x0a    <rect>\x0a     <x>60</x>\x0a     <y>250</y>\x0a     <width>41</width>\x0a     <height>41</height>\x0a    </rect>\x0a   </property>\x0a   <property name=\x22text\x22 >\x0a    <string>0</string>\x0a   </property>\x0a  </widget>\x0a  <widget class=\x22QToolButton\x22 name=\x22pointButton\x22 >\x0a   <property name=\x22geometry\x22 >\x0a    <rect>\x0a     <x>110</x>\x0a     <y>250</y>\x0a     <width>41</width>\x0a     <height>41</height>\x0a    </rect>\x0a   </property>\x0a   <property name=\x22text\x22 >\x0a    <string>.</string>\x0a   </property>\x0a  </widget>\x0a  <widget class=\x22QToolButton\x22 name=\x22changeSignButton\x22 >\x0a   <property name=\x22geometry\x22 >\x0a    <rect>\x0a     <x>160</x>\x0a     <y>250</y>\x0a     <width>41</width>\x0a     <height>41</height>\x0a    </rect>\x0a   </property>\x0a   <property name=\x22text\x22 >\x0a    <string>+-</string>\x0a   </property>\x0a  </widget>\x0a  <widget class=\x22QToolButton\x22 name=\x22plusButton\x22 >\x0a   <property name=\x22geometry\x22 >\x0a    <rect>\x0a     <x>210</x>\x0a     <y>250</y>\x0a     <width>41</width>\x0a     <height>41</height>\x0a    </rect>\x0a   </property>\x0a   <property name=\x22text\x22 >\x0a    <string>+</string>\x0a   </property>\x0a  </widget>\x0a  <widget class=\x22QToolButton\x22 name=\x22divisionButton\x22 >\x0a   <property name=\x22geometry\x22 >\x0a    <rect>\x0a     <x>210</x>\x0a     <y>100</y>\x0a     <width>41</width>\x0a     <height>41</height>\x0a    </rect>\x0a   </property>\x0a   <property name=\x22text\x22 >\x0a    <string>/</string>\x0a   </property>\x0a  </widget>\x0a  <widget class=\x22QToolButton\x22 name=\x22timesButton\x22 >\x0a   <property name=\x22geometry\x22 >\x0a    <rect>\x0a     <x>210</x>\x0a     <y>150</y>\x0a     <width>41</width>\x0a     <height>41</height>\x0a    </rect>\x0a   </property>\x0a   <property name=\x22text\x22 >\x0a    <string>*</string>\x0a   </property>\x0a  </widget>\x0a  <widget class=\x22QToolButton\x22 name=\x22minusButton\x22 >\x0a   <property name=\x22geometry\x22 >\x0a    <rect>\x0a     <x>210</x>\x0a     <y>200</y>\x0a     <width>41</width>\x0a     <height>41</height>\x0a    </rect>\x0a   </property>\x0a   <property name=\x22text\x22 >\x0a    <string>-</string>\x0a   </property>\x0a  </widget>\x0a  <widget class=\x22QToolButton\x22 name=\x22squareRootButton\x22 >\x0a   <property name=\x22geometry\x22 >\x0a    <rect>\x0a     <x>260</x>\x0a     <y>100</y>\x0a     <width>41</width>\x0a     <height>41</height>\x0a    </rect>\x0a   </property>\x0a   <property name=\x22text\x22 >\x0a    <string>Sqrt</string>\x0a   </property>\x0a  </widget>\x0a  <widget class=\x22QToolButton\x22 name=\x22powerButton\x22 >\x0a   <property name=\x22geometry\x22 >\x0a    <rect>\x0a     <x>260</x>\x0a     <y>150</y>\x0a     <width>41</width>\x0a     <height>41</height>\x0a    </rect>\x0a   </property>\x0a   <property name=\x22text\x22 >\x0a    <string>x^2</string>\x0a   </property>\x0a  </widget>\x0a  <widget class=\x22QToolButton\x22 name=\x22reciprocalButton\x22 >\x0a   <property name=\x22geometry\x22 >\x0a    <rect>\x0a     <x>260</x>\x0a     <y>200</y>\x0a     <width>41</width>\x0a     <height>41</height>\x0a    </rect>\x0a   </property>\x0a   <property name=\x22text\x22 >\x0a    <string>1/x</string>\x0a   </property>\x0a  </widget>\x0a  <widget class=\x22QToolButton\x22 name=\x22equalButton\x22 >\x0a   <property name=\x22geometry\x22 >\x0a    <rect>\x0a     <x>260</x>\x0a     <y>250</y>\x0a     <width>41</width>\x0a     <height>41</height>\x0a    </rect>\x0a   </property>\x0a   <property name=\x22text\x22 >\x0a    <string>=</string>\x0a   </property>\x0a  </widget>\x0a  <widget class=\x22QLineEdit\x22 name=\x22display\x22 >\x0a   <property name=\x22geometry\x22 >\x0a    <rect>\x0a     <x>10</x>\x0a     <y>10</y>\x0a     <width>291</width>\x0a     <height>31</height>\x0a    </rect>\x0a   </property>\x0a   <property name=\x22maxLength\x22 >\x0a    <number>15</number>\x0a   </property>\x0a   <property name=\x22alignment\x22 >\x0a    <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>\x0a   </property>\x0a   <property name=\x22readOnly\x22 >\x0a    <bool>true</bool>\x0a   </property>\x0a  </widget>\x0a </widget>\x0a <resources/>\x0a <connections/>\x0a</ui>\x0a\x00\x00!wFunction.prototype.bind = function() {\x0a    var func = this;\x0a    var thisObject = arguments[0];\x0a    var args = Array.prototype.slice.call(arguments, 1);\x0a    return function() {\x0a        return func.apply(thisObject, args);\x0a    }\x0a}\x0a\x0a//! [0]\x0afunction Calculator(ui)\x0a{\x0a    this.ui = ui;\x0a\x0a    this.pendingAdditiveOperator = Calculator.NO_OPERATOR;\x0a    this.pendingMultiplicativeOperator = Calculator.NO_OPERATOR;\x0a    this.sumInMemory = 0;\x0a    this.sumSoFar = 0;\x0a    this.factorSoFar = 0;\x0a    this.waitingForOperand = true;\x0a\x0a    with (ui) {\x0a        display.text = \x220\x22;\x0a\x0a        zeroButton.clicked.connect(this.digitClicked.bind(this, 0));\x0a        oneButton.clicked.connect(this.digitClicked.bind(this, 1));\x0a        twoButton.clicked.connect(this.digitClicked.bind(this, 2));\x0a        threeButton.clicked.connect(this.digitClicked.bind(this, 3));\x0a        fourButton.clicked.connect(this.digitClicked.bind(this, 4));\x0a        fiveButton.clicked.connect(this.digitClicked.bind(this, 5));\x0a        sixButton.clicked.connect(this.digitClicked.bind(this, 6));\x0a        sevenButton.clicked.connect(this.digitClicked.bind(this, 7));\x0a        eightButton.clicked.connect(this.digitClicked.bind(this, 8));\x0a        nineButton.clicked.connect(this.digitClicked.bind(this, 9));\x0a\x0a        pointButton.clicked.connect(this, \x22pointClicked\x22);\x0a        changeSignButton.clicked.connect(this, \x22changeSignClicked\x22);\x0a\x0a        backspaceButton.clicked.connect(this, \x22backspaceClicked\x22);\x0a        clearButton.clicked.connect(this, \x22clear\x22);\x0a        clearAllButton.clicked.connect(this, \x22clearAll\x22);\x0a\x0a        clearMemoryButton.clicked.connect(this, \x22clearMemory\x22);\x0a        readMemoryButton.clicked.connect(this, \x22readMemory\x22);\x0a        setMemoryButton.clicked.connect(this, \x22setMemory\x22);\x0a        addToMemoryButton.clicked.connect(this, \x22addToMemory\x22);\x0a  \x0a        divisionButton.clicked.connect(this.multiplicativeOperatorClicked.bind(this, Calculator.DIVISION_OPERATOR));\x0a        timesButton.clicked.connect(this.multiplicativeOperatorClicked.bind(this, Calculator.TIMES_OPERATOR));\x0a        minusButton.clicked.connect(this.additiveOperatorClicked.bind(this, Calculator.MINUS_OPERATOR));\x0a        plusButton.clicked.connect(this.additiveOperatorClicked.bind(this, Calculator.PLUS_OPERATOR));\x0a\x0a        squareRootButton.clicked.connect(this.unaryOperatorClicked.bind(this, Calculator.SQUARE_OPERATOR));\x0a        powerButton.clicked.connect(this.unaryOperatorClicked.bind(this, Calculator.POWER_OPERATOR));\x0a        reciprocalButton.clicked.connect(this.unaryOperatorClicked.bind(this, Calculator.RECIPROCAL_OPERATOR));\x0a        equalButton.clicked.connect(this, \x22equalClicked\x22);\x0a    }\x0a}\x0a//! [0]\x0a\x0aCalculator.NO_OPERATOR = 0;\x0aCalculator.SQUARE_OPERATOR = 1;\x0aCalculator.POWER_OPERATOR = 2;\x0aCalculator.RECIPROCAL_OPERATOR = 3;\x0aCalculator.DIVISION_OPERATOR = 4;\x0aCalculator.TIMES_OPERATOR = 5;\x0aCalculator.MINUS_OPERATOR = 6;\x0aCalculator.PLUS_OPERATOR = 7;\x0a\x0aCalculator.prototype.abortOperation = function()\x0a{\x0a    this.clearAll();\x0a    this.ui.display.text = \x22####\x22;\x0a}\x0a\x0aCalculator.prototype.calculate = function(rightOperand, pendingOperator)\x0a{\x0a    if (pendingOperator == Calculator.PLUS_OPERATOR) {\x0a        this.sumSoFar += rightOperand;\x0a    } else if (pendingOperator == Calculator.MINUS_OPERATOR) {\x0a        this.sumSoFar -= rightOperand;\x0a    } else if (pendingOperator == Calculator.TIMES_OPERATOR) {\x0a        this.factorSoFar *= rightOperand;\x0a    } else if (pendingOperator == Calculator.DIVISION_OPERATOR) {\x0a        if (rightOperand == 0)\x0a            return false;\x0a        this.factorSoFar /= rightOperand;\x0a    }\x0a    return true;\x0a}\x0a\x0a//! [1]\x0aCalculator.prototype.digitClicked = function(digitValue)\x0a{\x0a    if ((digitValue == 0) && (this.ui.display.text == \x220\x22))\x0a        return;\x0a    if (this.waitingForOperand) {\x0a        this.ui.display.clear();\x0a        this.waitingForOperand = false;\x0a    }\x0a    this.ui.display.text += digitValue;\x0a}\x0a//! [1]\x0a\x0aCalculator.prototype.unaryOperatorClicked = function(op)\x0a{\x0a    var operand = this.ui.display.text - 0;\x0a    var result = 0;\x0a    if (op == Calculator.SQUARE_OPERATOR) {\x0a        if (operand < 0) {\x0a            this.abortOperation();\x0a            return;\x0a        }\x0a        result = Math.sqrt(operand);\x0a    } else if (op == Calculator.POWER_OPERATOR) {\x0a        result = Math.pow(operand, 2);\x0a    } else if (op == Calculator.RECIPROCAL_OPERATOR) {\x0a        if (operand == 0.0) {\x0a            this.abortOperation();\x0a            return;\x0a        }\x0a        result = 1 / operand;\x0a    }\x0a    this.ui.display.text = result + \x22\x22;\x0a    this.waitingForOperand = true;\x0a}\x0a\x0aCalculator.prototype.additiveOperatorClicked = function(op)\x0a{\x0a    var operand = this.ui.display.text - 0;\x0a\x0a    if (this.pendingMultiplicativeOperator != Calculator.NO_OPERATOR) {\x0a        if (!this.calculate(operand, this.pendingMultiplicativeOperator)) {\x0a            this.abortOperation();\x0a            return;\x0a        }\x0a        this.ui.display.text = this.factorSoFar + \x22\x22;\x0a        operand = this.factorSoFar;\x0a        this.factorSoFar = 0;\x0a        this.pendingMultiplicativeOperator = Calculator.NO_OPERATOR;\x0a    }\x0a\x0a    if (this.pendingAdditiveOperator != Calculator.NO_OPERATOR) {\x0a        if (!this.calculate(operand, this.pendingAdditiveOperator)) {\x0a            this.abortOperation();\x0a            return;\x0a        }\x0a        this.ui.display.text = this.sumSoFar + \x22\x22;\x0a    } else {\x0a        this.sumSoFar = operand;\x0a    }\x0a\x0a    this.pendingAdditiveOperator = op;\x0a    this.waitingForOperand = true;\x0a}\x0a\x0aCalculator.prototype.multiplicativeOperatorClicked = function(op)\x0a{\x0a    var operand = this.ui.display.text - 0;\x0a\x0a    if (this.pendingMultiplicativeOperator != Calculator.NO_OPERATOR) {\x0a        if (!this.calculate(operand, this.pendingMultiplicativeOperator)) {\x0a            this.abortOperation();\x0a            return;\x0a        }\x0a        this.ui.display.text = this.factorSoFar + \x22\x22;\x0a    } else {\x0a        this.factorSoFar = operand;\x0a    }\x0a\x0a    this.pendingMultiplicativeOperator = op;\x0a    this.waitingForOperand = true;\x0a}\x0a\x0aCalculator.prototype.equalClicked = function()\x0a{\x0a    var operand = this.ui.display.text - 0;\x0a\x0a    if (this.pendingMultiplicativeOperator != Calculator.NO_OPERATOR) {\x0a        if (!this.calculate(operand, this.pendingMultiplicativeOperator)) {\x0a            this.abortOperation();\x0a            return;\x0a        }\x0a        operand = this.factorSoFar;\x0a        this.factorSoFar = 0.0;\x0a        this.pendingMultiplicativeOperator = Calculator.NO_OPERATOR;\x0a    }\x0a    if (this.pendingAdditiveOperator != Calculator.NO_OPERATOR) {\x0a        if (!this.calculate(operand, this.pendingAdditiveOperator)) {\x0a            this.abortOperation();\x0a            return;\x0a        }\x0a        this.pendingAdditiveOperator = Calculator.NO_OPERATOR;\x0a    } else {\x0a        this.sumSoFar = operand;\x0a    }\x0a\x0a    this.ui.display.text = this.sumSoFar + \x22\x22;\x0a    this.sumSoFar = 0.0;\x0a    this.waitingForOperand = true;\x0a}\x0a\x0aCalculator.prototype.pointClicked = function()\x0a{\x0a    if (this.waitingForOperand)\x0a        this.ui.display.text = \x220\x22;\x0a    if (this.ui.display.text.indexOf(\x22.\x22) == -1)\x0a        this.ui.display.text += \x22.\x22;\x0a    this.waitingForOperand = false;\x0a}\x0a\x0a//! [2]\x0aCalculator.prototype.changeSignClicked = function()\x0a{\x0a    var text = this.ui.display.text;\x0a    var value = text - 0;\x0a\x0a    if (value > 0) {\x0a        text = \x22-\x22 + text;\x0a    } else if (value < 0) {\x0a        text = text.slice(1);\x0a    }\x0a    this.ui.display.text = text;\x0a}\x0a//! [2]\x0a\x0aCalculator.prototype.backspaceClicked = function()\x0a{\x0a    if (this.waitingForOperand)\x0a        return;\x0a\x0a    var text = this.ui.display.text;\x0a    text = text.slice(0, -1);\x0a    if (text.length == 0) {\x0a        text = \x220\x22;\x0a        this.waitingForOperand = true;\x0a    }\x0a    this.ui.display.text = text;\x0a}\x0a\x0aCalculator.prototype.clear = function()\x0a{\x0a    if (this.waitingForOperand)\x0a        return;\x0a\x0a    this.ui.display.text = \x220\x22;\x0a    this.waitingForOperand = true;\x0a}\x0a\x0aCalculator.prototype.clearAll = function()\x0a{\x0a    this.sumSoFar = 0.0;\x0a    this.factorSoFar = 0.0;\x0a    this.pendingAdditiveOperator = Calculator.NO_OPERATOR;\x0a    this.pendingMultiplicativeOperator = Calculator.NO_OPERATOR;\x0a    this.ui.display.text = \x220\x22;\x0a    this.waitingForOperand = true;\x0a}\x0a\x0aCalculator.prototype.clearMemory = function()\x0a{\x0a    this.sumInMemory = 0.0;\x0a}\x0a\x0aCalculator.prototype.readMemory = function()\x0a{\x0a    this.ui.display.text = this.sumInMemory + \x22\x22;\x0a    this.waitingForOperand = true;\x0a}\x0a\x0aCalculator.prototype.setMemory = function()\x0a{\x0a    this.equalClicked();\x0a    this.sumInMemory = this.ui.display.text - 0;\x0a}\x0a\x0aCalculator.prototype.addToMemory = function()\x0a{\x0a    this.equalClicked();\x0a    this.sumInMemory += this.ui.display.text - 0;\x0a}\x0a"
qt_resource_name = b"\x00\x0d\x0b\xb3\x0cY\x00c\x00a\x00l\x00c\x00u\x00l\x00a\x00t\x00o\x00r\x00.\x00u\x00i\x00\x0d\x0b\xb3\x0c\xf3\x00c\x00a\x00l\x00c\x00u\x00l\x00a\x00t\x00o\x00r\x00.\x00j\x00s"
qt_resource_struct = b"\x00\x00\x00\x00\x00\x02\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00 \x00\x00\x00\x00\x00\x01\x00\x00\x228"
def qInitResources():
    QtCore.qRegisterResourceData(0x01, qt_resource_struct, qt_resource_name, qt_resource_data)

def qCleanupResources():
    QtCore.qUnregisterResourceData(0x01, qt_resource_struct, qt_resource_name, qt_resource_data)

qInitResources()
