Commit Graph

72811 Commits

Author SHA1 Message Date
dt
62220eefc4 Add also the time_t to the output. 2009-07-07 15:56:55 +02:00
dt
e2a06db32e Make FileWatcher more robust, fix a few bugs in that code.
Also cache a lastModified time, so that we don't emit a signal if it
didn't change.
2009-07-07 15:26:56 +02:00
Norwegian Rock Cat
77959c8bc5 Only call setVisible on this item after it has been put in a layout
If you call setVisible(true) on the item before it is placed in a
hierarchy, it will show as a normal top-level window. On some platforms
this isn't really an issue, but with Carbon, the show happens
immediately, so you get this flash of a window which is really
disturbing. I'm surprised it's not noticed on other platforms.
Personally, I'm not sure why we call this at all, but I'm leaving it for
the moment.
2009-07-07 14:59:05 +02:00
Jarek Kobus
42adcb9116 Add a public method which reads the content of pro file from string
Rev-by: Oswald Buddenhagen <oswald.buddenhagen@trolltech.com>
2009-07-07 13:15:39 +02:00
Roberto Raggi
6e3bc2c2df Introduced ASTparent 2009-07-07 12:06:58 +02:00
Friedemann Kleint
61afdf6d1e Polish dumpers to show enumeration values, Polish CDB locals output. 2009-07-07 11:38:01 +02:00
Friedemann Kleint
5bd1d2a028 Fix up Debugger helpers to be able to dump QObject's with CDB.
- Make container dumper routines set "childnumchild" when known
  in order to avoid roundtrips; avoid repeated invocations of
  container.end().
- Completed dumper information in some places to avoid roundtrips.
- Extended QVariant helpers by dumpers for common GUI types
  (rectangles, points, sizes, fonts, size policies).
- Introduced artificial QObjectChildList/QObjectProperty types to
  be able to dump QObject children and properties without using
  gdb expressions.
- Fixed dumping of Signal/Slot list to pass on correct types. Avoid
  recursions if signal is connected to self.
- Replaced expressions by addresses in the dumpers to it make work
  for CDB.
- Reworked dumper test program to have -a, making it usable for tests,
  add further types.
- Gdb: Clear output buffer before calling dumpers, avoiding mixups
  in case evaluation of expression fails.
- Fix the dumper parser used by CDB, do not be fooled by
  "<synthetic>" addresses, etc.
- Pass on a "dumperVersion" in initial query.
2009-07-06 17:36:50 +02:00
Roberto Raggi
45448ce5d5 Don't search for undefined types in ambiguous sizeof expressions. 2009-07-06 17:29:57 +02:00
Erik Verbruggen
f14e98342c Added a bit more completion for the DUI editor. 2009-07-06 16:58:03 +02:00
Erik Verbruggen
bb900dd82e Merge branch 'master' of git@scm.dev.nokia.troll.no:creator/mainline 2009-07-06 16:30:21 +02:00
Erik Verbruggen
fb48a262e6 Added a bit more completion for the DUI editor. 2009-07-06 16:29:44 +02:00
Roberto Raggi
b261e78f35 Look at template-type parameters. 2009-07-06 13:44:29 +02:00
Sergey Belyashov
0688b27dc5 make more strings translatable
Added translation macros to some editor kinds.
Added possibility to translate names of editors in Open With context menu. Translation context is "OpenWith::Editors".

Merge-request: 808
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
2009-07-06 13:33:09 +02:00
Oswald Buddenhagen
9bc155ea65 fix action title 2009-07-06 12:03:47 +02:00
Roberto Raggi
7e7c944628 Stop at class or elaborated class specifiers when recovering declarations. 2009-07-06 09:53:25 +02:00
Roberto Raggi
2f649be146 Disable macro expansion when preprocessing in fast-mode. 2009-07-06 09:53:25 +02:00
Roberto Raggi
93cdff1818 Visit the declarator's initializer. 2009-07-06 09:53:25 +02:00
Daniel Molkentin
25b450815a Fix signal signature: Specifying a custom QMLViewer location was broken 2009-07-04 14:07:22 +02:00
dt
4d11487a86 Harcode that on windows the gcc toolchain defaults to make instead of
mingw32-make.exe
2009-07-03 19:06:00 +02:00
dt
723d90c51d Fix updating the codemodel for cmake on switching buildconfigurations
That is we update all files with the new include and defines if we are
switching toolchains.
2009-07-03 18:56:48 +02:00
dt
c33961a07a Merge branch 'master' of git@scm.dev.nokia.troll.no:creator/mainline 2009-07-03 16:47:52 +02:00
dt
e524f52477 Allow restoreSettings() to fail,
E.g. cmake pops up a wizard then, the running of cmake can fail though.
Now you don't end i[ with a empty project then. The error reporting in
that case is not yet optimal.
2009-07-03 16:46:01 +02:00
Kai Koehne
685a23b557 Merge branch 'master' of git@scm.dev.nokia.troll.no:creator/mainline 2009-07-03 15:27:35 +02:00
Kai Koehne
2839fdf617 Added files missing in commit 70073e71 2009-07-03 14:58:43 +02:00
Kai Koehne
21323faaa8 Fix non matching connect, disconnect in editorview 2009-07-03 14:12:51 +02:00
Kai Koehne
01a70073e7 Renamed Core::Internal::EditorModel to Core::OpenEditorsModel
also moved into own header/cpp file. The renaming + export allow
us to reuse the model in the bauhaus plugin.

