Commit Graph

88532 Commits

Author SHA1 Message Date
Thorbjørn Lindeijer
6b178a6402 Still trigger completion for signals and slots
Was missing in commit efc0b20859.

Reviewed-by: Roberto Raggi
2009-05-27 13:12:00 +02:00
hjk
273011f95f Revert "qstringbuilder: a version without QLatin1Literal"
This reverts commit 28303e861d.
2009-05-27 12:56:33 +02:00
hjk
28303e861d qstringbuilder: a version without QLatin1Literal 2009-05-27 11:46:10 +02:00
Thorbjørn Lindeijer
efc0b20859 Made typing parenthesis even faster
Only attempt to activate the completion when there is a function id on
the left of the parenthesis.

Reviewed-by: Roberto Raggi
2009-05-27 11:38:57 +02:00
hjk
39b0da2a1e qstringbuilder: move free functions back to class specializations 2009-05-27 10:28:17 +02:00
Thorbjørn Lindeijer
2a1bfc6059 Integrate merge-request #542 into branch 'master'
Joel Nordell (1):
      XCode-style tab behavior

Request-url: http://gitorious.org/qt-creator/qt-creator/merge_requests/542
Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
2009-05-27 09:47:50 +02:00
Thorbjørn Lindeijer
765aa56d6e Preprocessing an empty expression is always empty
Fixes performance issue with typing opening parentheses.

Reviewed-by: Roberto Raggi
2009-05-27 09:44:44 +02:00
Friedemann Kleint
09380afe90 Get attaching to a crashed Windows process right (CDB).
Handle  the 2nd parameter correctly as a event id
to be used for a handshake. Introduce a special mode
when attaching to crashed processes.
Code cleanup, pass StartParameters along to startDebugger.
2009-05-26 16:27:24 +02:00
hjk
af4fcde1c2 qstringlist: polishing
Make operator% only act on types we want to handle.
Also add a benchmark for comparison with QString::reserve();
2009-05-26 15:54:22 +02:00
Daniel Molkentin
da2c44ee02 text editor: enable/disable the erase button in the color dialog properly.
The button to erase a selected color in the Fonts & Colors
(groupbox 'color scheme') was not set enabled if a color was selected,
neither was it disabled if a color had been removed using the button.

Fixes: 254202
2009-05-26 14:58:28 +02:00
hjk
f4ba8f1de3 qstringbuilder: more logic optimizations
Drop original QStringBuilder class, rename QStringBuilderPair to
QStringBuilder. Put everything except the QLatin1Literal class and
the global operator%() in a private namespace.
2009-05-26 14:22:36 +02:00
Thorbjørn Lindeijer
0c13443904 Fixed C++ indenter for global scope operator
When starting a line with :, the indenter now no longer removes the
indentation. Usually you do this when you're typing the global scope
operator.

Reviewed-by: Roberto Raggi
2009-05-26 13:39:54 +02:00
hjk
e1e1bfbf67 qtringbuilder: simplify by removing the QStringBuilder<QString> specialization 2009-05-26 12:47:39 +02:00
hjk
ea6617cede qstringbuilder.h: simplify template logic while retaining the speed 2009-05-26 12:32:51 +02:00
Friedemann Kleint
b0e49ecc98 Merge branch 'master' of git@scm.dev.nokia.troll.no:creator/mainline 2009-05-26 12:26:55 +02:00
Friedemann Kleint
85ef2954a2 Enable usage of "_svn" as internal directory name for TortoiseSVN.
Option for  TortoiseSVN to avoid hassle with other IDEs.
2009-05-26 12:25:32 +02:00
Roberto Raggi
f82e76dd7c Removed the local copy of the text rewriter. 2009-05-26 12:10:24 +02:00
Roberto Raggi
1afae90c54 Merge branch 'master' of git@scm.dev.nokia.troll.no:creator/mainline 2009-05-26 12:06:05 +02:00
Thorbjørn Lindeijer
c358a68557 Do still pass the typed character to the indenter
Some indenters need this information. If the C++ indenter misbehaves
based on the typed character, then that should be fixed there.

This reverts part of commit 4c07de50b2.

