// Path: PalmCalc/src/com/cybrosys/scientific/CalculatorDisplay.java
// enum Scroll {
// 	UP, DOWN, NONE
// }


import org.javia.arity.Symbols;
import org.javia.arity.SyntaxException;
import com.cybrosys.scientific.CalculatorDisplay.Scroll;
import com.cybrosys.palmcalc.R;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.widget.EditText;
import android.content.Context;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.util.Locale;
		EditText etxtEditText = mDisplay.getEditText();
		ScientificActivity.imm.hideSoftInputFromWindow(
				etxtEditText.getWindowToken(), 0);
		int cursorPos = etxtEditText.getSelectionStart();
		return isToLeft ? cursorPos == 0 : cursorPos >= etxtEditText.length();
	}

	private String getText() {

		return mDisplay.getText().toString();
	}

	void insert(String strDelta) {
		mDisplay.insert(strDelta);
		setDeleteMode(inDelModeBa);
	}

	public void resumeWithHistory() {
		clearWithHistory(false);
	}

	private void clearWithHistory(boolean isScroll) {

		String strText = mHistory.getText();

		if (strMarker.equals(strText)) {
			if (!mHistory.moveToPrevious()) {
				strText = "";
			}
			strText = mHistory.getText();
// Path: PalmCalc/src/com/cybrosys/scientific/CalculatorDisplay.java
// enum Scroll {
// 	UP, DOWN, NONE
// }


// Path: PalmCalc/src/com/cybrosys/scientific/Logic.java
import org.javia.arity.Symbols;
import org.javia.arity.SyntaxException;
import com.cybrosys.scientific.CalculatorDisplay.Scroll;
import com.cybrosys.palmcalc.R;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.widget.EditText;
import android.content.Context;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.util.Locale;

		EditText etxtEditText = mDisplay.getEditText();
		ScientificActivity.imm.hideSoftInputFromWindow(
				etxtEditText.getWindowToken(), 0);
		int cursorPos = etxtEditText.getSelectionStart();
		return isToLeft ? cursorPos == 0 : cursorPos >= etxtEditText.length();
	}

	private String getText() {

		return mDisplay.getText().toString();
	}

	void insert(String strDelta) {
		mDisplay.insert(strDelta);
		setDeleteMode(inDelModeBa);
	}

	public void resumeWithHistory() {
		clearWithHistory(false);
	}

	private void clearWithHistory(boolean isScroll) {

		String strText = mHistory.getText();

		if (strMarker.equals(strText)) {
			if (!mHistory.moveToPrevious()) {
				strText = "";
			}
			strText = mHistory.getText();
			evaluateAndShowResult(strText, CalculatorDisplay.Scroll.NONE);