[umbrello-devel] [umbrello] [Bug 116354] Find in diagram function

Ralf Habacker ralf.habacker at freenet.de
Fri Apr 25 10:42:46 UTC 2014


https://bugs.kde.org/show_bug.cgi?id=116354

--- Comment #10 from Ralf Habacker <ralf.habacker at freenet.de> ---
Git commit e13d4c315c1b648878590a19ebbf8df8e0d8955c by Ralf Habacker.
Committed on 21/04/2014 at 21:17.
Pushed by habacker into branch 'master'.

Add find text in tree view, current diagram and all diagrams feature.

The implementation adds menu entries and keyboard shortcuts for 'find', 'find
next' and
'find previous' functions.

On start of a find operation a dialog will be opened, which allows to set the
find filter
and a simple search text. Depending on the selected filter all tree view
elements or elements
from the current or all diagrams are compared case insensitive against the
search text.
The results are stored for later access and the first result will be displayed
as described below.

Running 'find next' or 'find previous' using the 'tree view' filter will select
the related search result,

Running 'find next' or 'find previous' with current diagram or all diagrams
filter set, shows the related
view and selects the requested widget, which is positioned in the center of the
view with a 100% zoom.
If a related tree view item is present, it will also be selected.

The implementation is undo/redo proof, because it stores scene/object/widget
id's instead of pointers.

M  +12   -0    umbrello/CMakeLists.txt
A  +58   -0    umbrello/dialogs/finddialog.cpp     [License: GPL (v2+)]
A  +41   -0    umbrello/dialogs/finddialog.h     [License: GPL (v2+)]
A  +106  -0    umbrello/dialogs/finddialog.ui
A  +117  -0    umbrello/finder/findresults.cpp     [License: GPL (v2+)]
A  +50   -0    umbrello/finder/findresults.h     [License: GPL (v2+)]
A  +85   -0    umbrello/finder/umldocfinder.cpp     [License: GPL (v2+)]
A  +38   -0    umbrello/finder/umldocfinder.h     [License: GPL (v2+)]
A  +19   -0    umbrello/finder/umlfinder.cpp     [License: GPL (v2+)]
A  +62   -0    umbrello/finder/umlfinder.h     [License: GPL (v2+)]
A  +84   -0    umbrello/finder/umllistviewfinder.cpp     [License: GPL (v2+)]
A  +34   -0    umbrello/finder/umllistviewfinder.h     [License: GPL (v2+)]
A  +111  -0    umbrello/finder/umlscenefinder.cpp     [License: GPL (v2+)]
A  +40   -0    umbrello/finder/umlscenefinder.h     [License: GPL (v2+)]
A  +107  -0    umbrello/findresults.cpp     [License: GPL (v2+)]
A  +48   -0    umbrello/findresults.h     [License: GPL (v2+)]
M  +65   -0    umbrello/uml.cpp
M  +5    -0    umbrello/uml.h
M  +2    -0    umbrello/umllistview.h
M  +1    -0    umbrello/umlobject.h
M  +13   -0    umbrello/umlscene.cpp
M  +2    -0    umbrello/umlscene.h

http://commits.kde.org/umbrello/e13d4c315c1b648878590a19ebbf8df8e0d8955c

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the umbrello-devel mailing list