Commit Graph

28763 Commits

Author SHA1 Message Date
David Schulz
f9c31b4c6b Debugger: dumpertest: Dump expanded locals
...separate for the cdbengine. Workaround for
all symbols with virtual children.

Change-Id: I166b30af6594bde1093896156d86b28f02ed8a6a
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-04-08 09:35:28 +02:00
hluk
5041378c6c FakeVim: Enable text transforms to work with 'passkeys' option
Commands like 'ciw', 'gUl' work with renaming and code completion if
'passkeys' option is enabled.

Change-Id: I0cd69e13a0e7773d7cba82e571cc855aa90af7ba
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-04-08 08:45:25 +02:00
hluk
12deff2fdd FakeVim: Reworked undo/redo
Don't use QTextCursor::beginEditBlock() and others since it can change
the behavior of underlying editor widget. Use these methods only for
interrupting current edit block.

Change-Id: I848d6287faeeaad9c04a76758bd0b2cc673ad2ef
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-04-08 08:41:32 +02:00
hluk
bea40d99b9 FakeVim: More precise scrolling
Emulate Vim scrolling behavior. Consider only fully visible lines in
editor widget.

Don't ignore last empty line in document.

Change-Id: Id2c4fd744fb3c4c69324ea6456db424186563bc9
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-04-08 08:37:47 +02:00
Friedemann Kleint
0f11e6da77 Fix toplevel in Qt Designer plugin.
The toplevel is used as a parent for Designer's dialogs and for dragging.
Currently, when using Qt 5, for example the dialog about missing resource
files shows up at 0,0 and and Accessibility on Windows emits warnings about
incorrect hierarchy since the Editor manager is not visible in Design mode.

Change-Id: I49e77db89bf93e8342beb3e4ace764a14d0231f1
Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
2013-04-06 08:29:50 +02:00
hjk
4efd12a755 Debugger: Add LLDB to dumper test infrastructure
Not working yet.

Change-Id: I87bd15d8c4aee491404b57842884220103a63e1f
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-04-05 17:23:15 +02:00
Aurindam Jana
7572dada36 DesktopDevice: Set device state as Unknown
Change-Id: If3354eb1313e385c6db66b956e2abe06818d8f54
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-05 16:18:01 +02:00
Tobias Hunger
25319ddf19 SettingsAccessor: Remove some code that is no longer needed.
Change-Id: Ib250ed590736b57b7898547303ae6e481e688322
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-04-05 16:17:25 +02:00
Tobias Hunger
acda3403a5 SettingsAccessor: Backup old settings again.
Back up when saving. That is more robust when several instances
work with the same project at the same time.

Change-Id: Id4bfd5eab4184934f66909dcf7a580fef1e104ae
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-04-05 16:17:13 +02:00
Tobias Hunger
0addee8bac SettingsAccessor: Split out reading of shared settings and the merging
Change-Id: Iccf9b88ba7f778ccdc17e088a60680a8d5cf840b
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-04-05 16:17:08 +02:00
Tobias Hunger
8113106f43 SettingsAccessor: Find better matches for .user files
Consider all possible .user files and pick the one that
matches the current version/environment best.

This patch removes backing up .user files while reading
them. A later patch will fix this again.

Change-Id: I2991eddccd2cdd610aa2e96d79ae7d55866e9485
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-04-05 16:16:55 +02:00
Friedemann Kleint
9393335c1d Clean headers in Git.
Ran script to remove inludes on a trial-and-error basis and
manually corrected it.

Change-Id: Ib2afbc530760684db96888b927c5153b29fe24aa
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-05 15:10:02 +02:00
Knut Petter Svendsen
ffb2f2ccf6 ClearCase: Add const to ClearCaseSync
Change-Id: I89948ee300831ceddd0dd6d23e83bc5f7d2f8bf1
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2013-04-05 15:06:55 +02:00
Knut Petter Svendsen
c7cd4c9aa4 ClearCase: Assume Read Only file is Checked In for dynamic view
Assume that read only files on dynamic views are checked in files.
That assumption gives a better status until all files are indexed.
Once all files are indexed the correct state will be used (in case
the assumption was wrong).

Change-Id: I7097b89801b6798399560d727566419e72f13b2f
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2013-04-05 15:06:46 +02:00
Tobias Hunger
75691393ec Project: Set QML/C++ languages where both are possible
Change-Id: I4bc5bd7a644c48dfa529f9f9f6052e401de76d40
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-05 14:56:59 +02:00
Tobias Hunger
ace6829742 DebuggerRunConfigurationAspect: Suppress widgets as necessary
Suppress widgets of the DebuggerRunConfigurationAspect widget as
required.

