Commit Graph

176 Commits

Author SHA1 Message Date
con
4321e01efb Some API beautification in action container.
Done-with: Daniel Molkentin
2010-12-17 16:05:47 +01:00
con
506fb9e166 Dropping project blocks other programs (like file explorer).
We have to delay or drop event handling, so the Qt code that delivers
the event can return control. The commit also prevents dropping another
file while we are currently already handling a drop.

Task-number: QTCREATORBUG-3344
2010-12-10 14:49:34 +01:00
con
abd4a7b931 Recent files should remember the editor type as well.
Task-number: QTCREATORBUG-1785
2010-12-09 11:38:12 +01:00
hjk
b9f92c29a0 vcsmanager: coding convention 2010-12-08 07:58:23 +01:00
con
3b177facce Some menus where missing a setEmptyAction(EA_None) call.
Was exposed by fixing the empty action mechanism in
d7e7c3427d.
2010-11-15 12:03:45 +01:00
con
a757c55870 Fixes restoration of main window geometry.
We were handling it ourselves, now we let saveGeometry and saveState do
its job. This also takes care of making the geometry valid for offscreen
saved states.

Task-number: QTCREATORBUG-1689
2010-11-02 13:41:25 +01:00
con
99a93dc2e3 Get rid of hardcoded settingspaths that need to be synced.
Share the (user)settings object between plugin manager and Qt Creator
core.
2010-10-25 17:21:28 +02:00
con
3a82e22982 Opening recent files wasn't opening with right encoding (Windows)
Confusion between native and internal path representation (i.e.
backslashes). File names should always be "portable" internally.

Reviewed-by: Robert Loehning
2010-10-20 12:10:02 +02:00
Tobias Hunger
0a5094097d Welcome: Do not open main.cpp when project loading was canceled
When choosing an example from the welcome screen and the user
cancels loading the project:
 * Do not switch to edit mode
 * Do not load main.cpp
 * Do not pop up help

Task-number: QTCREATORBUG-2774
Reviewed-by: Daniel Molkentin
2010-10-19 16:16:04 +02:00
con
2ee57b31d2 Don't override user's shortcut settings for navigation panes at startup.
The action manager was reading the settings before the navigation panels
had their commands registered.

Task-number: QTCREATORBUG-2005
Reviewed-by: hjk
2010-10-08 13:48:26 +02:00
dt
d81d90a67a EditorManager: add a flag for embedded linenumbers
And make use of it to accept on the command line the patterns:
"filename" "+45", "filename" ":23", "filename:12" and "filename+42"

Task-Nr: QTCREATORBUG-2428
2010-09-23 12:36:16 +02:00
dt
00caec3e73 Mode switching: On drag & drop, on remote opening, on Open Files
Readd a few mode switchings that I accidentally removed.

Task-Nr: QTCREATORBUG-2405
2010-09-22 11:56:24 +02:00
hjk
60f23d29ae core: remove unused return value from ICore::showNewItemDialog()
Reviewed-By: dt
2010-09-16 16:33:14 +02:00
Friedemann Kleint
bb13b69ec0 Further header cleanup.
Introduce some more private classes for the coreplugin,
use header include convention
<QtModule/QClass>, de-qobjectify VariableManager.
2010-09-16 14:59:05 +02:00
Friedemann Kleint
d6057ae600 Header cleanup in coreplugin, part 1 2010-09-16 12:26:28 +02:00
dt
08ccda5862 EditorManager: Change openEditor/activateEditor to not do mode switching
Also introduce a indirection, modes have now types, edit and debug have
the same type, and editors do have a prefered type of modes instead of a
prefered mode.

That fixes the bug that if the prefered qml editing mode was set to
design, then in switching between qml editors would
- in Edit Mode: stay in edit mode
- in Debug Mode: switch to debug mode
2010-09-14 15:23:11 +02:00
hjk
ff0ac20a42 coreplugin: use Core::Id is some places 2010-09-10 17:22:28 +02:00
Friedemann Kleint
faf34c3ae6 Fix Opening .ui file from "Recent Files" to go to 'Design' mode.
On that occasion, rename Designer to show up as 'Form Editor'
instead of Xml Editor in 'Open With'.

