Commit Graph

13 Commits

Author SHA1 Message Date
Kai Koehne
5b65a60e78 QmlDesigner: Switch back to edit mode if last .qml file closes
Fixes multiple ways to crash QmlDesigner after last .qml file is closed
by enforcing a switch to Edit mode then.

Patch originally done by con.
2010-04-06 15:12:56 +02:00
con
e1935a0edf Remove wrong assertion. 2010-03-31 10:11:35 +02:00
con
4f17958625 Avoid multiple currentEditorChanged signals and stream line switching to
preferred mode.

Switching to preferred mode is solely done by the editor manager.
2010-03-30 18:42:12 +02:00
Lasse Holmstedt
0befb98c20 Fixed crash when opening ui files in design mode
QML Designer now listens to contextChanged signal instead of
modeChanged and checks that the context is same as that of qmldesigner.

Reviewed-by: con
2010-03-26 12:39:26 +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
26d819277e Fixed Design Mode context handling
Some Qt Designer actions stayed visible and/or active while editing
source files or when using the QML Designer even though they shouldn't.
Fixed that by applying some manual context handling in the DesignMode.

Reviewed-by: con
Reviewed-by: Lasse Holmstedt <lasse.holmstedt@nokia.com>
2010-03-23 09:18:07 +01:00
Friedemann Kleint
5cf8673ce1 Header cleanup in utils/coreplugin. 2010-03-17 17:44:46 +01:00
Friedemann Kleint
2edcc7ef33 Design mode: Give IEditor a 'preferred mode'.
... and switch to it in EditorManager::activateEditor.
There no longer is a need for special currentEditorChanged()
handling in the editor that use a special mode.

QmlDesigner receives an additional setting specifying the
desired edit mode. QmlJSEditor detects whether QmlDesigner
is present by checking the registered mimetypes of the
Design mode and retrieves the settings via keys.

Remove some obsolete code and clean up includes
on qmldesignerconstants.h

Reviewed-by: con
2010-03-16 16:51:45 +01:00
hjk
9595504bda Long live the king! 2010-03-05 11:28:13 +01:00
Lasse Holmstedt
532952b5a0 Compile fix and moved Design mode icon to coreplugin 2010-03-01 13:32:30 +01:00
Lasse Holmstedt
e952d30914 Fixed resource file issue with Qt Designer and switching to edit mode while debugging 2010-02-26 14:29:12 +01:00
Friedemann Kleint
2a7afc4ac0 Design mode: tr()-Fix. 2010-02-26 14:20:17 +01:00
Lasse Holmstedt
df7a19de9e Design mode integration
Moved Qt Designer to open from Design Mode. Also, Design mode is now global,
and created in coreplugin. Other plugins can register themselves to it.
2010-02-26 11:17:02 +01:00