Post Reply 
[free42] Bugs and feature requests
02-02-2019, 11:16 AM
Post: #4
RE: [free42] Bugs and feature requests
(01-27-2019 01:56 PM)SammysHP Wrote:  Just a minor issue: I found an inconsistent behavior of back in the printout in 2.0.22c. Usually the back action is executed on release, but in the printout already on press.

First of all, after looking at the code I realized that there is just a single activity and the code switches between different views.


    public boolean onKeyDown(int keyCode, KeyEvent event) {
        if (printViewShowing && keyCode == KeyEvent.KEYCODE_BACK) {
            return true;
        } else {
            return super.onKeyDown(keyCode, event);

It might be enough to use onKeyUp().

(01-27-2019 01:56 PM)SammysHP Wrote:  In addition of tapping on the LCD, what about adding a new entry to the calculator function list to open the native menu? Or even better: Adding the top level functions of the native menu to a new menu in the calculator?

Actually this might be harder than I originally thought, because the relevant code is distributed between the core and the shell. But nevertheless the code is cleanly structured and an extension should be possible.

The first question is, what should be implemented exactly?
  • Just a function to open the menu? NMENU, docmd_open_native_menu(), shell_open_native_menu()
  • Or a function that opens a submenu with all menu commands?
  • Or functions for specific functions?
    • Open printout: SPRNT, docmd_open_printout(), shell_open_printout()
    • Clear printout: CLPO, docmd_clear_printout(), shell_clear_printout()
    • Open preferences: PREFS, docmd_open_prefs(), shell_open_prefs()
    • Copy: COPY, docmd_copy(), shell_copy()
    • Paste: PASTE, docmd_paste(), shell_paste()
    • Open menu (for everything else): NMENU, docmd_open_native_menu(), shell_open_native_menu()

Some of these (like NMENU, SPRNT) could be added with FLAG_NO_PRGM (that should prevent the function from being used in a program?), while others (COPY, PASTE) might be helpful in programs (automatically copy a result to the clipboard).

The second question: Are you even interested in such additions? Some are just eye candy (stay in the virtual calculator for some actions), but others (copy, paste) are useful functions in some scenarios.

PS: When I have time I will try to fix my Android development environment that I sadly haven't used for years and will try to build free42 for Android myself.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
RE: [free42] Bugs and feature requests - SammysHP - 02-02-2019 11:16 AM

User(s) browsing this thread: 1 Guest(s)