Main_Activity

abstract class Main_Activity<Service_Type : IService?> : IMain_Activity<Service_Type> , ICalculatorCanvas, IPrinter_Fragment, IMenu_Fragment

On Android the activity also controls the main view hence the activity Implements the ICalculatorCanvas interface

Author

"Martin Krischik" «krischik@users.sourceforge.net»

Constructors

Link copied to clipboard
protected constructor()
connect to service.

Types

Link copied to clipboard
private open class Display_Exception_Toast : Runnable
display exception inside a toast
Link copied to clipboard
protected open class Service_Connection
connection to service

Properties

Link copied to clipboard
connection to service
Link copied to clipboard
val Half_Line: Double = 0.5
Needet for the scoll to end functiins
Link copied to clipboard
private val Max_Queue_Length: Int = 16
Link copied to clipboard
private open var Old_Orientation: Int
Link copied to clipboard
val Printout_Bundle_Key: String = "Printout"
Store printout in save bundle
Link copied to clipboard
private val Save_Screen_Orientation: String = "Screen_Orientation"
Link copied to clipboard
protected open var Service_Intend: Intent
Service running the actual calculator
Link copied to clipboard
private val TAG: String
logging tag

Functions

Link copied to clipboard
protected open fun applyFontRecursively(Parent: ViewGroup, Font: Typeface)
Apply the Button font to all text views which are children of the given view
Link copied to clipboard
abstract fun Bind_Service(Service: Service_Type)
Bound or unbound to calculator service
Link copied to clipboard
abstract fun bindCPUThread(CPU_Thread: Thread)
Set calculator Thread so the canvas can wake up the calculator after key / touch screen clicks.
abstract fun bindCPUThread(CPU_Thread: Thread)

Set calculator Thread so the canvas can wake up the calculator after key / touch screen clicks.

Link copied to clipboard
abstract fun Button_Clear_Click()
the clear printout button was clicked
Link copied to clipboard
abstract fun Button_Feed_Click()
he form feed button was clicked
Link copied to clipboard
abstract fun Button_Print_Click()
the SAVE EXE button was clicked
Link copied to clipboard
protected open fun clone(): Any
Link copied to clipboard
open fun displayException(Exception: Throwable)
display additional information on the error.
Link copied to clipboard
open fun Do_Stop(alsoService: Boolean)
stop the calculator
Link copied to clipboard
open fun equals(obj: Any): Boolean
Link copied to clipboard
protected open fun finalize()
Link copied to clipboard
fun getClass(): Class<out Any>
Link copied to clipboard
abstract fun getDisplayText(Row: Int): Array<Short>

Fet text currently displayed (as one java string).

Link copied to clipboard
abstract fun getIndicators(): Array<Boolean>

Set the indicators (Shift, Alpha, Deg, Grad, Gra, etc. pp.)

Link copied to clipboard
abstract fun getJavaText(): String

Set text to be displayed (as java string, used by RPN-45 only).

Link copied to clipboard
abstract fun getPressedKey(): Short

Get calculator key code of the currently pressed key.

Link copied to clipboard
abstract fun getReadKey(): Short

Get calculator key code of the last key (de)pressed.

Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
abstract fun isReadKeyAvailable(): Boolean
Link copied to clipboard
abstract fun Menu_Copy_Display()

Copy display slide in menu was clicked

Link copied to clipboard
abstract fun Menu_Copy_Printer()

Copy printout in menu was clicked

Link copied to clipboard
abstract fun Menu_Documents()

Documents slide in menu was clicked

Link copied to clipboard
abstract fun Menu_Feedback()

Feedback slide in menu was clicked

Link copied to clipboard
abstract fun Menu_Help()

Feedback slide in menu was clicked

Link copied to clipboard
abstract fun Menu_Settings()

Settings slide in menu was clicked

Link copied to clipboard
fun notify()
Link copied to clipboard
fun notifyAll()
Link copied to clipboard
open fun onCreate(Saved_Instance_State: Bundle)
Called when the activity is first created.
Link copied to clipboard
open fun onSaveInstanceState(Out_State: Bundle)
Link copied to clipboard
open fun onStart()
Open calculator and load file (if one was passed).
Link copied to clipboard
open fun onStop()
Link copied to clipboard
abstract fun Printout(): String
Text currently displayed
abstract fun Printout(Text: String)
Set text to be displayed (java string).
Link copied to clipboard
abstract fun Restart_Calculator()
Start service if it is not currently running.
Link copied to clipboard
open fun Service(): Service_Type
get service when connection is available
Link copied to clipboard
abstract fun setDisplayText(Row: Int, Text: Array<Short>)

Set text to be displayed (calculator alpha codes). Null implementation for calculators without alpha display.

Link copied to clipboard
abstract fun setIndicators(<set-?>: Array<Boolean>)

Set the indicators (Shift, Alpha, Deg, Grad, Gra, etc. pp.)

Link copied to clipboard
abstract fun setJavaText(<set-?>: String)

Set text to be displayed (as java string, used by RPN-45 only).

Link copied to clipboard
abstract fun setOnOff(on: Boolean)

set the calculators on of status.

Link copied to clipboard
abstract fun setPressedKey(<set-?>: Short)

Get calculator key code of the currently pressed key.

Link copied to clipboard
abstract fun setReadKey(<set-?>: Short)

Get calculator key code of the last key (de)pressed.

Link copied to clipboard
abstract fun Stop_Calculator()
Stop the calculator
Link copied to clipboard
open fun toggleHelp()
Toggle Keyboard help on and off
Link copied to clipboard
open fun toString(): String
Generate string for debug purpose
Link copied to clipboard
fun wait()