Task-number: QTCREATORBUG-2246
2010-09-03 09:00:40 +02:00
Friedemann Kleint
1d45330153 Wizards: Fix custom wizards (fix up delayed creation).
Fixes e5f60a956f
2010-08-31 14:34:09 +02:00
Friedemann Kleint
e5f60a956f Wizards: Delay parsing of custom wizards.
... by introducing signal ICore::showNewItemsDialog().

Reviewed-by: Kai Köhne <kai.koehne@nokia.com>
2010-08-27 09:50:34 +02:00
Kai Koehne
8110c88781 Fix crash on close in sidebar/bookmarks view
Explicitly close all views of the sidebar _before_ the core is
destructed. E.g. the bookmarks view tries to access the core in
it's destructor.
2010-08-11 15:00:46 +02:00
Alessandro Portale
3aa3c5688f Pedantic cleanup of filename parameters for QIcon constructor
Using more *::Constants::ICON_* where it makes sense and
wrapping the file names into QLatin1String where they were
missing.

The increased usage of the ICON constants needed a few more
cross plugin includes of *constants.h, here and there.
I think that it is OK, since the dependencies were alredy there
icon resource wise.
2010-07-30 22:17:14 +02:00
Kai Koehne
802b21c016 Save/restore settings of navigation widgets more aggressively
Save/restore the current settings of a navigation widget per position,
every time something changes in the navigation bar setup. Previously,
only settings on exit were stored / restored on startup, which means
that e.g. when you switch from the Outline to the Project Explorer and
back, the settings of the Outline were lost.

Reviewed-by: con
2010-07-16 14:10:02 +02:00
con
352b491c87 On Linux/Mac, show home path as ~ in recent projects.
Reviewed-by: Daniel Molkentin
2010-07-14 14:45:18 +02:00
con
b3dbc4b4e4 Add flag to IPlugin::aboutToShutdown that allows asynchronous shutdown.
If a plugin requests asyncronous shutdown, the shutdown sequence does
not continue to deleting the plugins before it has sent a
asynchronousShutdownFinished signal. During that time an event loop
is running.
2010-07-13 15:25:21 +02:00
con
44bf80a6db Avoid opening settings dialog multiple times and don't crash.
Task-number: QTCREATORBUG-1522
2010-07-02 12:10:58 +02:00
con
ede2a7c975 Merge remote branch 'origin/2.0'
Conflicts:
	doc/qtcreator.qdoc
	share/qtcreator/gdbmacros/dumper.py
	src/libs/qmljs/qmljs-lib.pri
	src/plugins/debugger/breakhandler.cpp
	src/plugins/projectexplorer/projectexplorer.h
	src/plugins/qt4projectmanager/qt-maemo/maemopackagecreationstep.cpp
	src/plugins/qt4projectmanager/qt-maemo/maemopackagecreationstep.h
2010-06-30 14:25:09 +02:00
hjk
c9e9d701e9 compile fix on Mac 2010-06-28 15:22:43 +02:00
Friedemann Kleint
a945f8b5fd ProjectManager: Make Open Project dialog open in default folder
Move open project dialog handling into ProjectExplorer and make it
use its list of project file patterns. Same in Checkout wizards.

Task-number: QTCREATORBUG-1759
Reviewed-by: dt
2010-06-28 14:34:30 +02:00
hjk
f56dacc76f Core::Context: remove special handling of C_GLOBAL_ID/C_GLOBAL 2010-06-28 14:30:03 +02:00
hjk
1181765a24 cleanup interface of Core::Context 2010-06-25 18:05:09 +02:00
hjk
2f5f358ff4 Core::Context: compile hot fix for Windows. 2010-06-25 17:38:25 +02:00
hjk
c7e8b51d37 core: use a class derived from QList<int> instead of a QList<int> for Core::Context
A mostly mechanical change.

