Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GUI: Add a fast-select "Zapper" mode for VarItemList #258

Open
wants to merge 19 commits into
base: dev
Choose a base branch
from

Conversation

zxkmm
Copy link
Contributor

@zxkmm zxkmm commented Oct 12, 2024

What's new

Add a fast-select "Zapper" function for var_item type menu

  • in varible_item menu (e.g. the freq select menu), in old way you can only use Left and Right to swap.
  • I added a "Zapper menu", you highlight a item, long press
  • then use OK to paging, and use ^ v < > to pick one, kinda likes cheat code in old games
  • benefits:
    it's 4 times faster when you are looking for a item (e.g. a frequency)
    I't s extremely fast (and don't even need to look at the screen) if you remember the number (position) of that specific item (for example the most used two: 315 and 433.92)
go to 433.92: ok*9, then Right
go to 315.00: ok*4, then Right

TODO

Current interface is kinda ugly. Need to design a new one maybe.


For the reviewer

  • I've uploaded the firmware with this patch to a device and verified its functionality
  • I've confirmed the bug to be fixed / feature to be stable

@zxkmm zxkmm marked this pull request as ready for review October 12, 2024 11:08
false);

if(consumed) return true;
Copy link
Contributor Author

@zxkmm zxkmm Oct 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's for prevent the zapper menu infect in the var_item meny obj.

applications/services/gui/modules/variable_item_list.c Outdated Show resolved Hide resolved
@@ -285,6 +460,15 @@ static bool variable_item_list_input_callback(InputEvent* event, void* context)
default:
break;
}
} else if(event->type == InputTypeLong) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only one option but switch to keep it clean

{
VariableItem* item = variable_item_list_get_selected_item(model);

bool is_allowed = false;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is just for prevent mistaken-touch for those two options field. but they works good too, just i think not needed

@Willy-JL Willy-JL added the feature New feature or request label Oct 13, 2024
@zxkmm
Copy link
Contributor Author

zxkmm commented Oct 25, 2024

Just broken changelog, lol, will fix now
it turned out is github's diff view is broken

@Willy-JL Willy-JL changed the title Add a fast-select "Zapper" function for var_item type menu GUI: Add a fast-select "Zapper" mode for VarItemList Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
Status: Next Up
Development

Successfully merging this pull request may close these issues.

2 participants