Commit Graph

67 Commits

Author SHA1 Message Date
con
6c27faf0fc Remove unused code. 2009-12-21 12:11:15 +01:00
con
1a95f6f205 Implement string based search & replace in multiple files.
This uses the same UI as "Rename Symbol".
Moves the actual rename implementation to a static method in
BaseFileFind and uses it for rename symbol and search & replace.
Moves the signal notification for the code model from VCSManager to
the more general FileManager.
Note that as for rename symbol, there's no undo yet.

Task-number: QTCREATORBUG-73
2009-12-21 11:08:52 +01:00
Roberto Raggi
aa8a670669 Hide the implementation details of CppModelManagerInterface::WorkingCopy. 2009-12-15 15:26:40 +01:00
Roberto Raggi
b168eec2a1 Replaced the hardcoded QHash<QString, QString> with CppModelManagerInterface::WorkingCopy. 2009-12-15 15:16:46 +01:00
Roberto Raggi
bdb4e48ebf Store the working list in a QHash. 2009-12-07 12:47:45 +01:00
Roberto Raggi
0614e19ddc Rename MyProcess and MyReduce. 2009-12-07 12:47:45 +01:00
Roberto Raggi
14376c3c32 Initial work on the new CPlusPlus::Snapshot.
Encapsulate the details.
2009-12-07 10:54:27 +01:00
Roberto Raggi
de86a1f4f4 Removed unused formal argument. 2009-12-04 13:30:05 +01:00
Roberto Raggi
aae5b92125 Use mappedReduce when searching for the usages of a symbol. 2009-12-04 13:04:47 +01:00
Roberto Raggi
43df685c68 Removed useless arguments 2009-12-03 11:59:37 +01:00
Roberto Raggi
8741494f41 Rename dependsOn() in filesDepedingOn() and introduced Snapshot::dependencyTable(). 2009-12-02 17:07:10 +01:00
Roberto Raggi
d5c2dedd8a Save the usages. 2009-12-02 12:16:41 +01:00
Roberto Raggi
e84de32ad1 Use resultsReadyAt. 2009-12-01 17:07:50 +01:00
Roberto Raggi
fade61a8a9 Use const literals. 2009-12-01 11:46:36 +01:00
con
85b6ee648c Merge commit 'origin/1.3' 2009-11-30 18:23:13 +01:00
con
5bcff248fb Some naming adaptions. 2009-11-30 18:22:04 +01:00
con
90c03d3209 Add functionality to show progress for the application in task bar/dock.
Move the API to the progress manager.
Added a first Mac implementation, other
platforms are pending.
2009-11-27 17:08:21 +01:00
Friedemann Kleint
d2bd092b47 Code model: Fix Windows issues (duplicate matches).
Ensure the code model receives file names with clean paths ('/')
and fix paths in the relevant places of the code model. Pass on clean
paths from Cpp reference find and display them correctly in the search
window tooltip.

Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
2009-11-09 13:53:28 +01:00
con
9c0ed539cc Prevent global replace before search is done.
Also fix focusing issues of the replace line edit.

Reviewed-by: Roberto Raggi
2009-11-04 18:44:19 +01:00
Roberto Raggi
a7d0fb8014 Set the parent object of CppFindReferences. 2009-11-04 16:16:50 +01:00
Roberto Raggi
7cffef17aa Paranoia check. Skip the change if we have another change with the same offset. 2009-11-04 12:48:36 +01:00
Friedemann Kleint
43ff8a0fb0 Compile Windows 2009-10-27 12:36:26 +01:00
Roberto Raggi
b7f3d924c3 Remove duplicates from the working list. 2009-10-27 12:32:04 +01:00
Roberto Raggi
fefd72b293 Introduced CPlusPlus::FindUsages. 2009-10-27 12:01:45 +01:00
Roberto Raggi
a2b5184123 Activate the completion only when the canonical symbol has a valid name. 2009-10-26 13:45:27 +01:00
Roberto Raggi
e130c035d8 Process the names of the formal arguments when searching references in function definitions. 2009-10-15 14:48:56 +02:00
Roberto Raggi
24bcbaefe9 Don't use modality to inform the user about the dangerous world of code refactoring. 2009-10-15 13:59:04 +02:00
Roberto Raggi
c33a8e9498 Rename the given enumerator. 2009-10-13 14:38:53 +02:00
Roberto Raggi
5bee5dea13 Check the scope of class and fwd-class declarations 2009-10-13 12:21:05 +02:00
Roberto Raggi
420b09e8c2 Expose CppModelManagerInterface::workingCopy() 2009-10-12 10:38:00 +02:00
Roberto Raggi
dbffec2cca Handle ambiguous AST nodes. 2009-10-09 11:02:47 +02:00
Roberto Raggi
7e0e62cb25 Find the canonical virtual method. 2009-10-07 16:12:33 +02:00
Roberto Raggi
afedec330a Run the binder before searching strong and weak references. 2009-10-07 16:12:33 +02:00
Roberto Raggi
77aa306478 Removed the MacroResolver
Unfortunately, the MacroResolver does not scale and we get pretty bad performances when parsing big projects.
2009-10-07 13:57:45 +02:00
Roberto Raggi
7a135ac8a2 Search for possible forward classes. 2009-10-06 17:23:15 +02:00
Roberto Raggi
3c51e5b24b Return the class declaration as canonical symbol for ctors, dtors, and class names. 2009-10-06 16:27:39 +02:00
Roberto Raggi
ef0e1a64dc Show a warning message when using global renaming. 2009-10-06 16:00:55 +02:00
Roberto Raggi
fe1411cdfd Use the existing text editor when refactoring text. 2009-10-06 14:22:42 +02:00
Roberto Raggi
64710c2b6b Perform renaming. 2009-10-05 18:30:39 +02:00
con
ddb7842761 Merge branch '1.3' of git@scm.dev.nokia.troll.no:creator/mainline into 1.3
Conflicts:
	src/plugins/cpptools/cppfindreferences.cpp
	src/plugins/cpptools/cpptoolsplugin.cpp
	src/plugins/texteditor/basefilefind.cpp
2009-10-05 17:26:13 +02:00
con
44e2704bc1 Refactor search result window for use of many items and checked state. 2009-10-05 16:01:50 +02:00
Roberto Raggi
73320a43d1 Added `Find Usages' of a Symbol. 2009-10-05 15:17:48 +02:00
Roberto Raggi
ec84f72968 Search for possible references in template arguments. 2009-10-05 13:46:40 +02:00
Roberto Raggi
b5d6bf73d6 Ensure the user can stop a semantic search and added a method to get a pointer to the ModelManagerInterface. 2009-10-05 13:43:05 +02:00
Roberto Raggi
1395b87fc8 Introduced an overload of reportResult() that can deal with strong and weak results. 2009-10-05 12:53:18 +02:00
Roberto Raggi
cbf24ab6f4 Don't look at formal arguments. 2009-10-05 12:37:14 +02:00
Friedemann Kleint
5948e284bb Rename namespace Core::Utils into Utils
Also move Designer::Internal::FormWindowEditor ->
Designer::FormWindowEditor.
2009-10-05 11:06:05 +02:00
Roberto Raggi
510bd6dc69 Cache the lookup context. 2009-09-30 19:02:33 +02:00
Roberto Raggi
ae43149c97 Cache the macros. 2009-09-30 18:52:42 +02:00
Roberto Raggi
9a21143384 Implemented a simple(fast?) strategy to resolve macro references. 2009-09-30 17:17:11 +02:00