aboutsummaryrefslogtreecommitdiff
path: root/lumina-fm/widgets/DirWidget.cpp
Commit message (Collapse)AuthorAge
* Rearrange the Lumina source tree quite a bit:Ken Moore2016-04-25
| | | | Now the utilites are arranged by category (core, core-utils, desktop-utils), so all the -utils may be excluded by a package system (or turned into separate packages) as needed.
* Convert the ZFS snapshot timestamp label into a button with a dropdown menu ↵Ken Moore2016-02-05
| | | | of all the snapshots by name (same time-ordered list: oldest->newest). This allows the user to go into a specific snapshot instead of using the time slider.
* Clean up the thumbnail loading routine a bit more in lumina-fm. Due to the ↵Ken Moore2016-02-04
| | | | multi-threaded nature of the loader function, we need to use signals/slots to return the newly-loaded QIcon to the main widget/thread.
* Added menu items for various functionality that was already availableSean Long2016-02-01
| | | | | just not from the main application menu. When adding the shortcuts I used the defacto standards that are used in many *nix applications.
* Generally in GUI's menu items that popup a window show '...' at the endSean Long2016-02-01
| | | | | of the menu item. Added the a few missing '...' to the popup context menu in lumina-fm.
* Fix up a bug with the relative snapshot path calculation when switching ↵Ken Moore2015-10-21
| | | | between snapshots.
* Clean up the copy/cut/paste/delete keyboard shortcuts. Now the shortcuts are ↵Ken Moore2015-10-15
| | | | registered in the main window, and it passes the signal to the currently-active browser for evaluation/action. This allows the shortcuts to work no matter what window/widget is currently active.
* Update the lumina-fm thumbnail loader to run in a *truly* separate thread ↵Ken Moore2015-10-15
| | | | from the main process using QtConcurrent. This keeps the ui completely interactive while still loading all the images.
* Fix the status text loading in lumina-fm so that there is never any ↵Ken Moore2015-10-15
| | | | duplication of information.
* Fix a crash in the thumbnail loading routine where an invalid item can ↵Ken Moore2015-10-14
| | | | accidentally get passed through to the loading mechanisms (usually after a drop event or other file operations).
* Clean up some more of lumina-fm:Ken Moore2015-10-14
| | | | | | | 1) Put the status label on a line below all the buttons (they get crushed together with multiple columns) 2) Fix the time-based event processing when loading a directory (1/2 second updates now) 3) Update the drag/drop indicator items based on the directory underneath. 4) Fix the F5 keyboard shortcut to refresh a directory.
* Another large speed boost for lumina-fm:Ken Moore2015-10-12
| | | | | | | 1) When refreshing a directory - don't re-load any already-loaded thumbnails 2) When loading the directory items or loading thumbnails, don't use a hard-coded item count for when to processEvents, instead use a time-based system (process events every second of loading time). This allows fast systems to use their speed while not penalizing slow systems) Also disable the use of the backend file cache for lumina-fm: the time saved is so small that it is not worth the risk of missing changes to directory contents on rapid refreshes.
* Make sure that when loading thumbnails, it only runs processEvents every 3 ↵Ken Moore2015-10-08
| | | | items (speeds things up quite a bit).
* Ensure that item selection is preserved when switching between ↵Ken Moore2015-10-08
| | | | basic/detailed list modes in lumina-fm.
* Quick update to just clear that internal "needThumbs" variable every time ↵Ken Moore2015-09-25
| | | | the dir loads - it gets rebuild later on when loading the items into the viewer.
* Change how the thumbnails are loaded in lumina-fm. Now it loads the entire ↵Ken Moore2015-09-25
| | | | directory up front with placeholder icons for image files - then kicks off a background thumbnail process afterwards to gradually convert the placeholders into thumbnails. This allows the user to instantly start to browse/use the directory while the thumbnails are still being loaded (if on a slow system or have tons of large image files to read).
* Fix up the active browser detection routine, ensure the browser gets updated ↵Ken Moore2015-09-25
| | | | after creating new files/dirs (just in case the filesystem does not report changes properly), and ensure that clicking the slideshow/player buttons always opens the player (even if an invalid file is selected at that moment).
* Make sure that a directory does not refresh more than once a second from a ↵Ken Moore2015-09-23
| | | | file within the directory getting changed.
* Make the snapshot load/reload operations "active", in that it will detect ↵Ken Moore2015-09-17
| | | | when the list of snapshots has changed and will reload the snapshots shown in the UI on demand.
* Always run the "loadSnaps" signal on dir load - this should ensure that no ↵Ken Moore2015-09-16
| | | | snapshots were removed while the user was browsing the dir.
* Fix a bug with the detection/usage of the snapshot relative paths when ↵Ken Moore2015-09-11
| | | | calculating the path to switch to a new snapshot. Also disable the "go up" functionality if going to a snapshot where the current dir does not exist.
* Quick fix for an enumeration replacement: This same bug still exists in ↵Ken Moore2015-09-11
| | | | CQTreeWidgetItem (assumes the DirWidget::DetailTypes enumeration always matches the column ordering) - but since re-ordering the columns is not a user-configurable yet, this does not cause any problems at the moment (need to find a way to embed the column type into the QTreeWidgetItem - no easy way to get the correlation at teh moment within the CQTreeWidgetItem routine)
* Forget delete 2 unused variablesCarlos Bohórquez2015-09-11
|
* Static variables not needed nowCarlos Bohórquez2015-09-11
|
* Several changesCarlos Bohórquez2015-09-11
| | | | | | | | | | | | | | | | | Use the global variable sessionsettings_config_file in all places that must be used. QSettings::setPath was already setted so it's not needed. Deleted. Instead using variable for date and time format in case user settings aren't setted, now we go to Qt::DefaultLocaleShortDate. To perform this operation, we must work with Date and Time separately. Now DirWidget::date_format is an QStringList, first item for date and second for time. The QDateTime with format "yyyyMMddhhmmsszzz" is stored on whatsThis variable for being used in sort operations. CQTreeWidgetItem operator< function has been simplified. Now, to check dates, we used the value stored in whatsThis.
* Solves issue 11400Carlos Bohórquez2015-09-10
| | | | The functions to set dates on lumina-FM now use user preferred settings.
* Solves issue 11233Carlos Bohórquez2015-09-09
| | | | | | | | A new class has been created for manage the files displayed in QTreeWidget. This class inherits from QTreeWidgetItem and only redefines the operator< function. Now it's possible order by size and dates.
* Make sure to run the user-input dir path through the input fix/replacement ↵Ken Moore2015-09-09
| | | | routine in LuminaUtils.
* Solves issue 11232Carlos Bohórquez2015-09-08
| | | | | | After parsing the CIDR, if it's empty then we put "/". Now,it's possible to go to "/" using "up arrow" Now, we check if CIDR finishes in "/" AND CIDR is bigger than 1.
* Make sure that the removal verification dialog puts the list of items in the ↵Ken Moore2015-09-08
| | | | "detailed" text of the message box - otherwise it causes size issues if there are lots of items.
* Fix up the "back" functionality for mouse4 clicks.Ken Moore2015-09-08
|
* Couple minor adjustments:Ken Moore2015-09-02
| | | | | 1) Move the processEvents call down to every 15 items instead of 20 (just in case a slower system) 2) recalculate the relative snapshot path on every snapshot slider change (fixes a random issue where it uses the previous dir calculation, not the current dir path).
* Add support for the mouse "back" button (normally Mouse4, but may be set ↵Ken Moore2015-08-31
| | | | | | through X to something else). Also fix a minor bug in saving/loading the last history item for a browser.
* Another minor increase in speed from the dir loader: only processEvents ↵Ken Moore2015-08-28
| | | | every 20 items, but be sure to processEvents after clearing the widget before the item loop is started (to ensure it is blanked out right away).
* Make the processEvents() call only happen every 10 items loaded - this makes ↵Ken Moore2015-08-28
| | | | the directory loading routine almost an entire order of magnitude faster.
* Add a couple tiny timing fixes for the lumina-fm backend:Ken Moore2015-08-28
| | | | | 1) Rollback the directory checked timestamp by 1/2 second from teh current time when doing a sync (just in case multiple fast changes to the dir). 2) Activate the dir watcher on all the files as well (not just the dir), and send all those signals into a collection timer with a 1/10 second delay to combine any simultaneous signals/changes into a single update call.
* Fix up the re-loading of the scrollbar location on directory update.Ken Moore2015-08-28
|
* Put a few more "stopload" checks into the dir loading routine (after all the ↵Ken Moore2015-08-28
| | | | items are already loaded - when doing the info updating).
* Another small update for lumina-fm: when re-loading a directory (or ↵Ken Moore2015-08-28
| | | | switching between snapshots of the same directory), re-use the existing items whenever possible. This prevents "flickering" for fast reloads and preserves the users current selection and scroll location.
* Add a new "ScrollDialog" to lumina-fm for instances where a lot of text ↵Ken Moore2015-08-27
| | | | might be getting shown to the user. Use this dialog for checksums as well.
* Get drag and drop functionality completely working (Internal only - will not ↵Ken Moore2015-08-27
| | | | talk to other applications)
* Re-enable the directory statistics output for lumina-fm.Ken Moore2015-08-27
|
* Ensure that the current directory loading is stopped when starting to load a ↵Ken Moore2015-08-27
| | | | new directory.
* Add support for the "New [File/Dir]" buttons back into lumina-fm.Ken Moore2015-08-26
|
* Clean up some of the new widgets/functionality:Ken Moore2015-08-26
| | | | | | | 1) Fix a layout issue with the DirWidget 2) Fix the GoToNext functionality in the multimedia player 3) Ensure the multimedia player is stopped if the tab is closed 4) Clean up some dead space in the DirWidget
* Commit a major overhaul of lumina-fm: PLEASE TEST!!Ken Moore2015-08-25
| | | | | | | | | | | | | | | | | 1) Seemlessly embed the ZFS rollback options into the main dir browser (simple time slider at the top). 2) Take all the main widgets and put them into separate classes/files (widgets/*) 3) Add support for both tabs and columns for multiple directory viewing 4) Remove the "icon" view mode, and replace it with an icon sizing option (larger/smaller) 5) Add the ability for the multimedia player and slideshow viewer to be running within separate tabs while still browsing the system (new files will be added to the queue instead of replacing it) 6) Ensure that only selected files are added to the player/slideshow on demand. 7) Add the ability to zoom in/out on a slideshow image. KNOWN ISSUES: 1) The new file/dir functionality has not been replaced/re-implemented yet. 2) The drag and drop functionality has been removed until a new implementation is put in. PLEASE TEST: ZFS snapshot use, multimedia file player, browsing and other UI changes
* Copy the old MainUI class over as an emergency backup in preparation for ↵Ken Moore2015-08-21
| | | | tying all the new UI/widgets in.
* Another checkpoint in the lumina-fm backend overhaul - still not tied into ↵Ken Moore2015-08-20
| | | | the general build/use yet.
* Commit some more work-in-progress on the new lumina-fm backend.Ken Moore2015-08-20
bgstack15