Change-Id: I4e384d4e725bd95bea51465e28e26ece3e2f5cc8
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-05 14:56:48 +02:00
Tobias Hunger
fd1f284892 RunConfigurationAspects: Move method to create config widget
Move the method used to create a config widget for a
RunConfigurationAspect from the RunControlFactory into the aspect
itself. This allows for aspects that are not bound to any factory,
which is what I eventually want to use to hold the environment for
run configurations.

Change-Id: Icceb5f44ca9eb63a87b9c7bb6468ff30dab943c2
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-05 14:56:35 +02:00
Tobias Hunger
533644290f Move DebuggerRunConfigurationAspect into Debugger
Change-Id: I03cab5d963a6d7c77171efe360a552d8109f6a8b
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-05 14:56:25 +02:00
Tobias Hunger
e474b6ed8f Demote debuggerrunconfigurationaspect
NOTE: Next patch will be "Move DRCA to Debugger plugin" and is
needed to make this functional.

Change-Id: Ie405a0e4fbdc0fb35ff16d34c725e7aee5153a4a
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-05 14:56:12 +02:00
hjk
21da8c641d Debugger: Add dumper test for inheritance edge cases
Change-Id: Ia4db7dfc0a0182126255393730d15d12abaf369b
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-04-05 14:29:43 +02:00
Tobias Hunger
4ff8440f71 SettingsAccessor: Move reading of user settings into a method
Change-Id: I284052fdd9a48335ef75b239dcc08512822ce089
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-05 13:47:40 +02:00
Tobias Hunger
bd5e8b3f7c SettingsAccessor: rename variable
Change-Id: I78c41f89a6da05b340790ee7feeb976a327e2a4a
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-05 13:47:15 +02:00
hjk
e262596dc4 Debugger: Remove workaround for GDBs with broken parse_and_eval
This mostly affected pre-7.2 version which we don't officially
support anymore anyways. No need to waste cycles on them.

Change-Id: I748cb2be6c5d4161c4129f51809cf3cc358e0be0
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-04-05 13:37:48 +02:00
hjk
1711dadb9c Debugger: Shift typedef stripping into the only branch that needs it
Change-Id: I683d808059a82b7a80465a94cddb7b3b4a6af1b7
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-04-05 13:28:59 +02:00
Tobias Hunger
ec7738df7b SettingsAccessor: Move handling of environment Id into file accessor
Change-Id: I0712358cce12066bc5dd91c00ca387c050644150
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-05 13:23:45 +02:00
Christian Kandeler
ab51784abb Device support: Change text on button for listing processes.
"Remote Processes" is no longer a good description, since we also have
the desktop device.

Change-Id: I3d73eb7c4a040e375cde141eb203b274449242d8
Reviewed-by: Aurindam Jana <aurindam.jana@digia.com>
2013-04-05 12:22:50 +02:00
Aurindam Jana
f8bc2cbae5 DeviceManager: Allow user to configure desktop device
Show desktop device in the Devices options page. Allow
user to configure the port range for the desktop. These
ports can then be used by others such as QML Debugger.

Change-Id: I8c4a96207e54f58d1e9bc18c417cb378dc9f70c2
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
2013-04-05 11:47:26 +02:00
hjk
ca5ebc33fa Debugger: Make struct field access backend specific
Change-Id: I9ad0a299e3483bebafba6bb1e5c623d9ee2b6c00
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-04-05 11:44:09 +02:00
hjk
70fc039796 Debugger: Show simple values with LLDB backend
Change-Id: Iccef8c0ddb1951da1b09b13b1ce2a0cee716c30f
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-04-05 11:40:34 +02:00
Petar Perisin
fe1f7e4bf6 Gerrit: Added pushToGerrit dialog
Change-Id: Ic16eae2def11343ef7be5ce8378d24b5fd11a386
Reviewed-by: Petar Perisin <petar.perisin@gmail.com>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-05 11:28:05 +02:00
Petar Perisin
83d51b2691 Gerrit: added ability to save path for applying patches
Change-Id: I3cc8f1d19784145a7fbf19c321ccbc079847fbc2
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Petar Perisin <petar.perisin@gmail.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-05 11:27:57 +02:00
Petar Perisin
42547062af Git: dereference topic result
sometimes tags are annotated, and have different hash than head - now
all will be good with them too.

Change-Id: Ibd66b78e6dbc7f181ba05f45339f2d97bb611602
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-05 11:27:41 +02:00
Friedemann Kleint
19a4810ce8 CodePaster: Add setting for expiry.
Add a setting for expiry in days and additional setting for
PasteView dialog which can be used to override.

Change-Id: Ie45e26b5cefd8f468d2f5c47df148cce582b201e
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-05 11:19:43 +02:00
Friedemann Kleint
9528671f42 Clean headers in Bazaar.
Ran script to remove inludes on a trial-and-error basis and
manually corrected it.

