Commit Graph

245 Commits

Author SHA1 Message Date
Marco Bubke
562d0c5fbd QmlDesigner: Refactor states editor
Reviewed-By: Thomas Hartmann
2010-12-08 17:28:50 +01:00
Kai Koehne
f7fecfa07c Core: Move Q_DECLARE_METATYPE for IEditor to ieditor.h
Fixes a gcc warning about different visibility of struct in files.

Reviewed-by: con
2010-12-06 13:28:31 +01:00
Kai Koehne
85fac8d4af QuickDesigner: Fix crash on exit
Make sure that the sidebar items are deleted before the core
(e.g. ICore::instance()) is deleted.

Task-number: QTCREATORBUG-3269
Reviewed-by: Thomas Hartmann
2010-12-06 11:24:37 +01:00
Thomas Hartmann
71d98970cf QmlDesigner: adding a distinguished context for the form editor
Since Actions like copy/paste and delete interfiere
with controls like LineEdit, I added a special context
for the form editor. Now copy/paste/delete on the Qml items
are only registered for the form editor context and copying the contens
of a LineEdit will not lead to copy an item instead, anymore.

Reviewed-by: Kai Koehne
2010-11-17 12:59:28 +01:00
Thomas Hartmann
bae48751f6 QmlDesigner: use one node instance view
Bauhaus now uses only one single instance view.

Done by Marco Bubke
2010-09-24 09:10:40 +02:00
dt
bde1ebaaea Remove EditorManager::ensureEditorManagerVisible()
The function always switched to Edit Mode, which was the cause for
several bugs. Since openEditor() already does switch to the right mode,
the function is not really needed.

The following actions now respect the prefered mode of the editor:
"f file"-locator
The Open Documents list
Editor history navigation
2010-09-06 13:56:53 +02:00
Thorbjørn Lindeijer
830686f29d Enable opaque resize for the splitters in the QML Design mode 2010-06-25 14:40:01 +02:00
Lasse Holmstedt
7ba6fc8834 Fixed localization issues with SideBar
When changing the language, the sidebar items would break because
their localized window titles were used for storing the settings. Now,
id's are used.

Reviewed-by: con
2010-04-29 13:50:21 +02:00
Lasse Holmstedt
aeb8871094 Added menu entries for hiding and showing left/right bauhaus sidebars 2010-04-26 14:27:49 +02:00
Lasse Holmstedt
3be86bb828 Added Window->Views menu entry for restoring Qt Quick Designer layout 2010-04-26 14:27:49 +02:00
Lasse Holmstedt
fd549343fc unified left & right sidebars in bauhaus
SideBar was patched to give it extra functionality:
 - closeWhenEmpty: when all sidebar widgets are closed, the whole
   sidebar will disappear, too.
 - unavailableItems: a list of non-openable windowTitles can be given
   to the sidebar.

Reviewed-by: con
2010-04-26 14:27:48 +02:00
Lasse Holmstedt
6cbf520599 Added functionality to hide all sidebars in bauhaus
Alt+0 does this now, the command is overridden.

Reviewed-by: kkoehne
2010-04-26 14:27:48 +02:00
Lasse Holmstedt
21aebed4a5 Styled output panes for qt quick designer 2010-04-23 09:58:29 +02:00
Kai Koehne
db2fcdb416 QmlDesigner: Fix crash on exit
QtCreator crashed on exit when the library/navigator/sidebar wasn't
visible in the Design mode. This is caused by a double deletion: The
widgets have the DesignModeWidget as the default parent + the side bar
items try to delete them on exit.

Fixed by removing default parent.

Task-number: QTCREATORBUG-1197
Reviewed-by: Christiaan Janssen
2010-04-16 17:12:22 +02:00
Lasse Holmstedt
65a30b06af Some more fixes to exception handling in bauhaus
Reviewed-by: thomas hartmann
2010-04-12 12:30:30 +02:00
Lasse Holmstedt
b05773923f Fixed missing text/design mode sync warnings
Task-number: BAUHAUS-565
Reviewed-by:erikv
2010-04-12 11:37:03 +02:00
Thomas Hartmann
60b8598676 QmlDesigner: cleanup of DesignModeWidget 2010-04-08 15:02:18 +02:00
dt
5f2ae2af47 Less includes 2010-04-07 13:51:07 +02:00
Kai Koehne
e3231a1741 QmlDesigner: Fix 'could not parse style sheet' runtime warning
Reviewed-by: Thomas Hartmann
2010-04-06 15:31:20 +02:00
Kai Koehne
34b84d8c06 QmlDesigner: Fix crash on loadup
Make DesignModeWidget::showEditor reentrant save by explicitly checking
the current status.

