Commit Graph

929 Commits

Author SHA1 Message Date
casey
2379b94473 Fixed a couple memory leaks where adapters were not being properly deleted. 2016-09-11 11:33:00 -07:00
Casey Langen
db4b97711c Version bump. 2016-09-02 19:08:57 -07:00
Casey Langen
da6c3fc393 Cleaned up first run dialog text. 2016-09-02 19:08:35 -07:00
casey
ca9a9e3489 Added bounds checking to Window and DialogOverlay so we don't get crashy if things are positioned incorrectly. 2016-09-02 16:28:34 -07:00
casey
1cea4cde2e Small correction to padding calculation when breaking lines in DialogOverlay. 2016-09-02 12:23:49 -07:00
casey
1b90bb5999 Align DialogOverlay buttons to the right. 2016-09-02 12:17:43 -07:00
casey
38912b9e63 Added text alignment options to ShortcutsWindow. 2016-09-02 11:59:15 -07:00
casey
7e60827aab Ensure the OverlayStack is cleared when the app loop finishes. 2016-09-02 10:19:26 -07:00
Casey Langen
2a819eb0ad Renamed Overlays -> OverlayStack 2016-09-02 10:09:43 -07:00
Casey Langen
77f3293dd7 Removed old, unused LayoutStack stuff. 2016-09-02 10:00:57 -07:00
casey
b320cc837d - Fixed MSVC compile
- Fixed a bug in Overlays where we were performing operations on an invalid iterator, leading to undefined behavior.
2016-09-02 09:53:39 -07:00
Casey Langen
5a0597d472 - Fixed bug in Overlays related to pushing the same layout multiple times
- Added a "welcome to musikbox!" first run dialog in SettingsLayout
- Added App::Overlays() that can be used to manage overlays from UI components
2016-09-02 09:06:08 -07:00
Casey Langen
e0f232fcad Added auto-dismiss behavior to DialogOverlay, and some additional cleanup. 2016-09-02 06:31:06 -07:00
Casey Langen
55b2f262bf - Added Overlays::Push, Overlays::Remove
- Fixed dismissing of overlay and proper redrawing in App
- New overlay frame style in Colors
2016-09-02 00:34:04 -07:00
Casey Langen
b1bbb6485c Moved ShortcutsWindow to cursespp so it can be reused. TODO: reuse in DialogOverlay. 2016-09-01 23:30:16 -07:00
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