summaryrefslogtreecommitdiffstats
path: root/gui/fileselector.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-11-27ADB Backup: add ability for TWRP GUI to restorebigbiff bigbiff1-3/+7
Restore adb backup files that TWRP made to your PC. Put files in your backup directory to see them. e.g. /sdcard/TWRP/BACKUPS/<sn> Change-Id: I2c57970d77b64c39a302159041456e761c185259
2017-01-18Unused variable cleanupMatt Mower1-1/+0
Change-Id: I2397d0bd221dcf5c9d0f971ba157519bcf014a70
2017-01-18Whitespace cleanupMatt Mower1-2/+2
Change-Id: I93c65973679894bb8587da4b38b410d38036b8bd
2016-01-29gui: move "(Up A Level)" in file selector to resource stringthat1-12/+8
Doing it at display time is easier. Change-Id: Ic0f2ca1f425f6267452157524a05b51d9324be16
2016-01-27Update minuitwrp graphics in line with latest minuiEthan Yonker1-1/+1
Note: events.cpp is still old code renamed to cpp to make it easier to call functions like gr_fb_width(). I had to modify AOSP fbdev code to provide a separate memory surface for drawing to as drawing directly to the framebuffer resulted in rendering taking about 5 times longer. I also modified AOSP adf code to provide a separate memory surface for drawing for the same performance reasons. The Nexus 9 supports adf graphics. Overlay graphics work on at least one device. Overlay provides a separate memory buffer already so performance is good. I do not have a drm device yet that I know of. I made some attempt to update the drm code to determine the correct pixel format based on the drm graphics format, but what is available in pixel flinger and what is available in drm do not line up all that well. Reports are that the Pixel C is using drm graphics, but performance is slow, likely due to the use of a mmap instead of a memory buffyer. Change-Id: Ibd45bccca6ac2cb826037aa9b2aa5065cf683eed
2015-03-05gui: introduce virtual RenderItem method in ScrollListthat1-5/+9
- so derived lists can draw whatever they want (multi-line etc.) - replace GetListItem with RenderItem - minor cleanup Change-Id: I062e0a354f1c18ce0a5232b7542c4987b480e232
2015-02-23gui: fix missing icons in fileselectorthat1-6/+6
Style support was missing. Change-Id: I9a9a8c6a42e2a3d0dcdee871a639c9842a2ff668
2015-02-21GUI: Support styles in xml to reduce xml file sizeEthan Yonker1-1/+9
Also allow sliders to have their own text label instead of requiring a whole separate text object for the label in the xml. Change-Id: I6e314efb4bb454d496555ff7e003d743063a1308
2015-02-15gui: make resources type safethat1-24/+6
- add string, int, color and resource loading helpers - use typed resource classes, and some cleanup in loading code - remove abstract GetResource() to enforce type safe access - add height and width query methods to resources and use them - minor cleanup - simplify LoadPlacement Change-Id: I9b81785109a80b3806ad6b50cba4d893b87b0db1
2015-02-13gui: fix condition handling for liststhat1-2/+2
Base class must be called first, otherwise the condition can never again become true. Fixes font size switching in Material theme. Change-Id: I160a733549495e1bde3cead56b0a3582f0dc744c
2015-02-10Remove deletes for images from scroll list GUI ElementsEthan Yonker1-2/+0
Resources are deleted by ~PageSet and do not need to be deleted by the the scrollable list elements. This fixes a crash when reloading the theme. Also remove some deletes for items that should not be deleted in button and input GUI elements. Change-Id: Ie1c1b85c81c10f648d085746a5fdba6220468a5f
2015-02-05Unify scrollable list codeEthan Yonker1-775/+125
The goal of this patch set is to eliminate the code duplication caused by copy/paste of the code in the file selector, listbox, and partition list GUI elements. Those classes will now utilize a single GUIScrollList class that will handle rendering and scrolling. Change-Id: I0cb98ab36cf47178296034293435225658c779cd
2014-10-14Add support for TrueType fontsVojtech Bocek1-1/+1
* Keeps original font system in place * Uses the same API as original font system: - You can render only one line at a time - You can only use one font and color for one gr_text* call * Caches all rendered text, with a string cache limited to 400 entries, then it trucates to 250, which results in memory usage hovering around 5-10MB Change-Id: I36107b9dcd8d57bae4486fce8b8f64e49ef3d906 Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2014-06-04Whitespace and minor code cleanupMatt Mower1-2/+2
This is by no means comprehensive, but is quite a bit better already. Change-Id: Ibc8654a5dfb0eec39cbd0b64bdb52bb4fbfe2f7e
2014-02-12Cache results of GUIObject::isConditionTrue()Vojtech Bocek1-1/+3
Signed-off-by: Vojtech Bocek <vbocek@gmail.com> Change-Id: Ia50f7c365b2dc0a65ee046bb42972e3594264878
2014-02-12Conditional -> GUIObject and make all gui objects children of GUIObjectVojtech Bocek1-1/+13
Signed-off-by: Vojtech Bocek <vbocek@gmail.com> Change-Id: Ic0a7d6354dabe5919b83942f2f1aa0715625e522
2014-02-08Add vibrations to Checkbox, Fileselect, Listbox and PartitionlistVojtech Bocek1-0/+2
Signed-off-by: Vojtech Bocek <vbocek@gmail.com> Change-Id: I7b0e27930857add1ac88671a71310bea56fc4e74
2014-01-29Don't switch between fast and normal scroll during drag in listviewsVojtech Bocek1-2/+6
Signed-off-by: Vojtech Bocek <vbocek@gmail.com> Change-Id: I925adda7f417c6e578f501babc8ef2bec638f66b
2013-08-24Unify indentation and little clean-up in TWRP filesVojtech Bocek1-9/+9
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2013-04-04Move all AOSP code out of recovery binaryDees_Troy1-4/+2
Improves license compatibility between GPL and Apache Change-Id: I2b165aa575bb6213af6b07936f99610c113443f0
2013-03-30Add partition list GUI elementDees_Troy1-2/+18
Add partition list GUI element and update backup, restore, mount, storage selection, and wipe sections of GUI and partition manager code to reflect the new GUI element. Update ORS engine to handle new backup and restore setup. Fix a bug with decrypt. Add 1080x1920 layout. Change-Id: Iaa2f44cb707167e66f935452f076ba00e68a2aa4
2013-03-11Remove mutex from file seselectorDees_Troy1-12/+4
mutex would, in some rare cases fail to lock and cause a freeze of the GUI. Also restored some code that was removed before and should not have been removed to fix a bug with folder selection where you select the same file or folder twice (e.g. select a backup on the restore page, press back, then select that backup again.)
2013-03-04More file selector fixesDees_Troy1-12/+30
Fix a freeze that occurs when you move or delete a file in the file manager Make file sort buttons work again Change-Id: Ifcb68edf3c29c475946d538748729485d0840842
2013-02-28Fix file selector crashDees_Troy1-13/+18
Sometimes a var change event came in while the file selector was being rendered. Changes to the mFolderList or mFileList vectors sometimes resulted in a crash. This patch set moves the GetFileList call to the Render function to prevent the vectors from changing while the render is taking place.
2013-02-27Add fast scroll bar to fileselectorVojtech Bocek1-2/+94
Also fix build problems with libblkid in CM7 Signed-off-by: Vojtech Bocek <vbocek@gmail.com> Change-Id: I1cd4573e25b247171e4bd8cc05b70543f897a454
2013-02-21Check for root and root perms and offer to install/fixDees_Troy1-4/+4
Also fix sort order for file selector by date and file sizes Change-Id: Idff9fe4232c19d4ed1082e78fabe6f921aa0a114
2013-02-15Add highlight to file selectorDees_Troy1-3/+62
2013-01-28file manager updates for exFATDees_Troy1-2/+9
Change-Id: I06fa6120a975cbc3d4eef9bc2ca034ec716740ee
2013-01-25Fix file manager displays empty list when folder is deletedDees_Troy1-14/+14
2012-09-27Display symlinks and block devices in file managerDees_Troy1-1/+1
2012-09-05TWRP-ify AOSP codeDees_Troy1-0/+833
Pull in most TWRP sources Stub out partition management code Make it compile -- probably will not boot Kind of a mess but have to start somewhere