57 Commits

Author SHA1 Message Date
Nyall Dawson
4da1ce8404 Drop redundant virtual keywords on overrides
Run clang-tidy modernize-use-override to remove all the redundant
virtual keywords from overridden methods, and add some missing
overrides.

Another benefit is that this has also added the overrides
on destructors, which will cause a build failure if a base
class is missing a virtual destructor.
2017-12-16 08:49:36 +10:00
Nyall Dawson
8df67111cd [needs-docs][browser] Allow renaming favorite items
Otherwise favorites can be useless if you're trying to favorite
a long path

Fixes #6780
2017-12-14 15:44:39 +10:00
Nyall Dawson
fec31f8da2 Sort browser items
Implements a sort key for browser items, allowing them to be
correctly sorted.

Fixes #17591
2017-12-13 15:06:12 +10:00
Nyall Dawson
42676dc93c Move some getters which are incorrectly marked as slots,
remove some unnecessary 'const's from signals

Thanks to clazy const-signal-or-slot check
2017-10-09 11:53:06 +10:00
Nyall Dawson
04a9cd9211 Add more consistency to doxygen formatting 2017-10-06 08:19:00 +10:00
Nyall Dawson
49b426d951 Make doxygen_space script convert multiline //! comments
Because:
- the /** format is much more prevalent throughout QGIS
- sipify works correctly with /**
2017-10-06 07:55:52 +10:00
Alessandro Pasotti
850fed557f Const getter and api break docs 2017-09-12 15:12:37 +02:00
Alessandro Pasotti
151cd080c9 Typo delayied -> delayed 2017-09-12 15:01:45 +02:00
Alessandro Pasotti
22bd2a35f8 Browser: removed redundant refresh signals 2017-09-12 15:01:45 +02:00
Alessandro Pasotti
3dba091b86 Share QgsBrowserModel among browser instances 2017-09-12 15:01:45 +02:00
Juergen E. Fischer
4f9a9e0360 s/( )/()/; s/== /== /; s/!= /!= /; 2017-07-19 09:19:37 +02:00
Alessandro Pasotti
e57399bae0 [bugfix] Sync the dialogs connections when changed from the browser
For now it's only for WMS but you get the idea.

There is a new abstract base class for the source select
dialogs, that will grow with common behavior for all
the select dialogs.

Signals are forwarded from the (root) data items to the
app and then delivered to the various browser instances
and to the unified layer dialog.

A change in one of the browser items should trigger a
refresh in all the other browsers and dialogs.
2017-07-18 11:38:53 +02:00
Denis Rouzaud
10d34ece02 sipify batch
* QgsBearingUtils
    * QgsBrowserModel
    * QgsColorScheme, QgsColorSchemeRegistry
    * QgsContextHelp
    * QgsCoordinateReferenceSystem
    * QgsCoordinateTransform
    * QgsFeedback
2017-04-24 09:32:39 +02:00
Nyall Dawson
dfb5f56f80 @see -> \see 2017-04-03 13:18:35 +10:00
Nyall Dawson
e47073b1e1 \return -> \returns (for consistency) 2017-04-03 13:18:35 +10:00
Nyall Dawson
e4daf8ea62 @return(s) -> \return(s) 2017-04-03 13:18:13 +10:00
Nyall Dawson
11dcfd935c @param -> \param 2017-04-03 13:17:27 +10:00
Nyall Dawson
0326f7142d Change doxygen @note to \note 2017-04-03 13:16:03 +10:00
Matthias Kuhn
fb91ed7395 Use "\since" instead of "@note added in" 2017-04-03 01:06:33 +02:00
Nyall Dawson
32326ab5df Replace "python" with "Python" in docs 2017-04-03 08:33:56 +10:00
Denis Rouzaud
40c056cae0 run astyle on src/core 2017-03-03 09:09:37 +01:00
Nyall Dawson
d19e70700f Ensure all pointer variables are initialized to nullptr 2017-02-18 20:23:18 +10:00
Matthias Kuhn
b1e226c069 Add missing #include "qgis_core.h" 2017-01-05 16:49:00 +01:00
Nyall Dawson
2a34af8bd1 Optimise destructors (pt 2) 2016-12-30 15:48:07 +10:00
Nyall Dawson
bd950616ac Rename visible "favourite" strings to "favorite", change API to
use "favorite"
2016-10-31 08:00:19 +10:00
Nyall Dawson
1367fd09fc Prepare commit converts single line doxygen block format
Flips single line doxygen comments to use the proper single line
format:

/*!< comment */   to   //!< Comment