Change-Id: I004d756b351c3fdd9d13367627b1345f3efa7f2a
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-05 11:19:36 +02:00
Lorenz Haas
4f1e892feb Fix insert position for refactoring getter and setter functions
If the cpp file had unsaved changes (newlines at top or in the middle)
the inserted getter and setter functions were misplaced.

Change-Id: I15129df2c0bdb91e6fb5e22213e7b4f52733c6ae
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-04-05 10:41:50 +02:00
Aurindam Jana
adc7d65ca6 DeviceManager: Fix regression introduced by change id I38e4ea9da92
DeviceManager::fromMap() returned empty list of devices.

Change-Id: Iee0d1d102a8ff0855fb855fbde512f9a7f9ecee2
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
2013-04-05 10:27:46 +02:00
Tobias Hunger
036d977b93 RunConfigurationFactory: Centralize much of the restore code
Change-Id: I30c92dd5082eed050c2796a014919788710baafa
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-04-05 08:55:11 +02:00
Tobias Hunger
1650c22b7b RunConfigurationAspect: Add RunConfiguration parameter to factory method
Change-Id: I7fbb82dc3ff83593473a57c69d0eb89bc33f50f5
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-04-05 08:55:01 +02:00
Petar Perisin
5d4c4a6968 Git: Added submodule update
Change-Id: If8a4b0c572b0ca2d57f80f1304c7ebf141a40148
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2013-04-04 19:18:23 +02:00
Petar Perisin
b1c9d0eb37 Git: Added Checkout Commit
Change-Id: I9446060b9a8ee1717b832f1f7b7dbcaf8e739ad3
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2013-04-04 19:16:50 +02:00
Petar Perisin
09b1cf78fd Git: refactoring ChangeSelectionDialog
> Dialog now combines show, cherry-pick and revert
> has fixed path, and no way to change it
> not created on stack

Change-Id: I7cee0b2e775a80941b51a4ca023064baf0d6575c
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Petar Perisin <petar.perisin@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-04 19:15:59 +02:00
hjk
476eb8f72a Debugger: Remove workaround for GDB 6.8.50
Not supported anymore anyway, and gets in the way of the
refactoring for the LLDB backend. Might even save cycles.

Change-Id: I3fbffd1818ed044974e321078d46e5d3b592fa6b
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-04-04 17:09:19 +02:00
Friedemann Kleint
e59ad83d53 Clean headers in Designer.
Ran script to remove inludes on a trial-and-error basis and
manually corrected it.

Change-Id: Ia97b5bd9e4496cd824f35c5fda8ccf0db9af471c
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
2013-04-04 16:49:04 +02:00
Friedemann Kleint
5b1812eedf Clean headers in CPaster.
Ran script to remove inludes on a trial-and-error basis and
manually corrected it.

Change-Id: Ica7093e3ea356c962d7a5ad8fd77bb89dbc11e18
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
2013-04-04 16:48:44 +02:00
hjk
fe29d6a8a3 Core: Remove Core::Id(QByteArray) constructor
This was mostly used to disambiguate the char * and the QString
constructors.

Change-Id: Ib6923ef8e8c0e5d514a883e73aa001a1cd9fb534
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
2013-04-04 16:47:59 +02:00
Eike Ziller
52575f1c62 Add hint to text editor settings pointing to coding style
The tab and indentation settings in Text Editor > Behavior are only used
for non-code files. Add a hint with links to the respective coding style
settings.

Change-Id: I1d7c1154269c4914d511ef6ef3308a2b1f933d52
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
Reviewed-by: David Schulz <david.schulz@digia.com>
2013-04-04 15:36:35 +02:00
Eike Ziller
43969c4e56 Rename PluginManager::runningTests() --> testRunRequested()
Change-Id: I209ebb85ad2a3cc32be0c45ee37ba4918ec42828
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-04-04 14:58:52 +02:00
hluk
1bea9b98fb FakeVim: Option 'passcharacters' (not in Vim)
Option to pass some key presses in insert mode to editor widget
(replaces 'passnewline'). This allows to rename symbols in insert mode,
complete parenthesis blocks, expand comments etc.

Macro expansion and code-completion works with dot command.

Task-number:QTCREATORBUG-4828
Change-Id: I5ff43818d4f7f183cd6f4ed8cc3a4586469ab65d
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-04-04 13:50:08 +02:00
Tobias Hunger
90c5f4244b Remove declaration of method that is never defined
Change-Id: If20fd2b98f829d9cc230dc794656edaa49b4e22c
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-04 12:43:26 +02:00
hjk
8212af6e52 Debugger: Progress on LLDB integration
Some breakpoints trigger real state changes now,
some locals display name and type (no values yet)

Change-Id: I1736d4b499f22b92d4680519853a09558e9dbbf4
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-04-04 12:29:36 +02:00