Reviewed-By: con
2010-06-25 12:58:07 +02:00
mae
c29ef11956 Fix Esc handling setFocusToEditor()
Switching modes was broken.
2010-06-16 10:43:43 +02:00
con
30fae3eab1 Merge remote branch 'origin/2.0'
Conflicts:
	doc/qtcreator.qdoc
	src/plugins/projectexplorer/taskwindow.h
	src/plugins/qmldesigner/designercore/model/modelmerger.cpp
	src/plugins/qmljseditor/qmljshoverhandler.h
	src/plugins/qt4projectmanager/Qt4ProjectManager.pluginspec
	src/plugins/qt4projectmanager/qt-maemo/maemopackagecreationwidget.cpp
	src/plugins/subversion/subversionplugin.cpp
2010-06-11 16:30:39 +02:00
con
3c6643cd75 Fixes: Menu items disabled during keyboard navigation (Windows)
Reviewed-by: Thorbjørn Lindeijer
Task-number: QTCREATORBUG-865
2010-06-11 14:48:40 +02:00
kh1
1b6ad08795 Move help manager into core.
- lessens open file handles
 - improves help plugin startup further

Task-number: QTCREATORBUG-337
Reviewed-by: ck
2010-06-11 13:11:37 +02:00
mae
b8e4850a53 Fix central Esc handling
In modes other than Edit mode, we do not want Esc to jump
to Edit mode as long as there are still panels (or the find
bar) visible.

Reviewed-by: dt
2010-06-09 12:50:00 +02:00
Thorbjørn Lindeijer
de7af4f22b Fixed the default UI color
When there was no existing configuration, it would get set to pure black
on startup, resulting in a very dark gray Qt Creator. Now it is back to
its old friendly gray as default color.

Also made sure that the default on startup and the color used for
resetting the UI color in the settings are always in sync.

Reviewed-by: Jens Bache-Wiig
2010-05-27 16:21:29 +02:00
Daniel Molkentin
ebb8faae6d New dialog: Replace "Preferred wizards" concept by remembering the last category
Reviewed-by: trustme
2010-05-19 18:40:45 +02:00
Jens Bache-Wiig
c7d08f9b6e Use Open Project button in Getting Started mode
We already have it in the projects mode so we might as well
use the same in "Getting Started".

Reviewed-by: danimo
2010-04-29 19:07:53 +02:00
con
ca14299790 Rename IPlugin::shutdown --> IPlugin::aboutToShutdown
Discussed-with: hjk
2010-04-28 17:32:01 +02:00
Daniel Molkentin
bbfe7bad3d Add standard shortcut for print action.
Also update Visual Studio keyboard scheme. Xcode already had a proper
key binding.

Reviewed-by: con
2010-04-27 16:12:51 +02:00
Friedemann Kleint
3d6560a10b Move the Debugger/Designer view menus to Window menu.
Move actions into FancyMainWindow. Register them in
DebuggerUISwitcher and FormEditorW. Manually hide
Debugger actions for Non-Debug modes (as they belong
to the language context).
Acked-by: con
2010-04-20 16:46:35 +02:00
Daniel Molkentin
0783156161 Remove superflous ... from window titles.
Task-number: QTCREATORBUG-1116
2010-04-19 15:33:27 +02:00
con
4f4bbe9828 Change contextChanged signal to also notify about additional contexts. 2010-03-26 12:17:13 +01:00
Thorbjørn Lindeijer
510971d216 Introduced a single convenient function for updating additional contexts
While before you had to call add, then remove for each context id and
then call update, now you call updateAdditionalContexts with a list of
contexts to remove and add. It has the update step built in.

Reviewed-by: con
2010-03-23 15:35:22 +01:00
Thorbjørn Lindeijer
48c4d6c05b Use some more standard icons from the theme
Added icons for Save As, Exit, Select All, Go To Line, About
and Search & Replace actions.
2010-03-19 15:42:23 +01:00
Friedemann Kleint
51cc919467 Wizards: Make verbose log appear in message pane.
Also list all registered wizards. Bring initialization
of Core::MessageManager forward.
Acked-by: con
2010-03-19 11:26:56 +01:00
Friedemann Kleint
bbcacaf59f Header cleaning spree in Core/Debugger and Symbian/Maemo-code of Qt4. 2010-03-18 10:59:06 +01:00