8 years agoMerge r1062645: v0.9.97
Andreas Pakulat [Tue, 15 Dec 2009 19:01:26 +0000 (19:01 -0000)]
Merge r1062645:
Revert r1061048, which caused a serious regression, which made for example parsing the kdelibs project fail with the assertion

This fix should be included in the upcoming beta if anyhow possible.

8 years agoProof-reading: change from US to British English (cancelled -> canceled).
Andrew Coles [Sat, 12 Dec 2009 00:36:53 +0000 (00:36 -0000)]
Proof-reading: change from US to British English (cancelled -> canceled).

8 years agoShow session description in SessionDialog. For EditRole use just the name.
Niko Sams [Thu, 10 Dec 2009 19:42:27 +0000 (19:42 -0000)]
Show session description in SessionDialog. For EditRole use just the name.

8 years agoRename action in session menu when session name changed
Niko Sams [Thu, 10 Dec 2009 19:42:24 +0000 (19:42 -0000)]
Rename action in session menu when session name changed

8 years agoKActionCollection::removeAction already deletes the action, don't delete it again.
Niko Sams [Thu, 10 Dec 2009 19:42:21 +0000 (19:42 -0000)]
KActionCollection::removeAction already deletes the action, don't delete it again.
BUG: 218068

8 years agoChange the progress output of duchainify to "processed X out of Y" instead of "X...
David Nolden [Thu, 10 Dec 2009 15:33:46 +0000 (15:33 -0000)]
Change the progress output of duchainify to "processed X out of Y" instead of "X waiting"

8 years agoAlways return false on canAllocateItem(..) if the total available space is not enough
David Nolden [Thu, 10 Dec 2009 14:56:19 +0000 (14:56 -0000)]
Always return false on canAllocateItem(..) if the total available space is not enough

8 years agoActually close the current window on "Start New Session"
David Nolden [Thu, 10 Dec 2009 12:31:05 +0000 (12:31 -0000)]
Actually close the current window on "Start New Session"

8 years agoRause the default file-count for 'simplified parsing' to 100000 files instead of...
David Nolden [Thu, 10 Dec 2009 12:16:32 +0000 (12:16 -0000)]
Rause the default file-count for 'simplified parsing' to 100000 files instead of 10000, to reduce the probability of using this accidentally. It may still lead to reduced duchain quality.

8 years agoRe-add the current document path to the caption, additionally to the session, and...
David Nolden [Thu, 10 Dec 2009 02:06:46 +0000 (02:06 -0000)]
Re-add the current document path to the caption, additionally to the session, and in a slightly prettified version.
I noticed that I kind of rely on this information.

8 years ago- Allow requesting template instantiations "only if they already exist"
David Nolden [Thu, 10 Dec 2009 02:04:51 +0000 (02:04 -0000)]
- Allow requesting template instantiations "only if they already exist"
- Use that to not instantiate bogus templates during "DUContext::clearImportedParentContexts()". This fixes a duchain problem with templates in the inheritance chain.

8 years agoIf the relative path for some reason starts with "./", strip that prefix.
David Nolden [Thu, 10 Dec 2009 02:02:27 +0000 (02:02 -0000)]
If the relative path for some reason starts with "./", strip that prefix.

8 years agoReduce amount of warnings
David Nolden [Wed, 9 Dec 2009 21:28:44 +0000 (21:28 -0000)]
Reduce amount of warnings

8 years agoReduce amount of warnings
David Nolden [Wed, 9 Dec 2009 21:28:30 +0000 (21:28 -0000)]
Reduce amount of warnings

8 years agoActually make the optimization work, that extremely reduces the effort of shouldDoDUC...
David Nolden [Wed, 9 Dec 2009 21:27:47 +0000 (21:27 -0000)]
Actually make the optimization work, that extremely reduces the effort of shouldDoDUChainReferenceCounting .

8 years agoremove obsolete connect
Milian Wolff [Wed, 9 Dec 2009 20:26:43 +0000 (20:26 -0000)]
remove obsolete connect

