Casey Langen
99f0293903
- Created PreferenceKeys.h/cpp for both box and core.
...
- Added the ability to easily disable custom colors in settings
2016-07-19 17:08:10 -07:00
casey
1f94e4a8b4
One more min-size adjustment.
2016-07-18 01:54:13 -07:00
casey
d92db51cb7
Tweaked minimum size to be smaller.
2016-07-18 01:46:23 -07:00
casey
c1b10a8d7c
Disable window drawing if the terminal is resized too small.
2016-07-18 01:34:06 -07:00
Casey Langen
e7a7df22c3
Fixed "UP" arrow to defocus shortcuts bar if it is focused.
2016-07-18 01:05:30 -07:00
casey
149f168471
Added a new darkRed color and updated the statusbar focus style.
2016-07-18 00:51:06 -07:00
casey
8f539da0c3
Reduced the 'white' color's intensity a bit.
2016-07-18 00:43:53 -07:00
casey
979f4bb358
Fixed a small edge case in TransportWindow title line ellipsizing.
2016-07-17 20:47:03 -07:00
casey
fd637ba199
Added COLOR_CUSTOM_WHITE for more consistent colors across platforms.
2016-07-17 20:29:22 -07:00
casey
c1e21abad5
Added support for focusable shortcuts bar, aka "dedicated command mode"
...
- Added ITopLevelLayout, implemented by ConsoleLayout, LibraryLayout,
SettingsLayout
- Removed individual ShortcutsWindows from all layouts, use a single one
in MainLayout
- Fixed a super old bug where ConsoleLayout was continuing to update even
when invisible.
- Added a call to set_escdelay() to reduce latency in Linux/OS X when
pressing ESC.
- Fixed up botched key handling in App.cpp
- Added IsFocused(), IsVisible() to IWindow
- Added a new blue color in Colors.cpp (currently unused)
Fixed a bug where the search field may get refocused even if the shortcuts bar is active.
2016-07-17 17:14:38 -07:00
Casey Langen
7f4fc66fb7
Added some more configurable hotkeys: browse by artist/album/genre, refresh current view, and jump to playing.
2016-07-14 22:16:45 -07:00
casey
d73113f068
A couple small tweaks to the ellipsizing algorithm in TransportWindow.
2016-07-14 09:36:35 -07:00
casey
1a7ba93e0a
Just experimenting with transport metadata -- added the artist name.
2016-07-14 01:28:30 -07:00
casey
0346667c43
Added a missing colon in ConsoleLayout.
2016-07-13 21:03:10 -07:00
Casey Langen
26591f61bf
Make sure to write hotkeys.json after loading to ensure the file is on the user's filesystem and available for easy editing.
2016-07-13 20:48:10 -07:00
casey
5465b072ee
Fixed input parsing issue in ConsoleLayout. This must have been a bug
...
since forever.
2016-07-13 01:28:22 -07:00
casey
f700b8055f
Fixed a TextInput buffer length error that was causing focus issues.
2016-07-13 01:25:01 -07:00
Casey Langen
f4c484b751
generalized left/right/up/down handling. it actually seems to work well!
2016-07-13 00:52:08 -07:00
Casey Langen
c42c13b64a
Fixed compile on *nix.
2016-07-12 23:55:08 -07:00
casey
64435e9057
Updated musikbox/CMakeLists.txt with Hotkeys.cpp
2016-07-12 23:47:39 -07:00
casey
3fdbd9f07d
More Hotkey implementation. Nearly done, most keys can be configured
...
now.
2016-07-12 23:42:58 -07:00
casey
b9139f8fd0
Initial implementation of Hotkeys.h/cpp for custom hotkeys. Still some
...
more work to do, but playback and indexer keys are working properly.
2016-07-12 23:11:49 -07:00
Casey Langen
abb305ea92
- Added a "InputRaw" mode to IInput interface
...
- Updated App to send keys directly to focused IInputs in raw mode
- Addded a new hotkey tester (TextInput in IndexerLayout) for hotkey testing
2016-07-12 22:01:30 -07:00
casey
d25f2a1633
Fixed ESC behavior in Library mode to only show the play queue when in
...
browse mode -- otherwise show browse.
2016-07-11 21:39:27 -07:00
Casey Langen
3999a85306
A bit more App.h cleanup to improve encapsulation.
2016-07-11 21:24:56 -07:00
casey
bd6936a13e
- One more PDCurses update
...
- Moved a few lines of musikbox-specific code from App.cpp to Main.cpp
- Cleaned up a few comments
2016-07-11 18:33:57 -07:00
casey
a5876ef050
Fixed a top-level Layout selection bug.
2016-07-11 01:38:38 -07:00
Casey Langen
aec0fda140
Fixed *nix compile
2016-07-11 01:34:10 -07:00
casey
2a9bc70037
- One more version of the pdcurses binaries
...
- Extracted most Main.cpp logic into App.cpp, which can be reused
2016-07-11 01:30:29 -07:00
casey
8c784eb087
Updated PDCurses to allow for a default window size.
2016-07-10 17:24:28 -07:00
casey
c097261301
Combined a couple WIN32 ifndefs in Main.cpp
2016-07-10 14:21:50 -07:00
Casey Langen
007822b1d2
- Hopefully fixed auto-window resizing in OSX and Linux by handling SIGWINCH manually
...
- Moved some key parsing logic into Cursespp::Text
2016-07-10 14:11:05 -07:00
casey
e88dd2b312
Invalidate the screen after a resize before doing layout.
2016-07-10 02:59:31 -07:00
casey
d9ae481668
Just standardize on using "M-x" and "^X" across all platforms for hotkeys.
2016-07-09 21:58:57 -07:00
Casey Langen
0b2c090f16
Added a couple more color pairs in Colors.h, and allow customization of ShortcutWindow styles.
2016-07-09 21:54:17 -07:00
Casey Langen
7940e15c61
Updated ShortcutsWindow to display hotkeys in different formats depending on OS.
2016-07-09 14:05:35 -07:00
casey
edf9dfd257
Added a simple key normalization layer in Text.cpp, used in Main.cpp in
...
the main read loop.
2016-07-08 22:08:52 -07:00
casey
65dfb59be6
Tweaked ConsoleLayout's shortcut window ordering.
2016-07-08 21:04:37 -07:00
Casey Langen
a3c7a76b75
Updated ShortcutsWindow to properly ellipsize contents.
2016-07-08 20:39:13 -07:00
casey
65203c8fbc
Added a correct implementation of multi-threaded indexing using a thread
...
pool and a semaphore.
Fixed a couple more hotkey issues.
2016-07-08 16:41:10 -07:00
casey
fe5c91f24a
Fixed KEY_DOWN behavior in search layouts to not focus the input view.
2016-07-07 21:58:17 -07:00
Casey Langen
f134f725fe
Fixed bug that may result in the Cursor drawing incorrecty for a frame.
2016-07-07 20:44:23 -07:00
Casey Langen
ec32b70e15
Fixed TextInput left/right insert/delete functionality for UTF8 and multi-width characters.
2016-07-07 00:49:50 -07:00
casey
f44c3c08c0
Properly handle arrow keys, home, end, and delete in TextInput.
2016-07-07 00:01:29 -07:00
clangen
47fa6eb8e7
Fixed ALT+BACKSPACE in TextInput on Linux.
2016-07-06 22:59:11 -07:00
casey
6535eeaa48
More arrow key fixes: allow the UP and DOWN keys to propagate to
...
controllers if the user is already at the beginning or end of the list.
Changed search views to focus the input area if a list is selected,
scrolled to the top, and the user presses UP.
2016-07-06 22:50:35 -07:00
casey
e20d13d334
- Removed IMessageTarget::IsAcceptingMessages()
...
- Fixed up some more hotkeys to improve app behavior
2016-07-06 21:57:05 -07:00
casey
7aa27a231c
Allow category list width to grow dynamically up to 40 columns.
2016-07-04 22:48:06 -07:00
casey
e31bbb9b56
Added a free, portable version of wcswidth for Windows.
2016-07-04 22:35:34 -07:00
Casey Langen
074c2d7b78
Fixed display of multi-width characters.
2016-07-04 21:15:14 -07:00