The crash happens only reproducably when debugging creator inside
creator (gdb-7.0-ubuntu!).

Reviewed-by: Lasse Holmstedt
2010-04-06 10:51:19 +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
Thomas Hartmann
e94e6249ac QmlDesigner: avoid warnings (connections) 2010-03-25 16:55:23 +01:00
Thomas Hartmann
699d8b6f63 QmlDesigner: fix color of label in File System explorer 2010-03-25 15:01:47 +01:00
Thomas Hartmann
2f79b60fd7 QmlDesigner: fix warnings 2010-03-24 17:25:00 +01:00
Thomas Hartmann
7bb8f29c9c QmlDesigner: all views instanciated once and shared now 2010-03-23 14:01:25 +01:00
Lasse Holmstedt
1ce34736f7 Fixed toolbar for splitted editors 2010-03-15 16:03:00 +01:00
Lasse Holmstedt
64b6b8c43e Renaming designmodetoolbar -> editortoolbar pt.1 2010-03-10 12:48:17 +01:00
Lasse Holmstedt
3124db009f Refactored toolbar interface 2010-03-10 12:26:19 +01:00
Lasse Holmstedt
a6a049852b Editor toolbar integration 2010-03-10 12:26:19 +01:00
Lasse Holmstedt
a4cfad693c refactored faketoolbar into core -> designmodetoolbar
Reviewed-by: kkoehne
2010-03-10 12:26:18 +01:00
Lasse Holmstedt
736963a422 Context Help support for Bauhaus
Task-number: BAUHAUS-451
Reviewed-by: kkoehne
2010-03-08 09:48:31 +01:00
hjk
9595504bda Long live the king! 2010-03-05 11:28:13 +01:00
Lasse Holmstedt
079897f295 fixed crash when changing b/w edit/design mode while QML Designer is loading 2010-03-01 13:11:05 +01:00
Kai Koehne
7a4213107f QmlDesigner: Replace misleading default label in Design mode
People will only see the default widget while Bauhaus initializes
2010-02-28 14:35:15 +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
Thorbjørn Lindeijer
453dc44889 A bit less indirection 2010-02-10 12:18:22 +01:00
Friedemann Kleint
28d72550d3 Removed static QIcon instances.
thus fixing the exit warning:
"~QX11PixmapData(): QPixmap objects must be destroyed..."

Acked-by: con
2010-02-10 10:47:34 +01:00
Christiaan Janssen
6a67f00e06 QmlDesigner: Fixed minor issues 2010-02-09 10:44:38 +01:00
Kai Koehne
2ab90078f4 Center cursor when going from Design mode to text mode
Just use high level TextEditor::gotoLine instead of directly manipulating
the QTextCursor.

Task-number: BAUHAUS-326
2010-01-28 14:49:05 +01:00
Marco Bubke
666b454295 Add "Select All" menu item to the design mode 2010-01-25 15:29:45 +01:00
Kai Koehne
f88bc5f3cd Don't update design mode widgets while in text mode 2010-01-18 14:34:35 +01:00
Kai Koehne
84c30ea99e Let the DesignMode recover when the qml contains an error on first load
If the qml contains an error on frist call of
DesignDocumentController::loadMaster, we did not wire up the components
to the model. If the user then fixed the qml, the Design mode widgets
were 'enabled', but didn't contain any meaningful input.

Fixed by always wiring up the components. Unfortunately this shows the
'default' model with just a Rectangle.
2010-01-13 11:53:42 +01:00
Kai Koehne
b60df47065 Fix crash when adding/removing states in an invalid document
Disable the states editor widget if the qml file is invalid, just
as the other windows are disabled.

Task-number: BAUHAUS-272
2010-01-11 12:54:05 +01:00
Kai Koehne
2a425c7cfa Fix bug where a qml error shown in Design mode were not updated
If you continue to fix qml errors in text mode, but still had errors,
the error message you got in the Design mode always stayed the first
(outdated) error message.
2010-01-08 13:15:52 +01:00
Kai Koehne
818a7b226b New QmlDesigner plugin & Design mode
This adds a new "Design" mode that can be used to manipulate qml files
in a visual way. It will only get build if you have the declarativeui
module in Qt.

This is a squashed import from the Bauhaus project. Share & enjoy :)
2010-01-07 12:14:35 +01:00