Commit Graph

836 Commits

Author SHA1 Message Date
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 Langen
9a39215ee0 Merge branch 'clangen/transport' 2016-07-14 21:59:03 -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 langen
f19ae80fea Dropped minimum required boost version to 1.55. 2016-07-13 22:36:33 -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
05e35be074 Don't kill application if JSON Preferences JSON parse fails! 2016-07-12 23:59:54 -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 Langen
6f93f602db One more small fix to CoreAudioOut buffer notification code. 2016-07-12 16:30:45 -07:00
Casey Langen
31e28d2f53 One of those "how did this ever work?" bugs. Fixed CoreAudioOut buffer notification logic. 2016-07-12 10:25:57 -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
279b7996e5 Removed static/screenshots. These will be stored in the musikcube-static
git repo.
2016-07-11 21:34:36 -07:00
casey langen
1f3ec92f09 Update README.md 2016-07-11 21:34:16 -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 langen
923362d3b7 Update README.md 2016-07-10 22:36:30 -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
clangen
ab21965f91 Update README.md 2016-07-09 01:40:31 -07:00
casey
7b479d620b Updated static screenshots again. TODO: probably move these to a new
repo.
2016-07-09 00:58:44 -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 Langen
92d0a3f7d7 Updated .gitignore. 2016-07-08 16:40:20 -07:00
casey
a4bf6d2ad9 Disabled multi-threaded indexing for the time being, until we have a
better implementation.
2016-07-07 22:25:14 -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