and

/** comment */    to   //! Comment
2016-10-25 09:17:39 +10:00
Nyall Dawson
0a056f8a1f Add doxygen test to force use of \ingroup for classes
Using the group tag helps keep the API docs organized
2016-07-04 19:57:13 +10:00
Nyall Dawson
14f9a88811 Follow up c6c8277, fix bad behaviour of QgsBrowserModel introduced
by 44d9b35 (fix #14296)
2016-02-16 14:12:54 +11:00
Juergen E. Fischer
a90be95f7b sip sync 2016-02-14 03:50:49 +01:00
Nyall Dawson
881074b194 Boost coverage of SIP bindings
Now all classes and members are either exposed to bindings or marked
as "not available in Python bindings" in the docs.

Drop test thresholds to 0. Now it should be much easier to determine
what missing members have been added which are causing test
failures.
2016-01-05 11:16:15 +11:00
Nyall Dawson
576875e998 Followup 320c696 use clang-modernize to replace 0/NULL use with nullptr 2015-12-15 11:24:51 +11:00
Nathan Woodrow
bc67c082ad Add missing SIP and docs 2015-12-11 14:11:02 +10:00
Nathan Woodrow
d021100e5e [FEATURE] Allow hiding paths from the browser panel 2015-12-11 10:21:07 +10:00
Nyall Dawson
f1633a1796 Change all signals to use const refs for non trivial objects 2015-10-26 22:46:25 +11:00
Nyall Dawson
c49b5b777f Change a lot of arguments to const references in core/gui
Rationale:
- there was a lot of large objects passed by value, so potentially
there's a speed bump from this
- even for implicitly shared classes like QString/QList there's still
a (small) cost for copying the objects when there's no reason to
- it's the right thing to do!
2015-10-07 12:02:04 +11:00
Denis Rouzaud
9e3183c63f Revert "sort includes"
This reverts commit 2b7d3d3c73b50ba6dc74abec6dd652ff1b87c0ec.
2015-06-10 14:54:47 +02:00
Denis Rouzaud
2b7d3d3c73 sort includes 2015-06-10 13:59:08 +02:00
Radim Blazek
bf22ff5064 browser save/restore state moved to new class QgsBrowserTreeView 2015-01-20 18:46:12 +01:00
Juergen E. Fischer
313f2c8de0 OVERRIDE macro breaks globeplugin (OVERRIDE is an enum value in OpenSceneGraph)
replace 'OVERRIDE' macro with 'override' keyword in code and define it an empty
macro where C++11 is not available (followup 466f2563efd)
2015-01-16 08:22:52 +01:00
Nyall Dawson
6cb41149ad Add OVERRIDE to definitions (pt 1) 2015-01-14 19:39:35 +11:00
Radim Blazek
f79dbcd897 browser restore state fix 2014-12-15 12:31:38 +01:00
Radim Blazek
d84af0d760 populating browser icons in threads moved to QgsDataItem 2014-12-12 12:28:07 +01:00
Radim Blazek
6aa84c9726 QgsBrowserWatcher made QFutureWatcher descendant 2014-11-30 17:21:23 +01:00
Juergen E. Fischer
d4f64d9bde indentation update and typo fixes 2014-11-13 23:13:13 +01:00
Radim Blazek
cbf1d33b9c re-enabled init expand to last expanded in browser 2014-11-13 11:27:12 +01:00
Radim Blazek
40bb180d9a expand browser items in threads 2014-11-12 22:18:19 +01:00
Radim Blazek
c78a3783a9 browser last expanded better 2014-11-07 11:13:02 +01:00
Juergen E. Fischer
fa0a9b75fe don't reload the whole browser model when the project home changes (fixes #7520) 2013-05-12 23:23:24 +02:00
Juergen E. Fischer
73dc9b19be Include project home in browser toplevel browser (implement #6955)
[API] add QgsProject::homePath()
[API] make QgsBrowserModel::reload() a public slot
2013-01-07 20:26:40 +01:00
Etienne Tourigny
3c07dd02e1 do not populate items in rowCount(), use canFetchMore() and fetchMore() instead 2012-11-03 19:19:15 -02:00