Reviewed-by: thorbjorn
2009-07-03 14:12:37 +02:00
Friedemann Kleint
5a8b61b2ee Great debugger helper bug fixing spree.
- Fix extractTemplate() not to kill blanks in case there is no
  blank after a comma, fix hardcoded types accordingly.
- Make niceType()'s regexps ignore blanks after commas, add
  unsigned short as char_type and cache the mappings, making
  them work for CDB.
- CDB: Parse map output of dumpers correctly, generally don't
  confuse the parser by unknown keywords encountered when
  parsing children, thus enabling simple QMap types.
- Make dumpInnerValueHelper output std::string types.
2009-07-03 13:56:27 +02:00
hjk
89d49e3b20 debugger: make format for all integer types selectable 2009-07-03 13:26:08 +02:00
hjk
ab4348ff4a fakevim: partial fix for Gyyp 2009-07-03 13:26:08 +02:00
hjk
916fc9aa96 debugger: implement per-type format changes in the watch view 2009-07-03 13:26:08 +02:00
dt
e41adfe6db Merge branch 'master' of git@scm.dev.nokia.troll.no:creator/mainline 2009-07-03 12:48:27 +02:00
dt
2cefad8342 Fix indentation. 2009-07-03 12:46:38 +02:00
dt
935a54c167 Always show the wizard even if we already have a recent enough cbp file.
That case is a corner case, it can happen if the user has run the codeblocks generator on the command line or if the user deleted the .user file. We mostly ask to get the user a chance to check that we set the correct generator. Or let him select the correct one if there are multiple msvc versions.
2009-07-03 12:46:19 +02:00
Roberto Raggi
ca62e4f61c Fixed the parsing of foreach statements. The initializer expression needs to be an assignment expression. 2009-07-03 11:31:00 +02:00
Roberto Raggi
b2df9bddec Made foreach a keyword when parsing with qtMocRun 2009-07-03 11:00:36 +02:00
Roberto Raggi
3cdd48067c Introduced ForeachStatementAST and the bits to parse foreach statements when qtMocRun is enabled. 2009-07-03 09:12:58 +02:00
Aaron McCarthy
16286b763d Support condition scopes in pro files.
The CONFIG variable was not being checked when testing conditional
scopes. Resulting in, for example, incorrect executable paths when
those paths depend on a particular CONFIG value being set.
2009-07-03 09:21:33 +10:00
Roberto Raggi
981b1354cc Don't call abortMove() when the editor is not in renaming-state. 2009-07-02 18:38:21 +02:00
dt
7efeb1042e Merge branch 'master' of git@scm.dev.nokia.troll.no:creator/mainline 2009-07-02 16:46:45 +02:00
dt
40ff6ab2c4 Make msvc and cmake play together.
Note: This requires a cvs cmake and is not fully tested yet. This adds a
few missing pieces, so now opening new never built projects without a
.user file on systems with just one VS installation should work.
2009-07-02 16:44:51 +02:00
Friedemann Kleint
6e93f4544d Display Q<>Pointers/Work towards displaying maps/QMaps in CDB.
Make dumpers pass on more size information initially, namely the
various Q<>Pointers. Introduce enum for those special template types
whose size does not vary with the arguments (Q<>Pointer,
std::allocators...) to make it more easily extensible.
Pass on some common QMapNode<> sizes as well.
Introduce an expression cache to the common QtDumperHelper
class and make dumpers pass some common expression values
(value offsets of common QMapNode<> incarnations).
Make CDBDumperHelper use the expression cache.
Extend dumper tester.
2009-07-02 16:38:15 +02:00
Thorbjørn Lindeijer
7196c94c65 Unduplicated code that applies an edit operation to all occurrences 2009-07-02 15:18:51 +02:00
Thorbjørn Lindeijer
b11d3606c2 Fixed behaviour of Home and End while renaming
Also allow starting to rename with the cursor at the end of the name.
2009-07-02 12:27:11 +02:00
dt
560b06391d Add msvc support to cmake plugin. Depends on a cvs version of cmake.
The CodeBlocks - NMake Makefiles generator combination is only available
in the cvs version of cmake.
This has not been extensively tested at all.
2009-07-02 11:30:29 +02:00
dt
7d43990da4 Merge branch 'master' of git@scm.dev.nokia.troll.no:creator/mainline 2009-07-02 11:26:27 +02:00
Oswald Buddenhagen
fc30904e1d Make some more strings translatable. 2009-07-02 11:18:52 +02:00
Roberto Raggi
ee6d2df072 Removed unused code. 2009-07-02 11:16:14 +02:00
Thorbjørn Lindeijer
c55eb917e4 Abort rename when text is changed due to unsupported actions
Done with Roberto Raggi and mae.
2009-07-02 10:48:03 +02:00
Thorbjørn Lindeijer
d9c8f945a5 Added in-place renaming
Done with Roberto Raggi
2009-07-02 10:48:02 +02:00
dt
060a9ee0b5 Merge branch 'master' of git@scm.dev.nokia.troll.no:creator/mainline 2009-07-01 18:26:10 +02:00