Skip to content

Commit

Permalink
Add UI action "show-statusbar-secondary-toggle" (`ACTION_SHOW_STATUSB…
Browse files Browse the repository at this point in the history
…AR_SECONDARY_TOGGLE`)

Add UI action id/name for toggling the secondary status bar of an emulator,
which currently is only on x128's VDC window.


git-svn-id: https://svn.code.sf.net/p/vice-emu/code/trunk@44170 379a1393-f5fb-40a0-bcee-ef074d9b53f7
  • Loading branch information
Compyx committed Jul 1, 2023
1 parent ed0accf commit 8438b91
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions vice/doc/vim/syntax/vhk.vim
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ syn match vhkActionName "\<psid-\(play\|pause\|stop\|ffwd\)\>"
syn match vhkActionName "\<psid-loop-toggle\>"
syn match vhkActionName "\<printer-formfeed-\(4\|5\|6\|userport\)\>"
syn match vhkActionName "\<virtual-keyboard\>"
syn match vhkActionName "\<show-statusbar\(-secondary\)\?-toggle\>"

" Comments
syn match vhkComment "[#;].*$" contains=vhkTodo
Expand Down
9 changes: 5 additions & 4 deletions vice/src/arch/shared/uiactions.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,11 @@ static const ui_action_info_private_t action_info_list[] = {
{ ACTION_SPEED_FPS_REAL, "speed-fps-real", "Set real video clock", VICE_MACHINE_ALL^VICE_MACHINE_VSID },

/* fullscreen, fullscreen decs, restore display */
{ ACTION_FULLSCREEN_TOGGLE, "fullscreen-toggle", "Toggle fullscreen", VICE_MACHINE_ALL^VICE_MACHINE_VSID },
{ ACTION_FULLSCREEN_DECORATIONS_TOGGLE, "fullscreen-decorations-toggle", "Show menu/status in fullscreen", VICE_MACHINE_ALL^VICE_MACHINE_VSID },
{ ACTION_SHOW_STATUSBAR_TOGGLE, "show-statusbar-toggle", "Show status bar", VICE_MACHINE_ALL^VICE_MACHINE_VSID },
{ ACTION_RESTORE_DISPLAY, "restore-display", "Resize application window to fit content", VICE_MACHINE_ALL^VICE_MACHINE_VSID },
{ ACTION_FULLSCREEN_TOGGLE, "fullscreen-toggle", "Toggle fullscreen", VICE_MACHINE_ALL^VICE_MACHINE_VSID },
{ ACTION_FULLSCREEN_DECORATIONS_TOGGLE, "fullscreen-decorations-toggle", "Show menu/status in fullscreen", VICE_MACHINE_ALL^VICE_MACHINE_VSID },
{ ACTION_SHOW_STATUSBAR_TOGGLE, "show-statusbar-toggle", "Show status bar", VICE_MACHINE_ALL^VICE_MACHINE_VSID },
{ ACTION_SHOW_STATUSBAR_SECONDARY_TOGGLE, "show-statusbar-secondary-toggle", "Show secondary status bar", VICE_MACHINE_C128 },
{ ACTION_RESTORE_DISPLAY, "restore-display", "Resize application window to fit content", VICE_MACHINE_ALL^VICE_MACHINE_VSID },

/* joystick, mouse etc */
{ ACTION_SWAP_CONTROLPORT_TOGGLE, "swap-controlport-toggle", "Swap controlport joysticks", (VICE_MACHINE_C64|VICE_MACHINE_C64SC|VICE_MACHINE_C64DTV|VICE_MACHINE_SCPU64|
Expand Down
2 changes: 1 addition & 1 deletion vice/src/arch/shared/uiactions.h
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,8 @@ enum {
ACTION_SETTINGS_LOAD,
ACTION_SETTINGS_SAVE,
ACTION_SETTINGS_SAVE_TO,
/* TODO: Add ACTION_SHOW_STATUSBAR_VDC_TOGGLE or something for x128 */
ACTION_SHOW_STATUSBAR_TOGGLE,
ACTION_SHOW_STATUSBAR_SECONDARY_TOGGLE,
ACTION_SMART_ATTACH,
ACTION_SNAPSHOT_LOAD,
ACTION_SNAPSHOT_QUICKLOAD,
Expand Down

0 comments on commit 8438b91

Please sign in to comment.