okular/shell/shell.rc
Bob Bai 60f1fa790c Enable closing a tab by middle click
Some discussions at https://phabricator.kde.org/D25484.

This MR adds:

* mouse middle button event handler for closing a tab
* an `undo close tab` action

Test plan:

1. Compile and install.
2. Enable `Open new files in tabs`.
3. Open two documents. They should be opened in two tabs in the same window.
4. Middle click one of the tabs. It should be closed.
5. Choose `File`-`Undo close tab`. The closed tab should be reopened.
6. Middle click one of the tabs. It should be closed.
7. Press <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>T</kbd>. The closed tab should be reopened.
2020-01-06 15:07:51 -07:00

27 lines
868 B
Text

<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
<kpartgui version="8" name="okular_shell" >
<MenuBar>
<Menu name="file" >
<DefineGroup append="open_merge" name="file_open" />
<DefineGroup append="save_merge" name="file_save" />
<DefineGroup append="print_merge" name="file_print" />
<Action name="undo-close-tab" group="file_open" />
</Menu>
<!--Menu name="view" >
<Action name="fullscreen" />
</Menu-->
<Menu name="settings" >
<DefineGroup append="show_merge" name="show_merge" />
<DefineGroup append="configure_merge" name="configure_merge" />
</Menu>
<Merge/>
<Menu name="help">
<DefineGroup append="about_merge" name="about_merge" />
</Menu>
</MenuBar>
<ToolBar noMerge="1" name="mainToolBar" >
<text>Main Toolbar</text>
<!--Action name="file_open_recent" /-->
<!--Action name="file_print" /-->
</ToolBar>
</kpartgui>