Reviewed-by: Roberto Raggi
2009-05-26 12:05:05 +02:00
Thorbjørn Lindeijer
5b132339a7 Rely on lazy instantiation of text editor actions
The actions are already lazily instantiated in
TextEditorActionHandler::setupActions(), so there should be no need to
call initializeActions() in all plugins on startup. Only the main text
editor plugin will still initialize its actions, to make sure the menu
items are there.
2009-05-26 12:05:05 +02:00
Thorbjørn Lindeijer
5cc007e9d9 Moved initialization of actions 2009-05-26 12:05:05 +02:00
Thorbjørn Lindeijer
31dada8d92 Renamed braces to brackets
Since we're automatically inserting several kinds of brackets, but not
braces ({ }).
2009-05-26 12:05:05 +02:00
Roberto Raggi
07bd36b69a Expand the tab characters. 2009-05-26 11:58:05 +02:00
hjk
4774ba14f7 qstringbuilder: add a new benchmark using QString::arg 2009-05-26 11:03:39 +02:00
Oswald Buddenhagen
dc0bc58646 micro-optimize: (x.toLower() == y) => !x.compare(y, Qt:: CaseInsensitive) 2009-05-25 18:35:12 +02:00
Oswald Buddenhagen
bd0f0aa182 fix return value of error() & co 2009-05-25 18:35:12 +02:00
Oswald Buddenhagen
a03f8643a7 make message() & co. handling more qmake-like
which basically means cutting features. heh
2009-05-25 18:35:12 +02:00
Oswald Buddenhagen
88de3e6a45 support loops: implement for(), next() & break() 2009-05-25 18:35:12 +02:00
Oswald Buddenhagen
d89338aa81 implement if() test 2009-05-25 18:35:12 +02:00
Oswald Buddenhagen
dbdbe92d5d implement {greater,less}Than(), equals(), clear() & unset() 2009-05-25 18:35:12 +02:00
Oswald Buddenhagen
d077ba29c3 support custom functions: implement defineTest(), defineReplace(), defined(), return() & export() 2009-05-25 18:35:12 +02:00
Oswald Buddenhagen
6ca93b31fd remove return values from the visitors which need none 2009-05-25 18:35:11 +02:00
Oswald Buddenhagen
a86bdfdde4 surround file inclusion with saving/restoring condition state 2009-05-25 18:35:11 +02:00
Oswald Buddenhagen
ed00bd2c85 fix conditionals, in particular the nested else handling
this also removes the optimization to skip test function calls which
appear to be part of a failed test, as this could skip includes, etc. as
well.
2009-05-25 18:35:11 +02:00
Oswald Buddenhagen
68b1b828e6 fix m_invertNext effect scoping
an evaluation function can be an include statement. the included code
must neither inherit nor change the current inversion state.
2009-05-25 18:35:11 +02:00
Oswald Buddenhagen
51f5ee959f put condition state variables into a structure
to enable cleaner save/restore - for later
2009-05-25 18:35:11 +02:00
Oswald Buddenhagen
cee3ca324e return value cleanup
functions which have essentially two return values are kinda confusing.
so represent file & parse errors as false in the regular evaluation
result (like qmake effectively does).
2009-05-25 18:35:11 +02:00
Oswald Buddenhagen
167a09b206 remove totally pointless conditional 2009-05-25 18:35:11 +02:00
kh
9943ec7d0f Fix crash on shutdown.
The onModeChanged gets always called, even after shutdown where we
already had deleted the DebuggerManager. Don't access the 0 pointer.
2009-05-25 18:21:31 +02:00
kh
eb6c6a515e build fix 2009-05-25 18:15:09 +02:00
hjk
5ff00c84ae debugger: basic support for reverse debugging
works only with gbd 7.0 so far.
2009-05-25 17:23:19 +02:00
hjk
a31ce64b9c qstringbuilder: also accept QStringRef 2009-05-25 17:20:15 +02:00
dt
295a0102b7 Merge branch 'master' of git@scm.dev.nokia.troll.no:creator/mainline 2009-05-25 17:09:50 +02:00
dt
19f7f99b61 Report finished in all cases. 2009-05-25 17:09:38 +02:00
dt
6bb5e2e786 Fixes a non sensical progress bar for projects without any buildsteps 2009-05-25 17:09:16 +02:00
Kavindra Devi Palaraja
180fe7215b Merge branch 'master' of git@scm.dev.nokia.troll.no:creator/mainline 2009-05-25 16:56:23 +02:00
Kavindra Devi Palaraja
7de2095b61 Fixes: Doc - adding more of the tutorial 2009-05-25 16:56:00 +02:00
dt
37a9e2bd58 Add a QtVersion::toolChain() method, replacing Qt4Project::toolChain()
Makes the code nicer, we use the ProFileReader to parse the mkspec.
2009-05-25 16:43:50 +02:00
Thorbjørn Lindeijer
7534732d3b Integrate merge-request #444 into branch 'master'
Joel Nordell (1):
      add ':' to electric keys for C++ indenting, and check for electric
         keys anywhere on line, not just at beginning

Request-url: http://gitorious.org/qt-creator/qt-creator/merge_requests/444
Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
2009-05-25 16:31:56 +02:00
Friedemann Kleint
c4a0abcda7 Enabled passing on PIDs from the command line to the debugger.
Introduced struct DebuggerStartParameters to pass around
start parameters, removing the need for the engines to
access private members of DebuggerManager. Pass it
to DebuggerManager::startNewDebugger() and move
the GUI parts of that function into DebuggerPlugin,
making it possible to create the struct from command line
parameters. Introduce command line parsing with a few more
-enable-xx options. Introduce warning() to debugger panel
in the CDB engine.

On this occasion, clean out a few trailing whitespaces.
2009-05-25 16:22:11 +02:00