Commit Graph

814 Commits

Author SHA1 Message Date
Casey Langen
4240a10963 Fleshed out some of DialogOverlay -- we can set a title and a message, and have the overlay automatically resize itself based on content. Supports line breaking for the message. 2016-09-01 23:02:21 -07:00
Casey Langen
7c972bf011 Moved line breaking logic into Text.h/cpp 2016-09-01 21:57:05 -07:00
Casey Langen
650882ae01 Initial set of work to support overlays (e.g. dialogs):
- A new Overlays class that will manage a stack of overlays.
- Updated App functionality to ensure:
    * overlays are displayed over the active layout
    * overlays are able to receive key events and focus sub-controls
2016-09-01 17:01:33 -07:00
casey
723f59f517 Version bump. 2016-08-30 13:36:12 -07:00
casey
604c589b47 Fixes and optimizes cursor drawing for input windows. 2016-08-30 09:01:42 -07:00
Casey Langen
6baac20b9f Added a flag to ScrollableWindow to disallow KEY_UP and KEY_DOWN propagation when the user hits the top or bottom of a list. This is not useful in most scenarios. 2016-08-30 07:17:19 -07:00
Casey Langen
627cf13b04 Use add_dependencies to (hopefully) fix CMake parallel build (and fix homebrew compile). 2016-08-29 01:06:20 -07:00
casey langen
be87279c89 Update README.md 2016-08-28 14:59:51 -07:00
casey langen
f8356a8fd0 Update README.md 2016-08-28 13:16:09 -07:00
Casey Langen
a1f2e2f4c3 Version bump for updated install script (to support Homebrew) 2016-08-28 11:51:16 -07:00
Casey Langen
9d4691efcf Added "install" support to CMakeLists.txt. 2016-08-28 11:46:43 -07:00
Casey Langen
ad3a28d95b Show settings layout if no paths have been added to the library's indexer. 2016-08-22 21:53:11 -07:00
Casey Langen
8b7062be0b - Updated default hotkeys and related documentation
- Updated default "ESC" behavior to focus command bar
- Added version information to the console window
2016-08-22 21:30:04 -07:00
casey langen
931323e8aa Update README.md 2016-08-10 00:02:39 -07:00
casey
979b088e7f Reduced NOTIFY_INTERVAL back to something more reasonable in Indexer.cpp. 2016-07-29 21:03:04 -07:00
casey
f3d1cdfd6e Disable DB stress testing -- this shouldn't have been checked in this way. 2016-07-28 19:33:25 -07:00
Casey Langen
5a290aa6d5 A couple database optimizations that should make the indexing process faster. 2016-07-28 19:29:11 -07:00
casey
5d9c58fd16 Allow tab / shift+tab to defocus command window. 2016-07-28 19:26:39 -07:00
casey
7dc629b4db Allow "KEY_ENTER" to exit command mode. Makes it a bit easier in some contexts. 2016-07-28 19:15:28 -07:00
casey langen
52843d1b82 Update README.md 2016-07-22 23:04:30 -07:00
casey langen
00d7fdb0b2 Update README.md 2016-07-22 23:00:39 -07:00
Casey Langen
791562fc93 Removed ResourcesWindow, SystemInfo. Fixed update mechanism in ConsoleLayout/LogWindow. 2016-07-20 00:04:15 -07:00
casey
a8cb57b6a9 Fixed VS2015 compile. 2016-07-19 17:54:32 -07:00
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 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