52f52724fa
* Use horizontal orientation on browser splitter by default * Add View menu action to toggle browser orientation * Add shortcut for toggleOrientation action based on the most popular add-on. * Try to fix typing issue * Make orientation respond to aspect ratio aspect ratio < 1 means vertical orientation, >= 1 horizontal * Implement three-way switch for browser orientation * Fix typing * Add separator before QWidgetAction * Use submenu instead of widget and adjust enum * Add accelerators; move non-accelerator strings into separate .ftl (dae) * Move BrowserLayout to its own file (dae)
11 lines
253 B
Python
11 lines
253 B
Python
# Copyright: Ankitects Pty Ltd and contributors
|
|
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
from enum import Enum
|
|
|
|
|
|
class BrowserLayout(Enum):
|
|
AUTO = "auto"
|
|
VERTICAL = "vertical"
|
|
HORIZONTAL = "horizontal"
|