8 years agoproperly exit when adding an empty dir
Milian Wolff [Wed, 9 Dec 2009 20:26:22 +0000 (20:26 -0000)]
properly exit when adding an empty dir

8 years agodo the same optimization as in the last commit, but this method doesn't seem to be...
Milian Wolff [Wed, 9 Dec 2009 20:06:53 +0000 (20:06 -0000)]
do the same optimization as in the last commit, but this method doesn't seem to be called that often (at least for php projects)

8 years agodon't call shouldDoDUChainReferenceCounting twice in operator= of IndexedQualifiedIde...
Milian Wolff [Wed, 9 Dec 2009 18:34:12 +0000 (18:34 -0000)]
don't call shouldDoDUChainReferenceCounting twice in operator= of IndexedQualifiedIdentifier, reduces the calls to it by 10% and to QMutex::lock/unlock by 6%

8 years agomake DUChain indexedIdentifier return a const&, reduces number of shouldDoDUChainRefe...
Milian Wolff [Wed, 9 Dec 2009 18:30:31 +0000 (18:30 -0000)]
make DUChain indexedIdentifier return a const&, reduces number of shouldDoDUChainReference and QMutex::lock and QMutex::unlock calls by 30%

8 years agoFix missing return value. Please check.
David Faure [Wed, 9 Dec 2009 11:22:58 +0000 (11:22 -0000)]
Fix missing return value. Please check.
CCMAIL: mail@milianw.de

8 years agoSet the imports-cache when assigning a new ParsingEnvironmentFile
David Nolden [Wed, 9 Dec 2009 02:52:01 +0000 (02:52 -0000)]
Set the imports-cache when assigning a new ParsingEnvironmentFile

8 years agoRemove the "Close All Projects" button, and instead make the "Start New Session"...
David Nolden [Wed, 9 Dec 2009 02:51:11 +0000 (02:51 -0000)]
Remove the "Close All Projects" button, and instead make the "Start New Session" button also close the current session.

8 years agoActually request some features when updating. This fixes the regression that the...
David Nolden [Wed, 9 Dec 2009 02:49:00 +0000 (02:49 -0000)]
Actually request some features when updating. This fixes the regression that the "reparse all" button broke everything instead of fixing anything.

8 years agodocument**view** is a GUI plugin
Milian Wolff [Tue, 8 Dec 2009 16:19:19 +0000 (16:19 -0000)]
document**view** is a GUI plugin

