Commit graph

25 commits

Author SHA1 Message Date
Peter Penz 5798e081f5 Let additional mouse buttons trigger history navigation
Thanks to Sebastian Dörner for the patch!

REVIEW: 101335
BUG: 181823
FIXED-IN: 4.9
2012-03-19 16:53:53 +01:00
Frank Reininghaus 0b0b2cba93 Make PageUp/PageDown work in Dolphin's new view engine
BUG: 288748
FIXED-IN: 4.8.0
REVIEW: 103721
(cherry picked from commit e56a363aa6)
2012-01-18 10:46:47 +01:00
Frank Reininghaus 555364c006 If an item is clicked to trigger it, clear the rest of the selection
Note that the clearing is not done on mouse press, but on mouse release.
The reason is that there are situations when multiple items are selected
and pressing the mouse on one of them should not clear the selection
(e.g., drag and drop of multiple items).

BUG: 290854
REVIEW: 103703
FIXED-IN: 4.8.0
(cherry picked from commit 9f711b5f2e)
2012-01-16 20:03:49 +01:00
Peter Penz 33eea8c929 Folders Panel: Activate folders on single-click
Even if double-click is used as default setting, the folders panel should
open folders with a single-click.

BUG: 289971
FIXED-IN: 4.8.0
2012-01-05 20:44:46 +01:00
Peter Penz 8403383926 Minor cleanup: Rename m_keyboardAnchorXPos to m_keyboardAnchorPos 2011-12-26 22:44:26 +01:00
Peter Penz 118fe89449 Fix keyboard issues when groups are enabled
When groups are enabled in Dolphin the key-up and key-down keys did not behave
consistent in comparison to traditional views or like done in editors.

CCBUG: 261995
CCBUG: 262038
2011-12-26 22:22:50 +01:00
Peter Penz 023ab306c7 Hide tooltips when dragging items 2011-12-18 20:29:34 +01:00
Peter Penz 3719ce7d2a Reactivate the "Open folders during drag operations" feature
The feature got temporary lost due to the port to the new view
engine.
2011-11-29 22:03:26 +01:00
Peter Penz 2438b61d8e Bring back the selection-markers
Still some finetuning is necessary, but lets first bring
back the missing features from Dolphin 1.x to 2.0 before starting
with this.
2011-11-13 16:21:56 +01:00
Peter Penz 6551c000fc Context menu cleanups
- Open the context menu on the mouse-press event, not on the
  mouse-release event.
- Provide an explicit position-information and don't use
  QCursor::pos(). This fixes the issue that opening a context-menu
  by the keyboard opens below the cursor.
- Provide different signals in the KItemListController for
  the different context-menu types (item vs. view vs. header).
- Implement turning on/off roles by the header-context-menu.
2011-10-08 21:43:55 +02:00
Peter Penz aee6535043 Provide scrollbar for large items
If an item does not fit into the available width/height a scrollbar
should be provided (e.g. typically this represents the horizontal
scrollbar in the details-view where the width can be larger than
the than the visible width).

Currently the interaction with the scrollbar is not implemented but
this will be a quite minor task in comparison to this patch.
2011-09-25 19:55:42 +02:00
Peter Penz 7a91492cff Improved drag and drop support 2011-09-04 17:41:15 +02:00
Peter Penz d2a3510cc3 Improve autoscrolling
- Start autoscrolling when doing a dragging
- Start autoscrolling with a small delay
2011-09-01 23:09:31 +02:00
Peter Penz 1b88652b85 Renamed some signals for consistency with KItemViews classes 2011-08-29 20:14:33 +02:00
Tirtha Chatterjee 6e6b4ce75c Added the functionality to activate items by pressing 'enter' or 'return' key on them, equivalent to a mouse click.
REVIEW: 102450
2011-08-29 21:13:36 +05:30
Tirtha Chatterjee afca8efa26 Added support for highlighting items by typing their name on the keyboard. 2011-08-29 04:12:05 +05:30
Peter Penz bf20b404c8 Dragging and selection fixes
- Don't clear the selection on mouse-press events, do it (if
  allowed) in the mouse-release-event. Otherwise dragging of
  multiple selected items would not be possible.
- Don't clear the selection when the context-menu gets opened
  by a right-click.
- Fix issue that dragging is not possible after the first
  drop that has been canceled.
2011-08-24 21:31:19 +02:00
Peter Penz 8401080778 Interface cleanups for drag and drop support 2011-08-24 18:12:52 +02:00
Peter Penz 5ba4aeba3e Rough draft for getting back drag and drop support
Includes a lot of TODOs but is a base for getting back full drag
and drop support quite soon.
2011-08-23 20:58:22 +02:00
Peter Penz 6a228cdbd9 Fix rubberband-issue in combination with Shift- and Control-key
The old selection must be remembered before starting the rubberband
selection, otherwise it would not be possible anymore to deselect
items that have been selected by the rubberband itself.
2011-08-20 23:27:23 +02:00
Peter Penz 4aedb07674 Select items when using the rubberband 2011-08-20 22:53:19 +02:00
Peter Penz dbe2152912 Provide basic rubberband functionality
This is just a rough draft: The rubberband gets visible and an
automatic scrolling is done if the autoscroll-margins have been
reached. However currently no items get selected yet. Currently
the autoscrolling has a severe bug if the scrollbars are manually
changed before or after a rubberband selection.
2011-08-18 23:14:30 +02:00
Peter Penz 3957884bf2 Improvements for selections, smooth scrolling, tooltips and info-panel 2011-08-09 16:22:36 +02:00
Frank Reininghaus 94f3320444 Fix unwanted triggering of items
An item should only be triggered after a mouse release
event if the mouse press has been done at the same position.
2011-08-02 09:25:41 +02:00
Peter Penz f23e9496f3 Merged very early alpha-version of Dolphin 2.0
Dolphin 2.0 will get a new view-engine with the
following improvements:
- Better performance
- Animated transitions
- No clipped filenames due to dynamic item-sizes
- Grouping support for all view-modes
- Non-rectangular selection areas
- Simplified code for better maintenance

More details will be provided in a blog-entry during
the next days.

Please note that the code is in a very
early alpha-stage and although the most tricky parts
have been implemented already very basic things like
drag and drop or selections have not been pushed yet.
Those things are rather trivial to implement but this
still will take some time.
2011-07-30 20:13:41 +02:00