8 years agorevert r1059963 which broke duchainify also on machines with a running xserver (since...
Milian Wolff [Tue, 8 Dec 2009 15:47:31 +0000 (15:47 -0000)]
revert r1059963 which broke duchainify also on machines with a running xserver (since it shows the underlying problems in kdevplatform), add todo

8 years agorevert 1060298, 1060309 and 1060314 - made the real kdevelop app crash, sorry guys...
Milian Wolff [Tue, 8 Dec 2009 15:36:32 +0000 (15:36 -0000)]
revert 1060298, 1060309 and 1060314 - made the real kdevelop app crash, sorry guys - should have tested it properly

8 years agoDoxyfile removed
Jonathan Schmidt-Dominé [Tue, 8 Dec 2009 15:29:35 +0000 (15:29 -0000)]
Doxyfile removed

8 years agoBetter react to cancelations.
Aleix Pol Gonzalez [Tue, 8 Dec 2009 15:24:18 +0000 (15:24 -0000)]
Better react to cancelations.
Internacionalization for strings (forgot that on the last commit).

8 years agoAdd todo with some #ifdeffed code, we need to think about whether we want to close...
David Nolden [Tue, 8 Dec 2009 14:58:25 +0000 (14:58 -0000)]
Add todo with some #ifdeffed code, we need to think about whether we want to close the current empty session when the user agrees to open a session instead of a selected project. Problem: There might be open files, and a debugger might be active..

8 years agoAdded working Doxyfile.
Jonathan Schmidt-Dominé [Tue, 8 Dec 2009 14:57:17 +0000 (14:57 -0000)]
Added working Doxyfile.

8 years agoSupport canceling import project jobs.
Aleix Pol Gonzalez [Tue, 8 Dec 2009 14:56:40 +0000 (14:56 -0000)]
Support canceling import project jobs.
It takes a while but at least works properly.

BUG: 215559

8 years agoinit the dpointer before trying to access e.g. the mainwindow
Milian Wolff [Tue, 8 Dec 2009 14:54:59 +0000 (14:54 -0000)]
init the dpointer before trying to access e.g. the mainwindow

8 years agoExtend the documentation a bit
David Nolden [Tue, 8 Dec 2009 14:54:00 +0000 (14:54 -0000)]
Extend the documentation a bit

8 years agoproperly initialize the d-pointer when initializing the uicontroller
Milian Wolff [Tue, 8 Dec 2009 14:49:24 +0000 (14:49 -0000)]
properly initialize the d-pointer when initializing the uicontroller

8 years agothe appwizard is a GUI plugin
Milian Wolff [Tue, 8 Dec 2009 14:37:05 +0000 (14:37 -0000)]
the appwizard is a GUI plugin

8 years agodo initialization in initialization() method, not in the ctor, fixes UiController...
Milian Wolff [Tue, 8 Dec 2009 14:35:03 +0000 (14:35 -0000)]
do initialization in initialization() method, not in the ctor, fixes UiController in NoUi mode

8 years agoUpdate the documentation by also noting that the simplified parsing will reduce the...
David Nolden [Tue, 8 Dec 2009 13:48:35 +0000 (13:48 -0000)]
Update the documentation by also noting that the simplified parsing will reduce the global quickopen and navigation abilities

8 years agoStop creating new parse-jobs during shutdown.
David Nolden [Tue, 8 Dec 2009 13:31:07 +0000 (13:31 -0000)]
Stop creating new parse-jobs during shutdown.
This should fix a possible crash during shutdown that involves "BackgroundParser::createParseJob()", I remember I've seen it somewhere, but couldn't find the bug-report.

8 years agoIRC now mentioned in TODO.
Jonathan Schmidt-Dominé [Tue, 8 Dec 2009 13:25:36 +0000 (13:25 -0000)]
IRC now mentioned in TODO.

8 years agoOnly change the list of open projects after either a project has been loaded that...
David Nolden [Tue, 8 Dec 2009 13:18:22 +0000 (13:18 -0000)]
Only change the list of open projects after either a project has been loaded that is not in the session yet, or after a project has been removed manually.
Not during shutdown, and not after only one of many session-projects have been loaded.
This fixes the problem that sessions could be 'killed' or damaged when the session was switched before all projects finished loading.

8 years agoDon't save the list of opened projects during cleanup.
David Nolden [Tue, 8 Dec 2009 13:06:50 +0000 (13:06 -0000)]
Don't save the list of opened projects during cleanup.
This fixes the problem that crashing during shutdown could lead to an empty list of opened files, thus 'killing' the session.

8 years agoClose the current KDevelop instance when _switching_ session, I guess that's the...
David Nolden [Tue, 8 Dec 2009 12:42:01 +0000 (12:42 -0000)]
Close the current KDevelop instance when _switching_ session, I guess that's the behavior expected by the user from a switch.

8 years agoRemove the "Reopen open projects on startup" option, which is inconsistent with sessi...
David Nolden [Tue, 8 Dec 2009 12:33:59 +0000 (12:33 -0000)]
Remove the "Reopen open projects on startup" option, which is inconsistent with session management

8 years ago- When trying to open a project that is part of another session, ask the user whether...
David Nolden [Tue, 8 Dec 2009 03:34:16 +0000 (03:34 -0000)]
- When trying to open a project that is part of another session, ask the user whether he wants to open the session instead. If he answers yes, the session is opened in an additional window.
- Rename sessions() to sessionNames() as it only returned the names.

8 years agoMake the "Close All Projects" button work nicer together with sessions. Instead of...
David Nolden [Tue, 8 Dec 2009 03:04:53 +0000 (03:04 -0000)]
Make the "Close All Projects" button work nicer together with sessions. Instead of removing all projects from the current session, it starts a new empty session, and closes the current one.

8 years ago- Add a "Start New Session" menu entry, that allows starting a new KDevelop instance...
David Nolden [Tue, 8 Dec 2009 02:51:57 +0000 (02:51 -0000)]
- Add a "Start New Session" menu entry, that allows starting a new KDevelop instance with an empty unnamed session
- Don't show unnamed and empty sessions in the menu, unless it's the currently open session

8 years agoShow the description of the current session in the window caption instead of the...
David Nolden [Tue, 8 Dec 2009 02:13:09 +0000 (02:13 -0000)]
Show the description of the current session in the window caption instead of the currently active document.
Reason: Ideally the window title describes what a window contains, and just the currently active document is a relatively useless information (maybe useful for an editor, but not for an IDE).
This is an experiment, up for discussion.

8 years agoStore the working-sets into sessions
David Nolden [Tue, 8 Dec 2009 02:09:09 +0000 (02:09 -0000)]
Store the working-sets into sessions

8 years agoDon't load currently active session again
David Nolden [Tue, 8 Dec 2009 02:08:06 +0000 (02:08 -0000)]
Don't load currently active session again

8 years ago- Allow managing sessions not only by the name, but also by their ID, which should...
David Nolden [Tue, 8 Dec 2009 01:46:08 +0000 (01:46 -0000)]
- Allow managing sessions not only by the name, but also by their ID, which should be the primary identifier, as there may be many sessions with the same name.
- Take the session to load from the KDEV_SESSION environment variable
- When the user selects another session in the menu, start a new KDevelop instance with the session open

8 years agoAdd 'Session::description()' to the interface
David Nolden [Tue, 8 Dec 2009 01:44:04 +0000 (01:44 -0000)]
Add 'Session::description()' to the interface

8 years agoOne more duchain lock is required here
David Nolden [Tue, 8 Dec 2009 01:43:29 +0000 (01:43 -0000)]
One more duchain lock is required here

8 years agoDon't crash when activating an empty working-set, which basically happens whenever...
David Nolden [Tue, 8 Dec 2009 00:49:56 +0000 (00:49 -0000)]
Don't crash when activating an empty working-set, which basically happens whenever there is no open document

8 years agoActivate the first view in the working set after loading it. Finally, an editor will...
Alexander Dymo [Mon, 7 Dec 2009 23:31:43 +0000 (23:31 -0000)]
Activate the first view in the working set after loading it. Finally, an editor will be focused on KDevelop startup!

8 years agoAvoid temporary switching to other area when loading the new working set:
Alexander Dymo [Mon, 7 Dec 2009 23:27:59 +0000 (23:27 -0000)]
Avoid temporary switching to other area when loading the new working set:
- this finally fixes ugly flickering on opening new file in kdevelop
- this works ok with split views (but please test and report me any bugs you find with this)
- updates are disabled on mainwindow, so user won't see view adding/removing

8 years agouse a no-gui KApplication, will lead to crash later on though when we have no XServer...
Milian Wolff [Mon, 7 Dec 2009 19:47:22 +0000 (19:47 -0000)]
use a no-gui KApplication, will lead to crash later on though when we have no XServer (in uiController)

8 years agoSVN_SILENT made messages (.desktop file)
Script Kiddy [Mon, 7 Dec 2009 10:19:26 +0000 (10:19 -0000)]
SVN_SILENT made messages (.desktop file)

8 years agoPrevent the user to save the file in the applychangeswidget, it should be changed...
Aleix Pol Gonzalez [Mon, 7 Dec 2009 02:07:43 +0000 (02:07 -0000)]
Prevent the user to save the file in the applychangeswidget, it should be changed programatically (when ok is clicked).

BUG: 203428

8 years agoShow the set of contained projects with each session in the menu, so you know what...
David Nolden [Mon, 7 Dec 2009 01:44:58 +0000 (01:44 -0000)]
Show the set of contained projects with each session in the menu, so you know what session you might want to start

8 years ago- Lock the duchain before acquiring the top-context. This solves an assertion that...
David Nolden [Mon, 7 Dec 2009 00:30:28 +0000 (00:30 -0000)]
- Lock the duchain before acquiring the top-context. This solves an assertion that could happen here after my recent changes to duchain.cpp
- Use the more precise standardContext(..) instead of chainForDocument(.). This should make the "Apply" button of the highlighting-dialog work more reliably.

8 years agoRemove connect to nonexisting slot
Niko Sams [Sun, 6 Dec 2009 17:06:44 +0000 (17:06 -0000)]
Remove connect to nonexisting slot

8 years agoMake the condition a bit clearer
David Nolden [Sun, 6 Dec 2009 13:36:44 +0000 (13:36 -0000)]
Make the condition a bit clearer

8 years agoUnrevert r1059205, and add more information about when the duchain needs to be locked...
David Nolden [Sun, 6 Dec 2009 12:00:33 +0000 (12:00 -0000)]
Unrevert r1059205, and add more information about when the duchain needs to be locked to the header.

8 years agoLock the duchain before acquiring the top-context, so we don't assert with the change...
David Nolden [Sun, 6 Dec 2009 11:58:53 +0000 (11:58 -0000)]
Lock the duchain before acquiring the top-context, so we don't assert with the changes to duchain.cpp

8 years agoRevert "Make the API more consistent: Always allow specifying exactly whether a proxy...
Andreas Pakulat [Sun, 6 Dec 2009 10:36:47 +0000 (10:36 -0000)]
Revert "Make the API more consistent: Always allow specifying exactly whether a proxy-context is wanted or not, and give the caller exactly what he requesed."

This leads to crashes when using CMake files, so lets temporarily revert
it to make kdevelop usable again until David can fix the problem.

8 years agoAdd a new helper-class for duchain testing that:
David Nolden [Sun, 6 Dec 2009 03:11:55 +0000 (03:11 -0000)]
Add a new helper-class for duchain testing that:
- Inserts artificial code into the duchain system
- allows synchronously parsing the code through the background-parser
- Automatically removes the artificial code and the created top-contexts from the duchain on destruction

This class allows conveniently testing the duchain based on the _real_ duchain infrastructure, instead of using a simplified test-infrastructure.

8 years agoName the parameter consistently
David Nolden [Sun, 6 Dec 2009 03:09:13 +0000 (03:09 -0000)]
Name the parameter consistently

8 years agoMake the API more consistent: Always allow specifying exactly whether a proxy-context...
David Nolden [Sun, 6 Dec 2009 03:08:41 +0000 (03:08 -0000)]
Make the API more consistent: Always allow specifying exactly whether a proxy-context is wanted or not, and give the caller exactly what he requesed.

8 years agoAdd an option to specify the project-size from which 'simplified' duchain processing...
David Nolden [Sun, 6 Dec 2009 03:03:29 +0000 (03:03 -0000)]
Add an option to specify the project-size from which 'simplified' duchain processing should be used.
In 'simplified' processing mode, only the very basic information is extracted. The preprocessing is done, the import-structure is created, and the duchain is filled with 'mini' declarations that contain only a very low amount of information, similar to ctags.
Once a file is opened in an editor, the file and all its imports are 'updated' to a higher processing level. The simplified information is enough for all the features like refactoring, missing-include completion, etc. to work.
Simplified processing is about 3 times faster, maybe even more under specific circumstances.

8 years agoWhen a function-declaration has no type assigned, show "(...)" in the quickopen-list...
David Nolden [Sun, 6 Dec 2009 02:58:40 +0000 (02:58 -0000)]
When a function-declaration has no type assigned, show "(...)" in the quickopen-list to at least indicate that it is a function.

8 years agoMake it unnecessary to explicitly specifying 'the lock' when lockin the duchain,...
David Nolden [Sun, 6 Dec 2009 02:56:55 +0000 (02:56 -0000)]
Make it unnecessary to explicitly specifying 'the lock' when lockin the duchain, as there is only one anyway.
Now you can just write "DUChainReadLocker lock;" instead of "DUChainReadLocker lock(DUChain::lock());"

8 years agoFix warning
David Nolden [Sun, 6 Dec 2009 02:55:11 +0000 (02:55 -0000)]
Fix warning

8 years agoAlso assign the 'Class' code-model item type if the declaration is based on ClassDecl...
David Nolden [Sun, 6 Dec 2009 02:54:53 +0000 (02:54 -0000)]
Also assign the 'Class' code-model item type if the declaration is based on ClassDeclaration, even if it does not have a type assigned.
This makes class-quickopen work when the duchain processing is done only partially.

8 years ago- Extend the documentation of coderepresentation.h a bit
David Nolden [Sun, 6 Dec 2009 02:51:39 +0000 (02:51 -0000)]
- Extend the documentation of coderepresentation.h a bit
- When giving a 'relative' path to InsertArtificialCodeRepresentation(..), automatically process it through artificialUrl(..) to construct the url.

8 years agoAdd debugger util to configure PathMappings, will be used by xdebug and crossfire
Niko Sams [Sat, 5 Dec 2009 08:55:07 +0000 (08:55 -0000)]
Add debugger util to configure PathMappings, will be used by xdebug and crossfire

8 years agomake .kcfg files conform to the DTD
Milian Wolff [Sat, 5 Dec 2009 02:43:56 +0000 (02:43 -0000)]
make .kcfg files conform to the DTD

8 years agomake sure the user does not try to edit ProjectModel items via F2 in the projectmanag...
Milian Wolff [Sat, 5 Dec 2009 00:53:19 +0000 (00:53 -0000)]
make sure the user does not try to edit ProjectModel items via F2 in the projectmanagerview plugin, since it's completly unhandled and results in nasty sideeffects (you could hide a whole project from the UI e.g.)

8 years agoChange documentView context menu to properly use plugin infrastructure
Andreas Pakulat [Sat, 5 Dec 2009 00:34:34 +0000 (00:34 -0000)]
Change documentView context menu to properly use plugin infrastructure
to populate with actions from other plugins. Patch by Olivier Jg,

8 years agoadd 'close all' action to tab context menu
Milian Wolff [Fri, 4 Dec 2009 22:41:43 +0000 (22:41 -0000)]
add 'close all' action to tab context menu

8 years agoDon't try highlighting documents that are not text-documents
David Nolden [Fri, 4 Dec 2009 22:20:25 +0000 (22:20 -0000)]
Don't try highlighting documents that are not text-documents
BUG: 217313

8 years agoRevert "Disable the sourceformatter as its not possible to fix this up without"
Andreas Pakulat [Fri, 4 Dec 2009 19:40:23 +0000 (19:40 -0000)]
Revert "Disable the sourceformatter as its not possible to fix this up without"
Start of working on a new API design and some other reworks.

8 years agoImplement removing watches in variables widget.
Niko Sams [Thu, 3 Dec 2009 20:15:37 +0000 (20:15 -0000)]
Implement removing watches in variables widget.
BUG: 201500

8 years agoProof-reading: you try -> you tried.
Andrew Coles [Thu, 3 Dec 2009 11:26:35 +0000 (11:26 -0000)]
Proof-reading: you try -> you tried.

8 years agoBasic documentation for expression visitor creation
Hamish Rodda [Thu, 3 Dec 2009 09:43:30 +0000 (09:43 -0000)]
Basic documentation for expression visitor creation

8 years agorefactor common renaming into its own helper method, show a warning if the destinatio...
Milian Wolff [Thu, 3 Dec 2009 01:45:05 +0000 (01:45 -0000)]
refactor common renaming into its own helper method, show a warning if the destination is filtered (with dontShowAgain enabled)

8 years agothe generic project manager is an implementation, not an interface - no need for...
Milian Wolff [Thu, 3 Dec 2009 01:45:03 +0000 (01:45 -0000)]
the generic project manager is an implementation, not an interface - no need for dpointers

8 years agofinally implement renaming files & folders - totally forgot that.
Milian Wolff [Thu, 3 Dec 2009 01:20:38 +0000 (01:20 -0000)]
finally implement renaming files & folders - totally forgot that.
properly guard against the watcher kicking in behind our back while moving.
this should also support drag'n'drop moving eventually

8 years agoshow filename instead of full url in message boxes, much better imo
Milian Wolff [Thu, 3 Dec 2009 01:20:36 +0000 (01:20 -0000)]
show filename instead of full url in message boxes, much better imo

8 years agotry to prevent strange rename destinations like foo/bar or ../asdf
Milian Wolff [Thu, 3 Dec 2009 01:20:34 +0000 (01:20 -0000)]
try to prevent strange rename destinations like foo/bar or ../asdf

8 years agodon't try to rename when there exists a folder at the destination.
Milian Wolff [Thu, 3 Dec 2009 01:20:31 +0000 (01:20 -0000)]
don't try to rename when there exists a folder at the destination.
neither do it if we rename a folder and there is a file at the destination. renaming files is handled via KIO::move

8 years agocheck also for root items in renameItemFromContextMenu
Milian Wolff [Wed, 2 Dec 2009 18:41:34 +0000 (18:41 -0000)]
check also for root items in renameItemFromContextMenu

8 years agodon't add rename action to root items
Milian Wolff [Wed, 2 Dec 2009 18:35:56 +0000 (18:35 -0000)]
don't add rename action to root items

8 years agorefactor ProjectManagerViewPlugin::renameItemFromContextMenu
Milian Wolff [Wed, 2 Dec 2009 18:30:32 +0000 (18:30 -0000)]
refactor ProjectManagerViewPlugin::renameItemFromContextMenu

8 years agoUnbreak sublime examples: register areas with the controller.
Alexander Dymo [Tue, 1 Dec 2009 22:40:18 +0000 (22:40 -0000)]
Unbreak sublime examples: register areas with the controller.
Passing controller to area constructor is unfortunately not enough now.

8 years agoProvide a default implementation for Sublime::Document::closeDocument() method:
Alexander Dymo [Tue, 1 Dec 2009 22:38:53 +0000 (22:38 -0000)]
Provide a default implementation for Sublime::Document::closeDocument() method:
- in general, it's a bad idea to implement a method and use QASSERT to "force" developers
  to override the method - the code shouldn't compile rather than fail at runtime
  (which it did for sublime examples that weren't updated and used documents without ::closeDocument())
- in this case, it's better to provide a default implementation that would close all views
  and delete the document without asking the confirmation (kdevelop's part documents will
  continue to ask users before closing as usual)

8 years agoCorrectly draw toolview splitters in pressed and hovered states (implementation is...
Alexander Dymo [Tue, 1 Dec 2009 21:16:52 +0000 (21:16 -0000)]
Correctly draw toolview splitters in pressed and hovered states (implementation is similar to QSplitterHandle).

8 years agoDo not allow to resize toolviews below their minimum size.
Alexander Dymo [Tue, 1 Dec 2009 21:15:13 +0000 (21:15 -0000)]
Do not allow to resize toolviews below their minimum size.
Do not allow to hide toolview button bars by dragging the toolview splitters.

8 years agoalso make addHistory signal const, so it can be emitted from const methods
Milian Wolff [Tue, 1 Dec 2009 20:28:52 +0000 (20:28 -0000)]
also make addHistory signal const, so it can be emitted from const methods

8 years agoconstify IDocumentationProvider::
Milian Wolff [Tue, 1 Dec 2009 20:21:51 +0000 (20:21 -0000)]
constify IDocumentationProvider::
- documentationForDeclaration()
- indexModel
- documentationForIndex()