summaryrefslogtreecommitdiff
path: root/src/plugins/designer
Commit message (Collapse)AuthorAgeFilesLines
* Long live the king!hjk2012-01-2662-62/+62
| | | | | Change-Id: I2b72b34c0cfeafc8bdbaf49b83ff723544f2b6e2 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
* Use new static ICore interface.hjk2012-01-248-49/+44
| | | | | Change-Id: I9b690d9b150c8d162b15370f9f8986267c9128f1 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
* C++: Fix "reference" file in symbol finderLeandro Melo2012-01-231-2/+1
| | | | | | | | | | Througout the initial review the singleton was transformed into an ordinary class, but a error was introduced: The "reference" file was incorrectly assumed to be the editors file, which is wrong, since it should be the declaration file. Change-Id: Iad3e25a690fa8bd07a18184b24b10f8dea965332 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* C++: Improve file accuracy when finding symbolsLeandro Melo2012-01-231-2/+4
| | | | | | | | | | | | | | | | | | | | | | This patch introduces a priority-based mechanism when searching for certains symbols in the snapshot. The priority corresponds to how similar the file path from the "reference" symbol is to the file path from the "candidate" symbol. This solves a variety of issues when matching "equivalent" symbols but that are in another file/project, such as when following a function declaration, a forward class declaration, or adding a definition through a quickfix. There's now a symbol finder which will compute the "best" search order and cache the most recent results. A consequence is that following symbols in some cases is slower, but not apparently significatly. Note: The "find" functions were moved from the Snapshot to the new SymbolFinder class. Task-number: QTCREATORBUG-6697 Task-number: QTCREATORBUG-6792 Change-Id: Ia518f014275fec1f4d0cb3224bd4e06a9df6d557 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* Designer: Compile with QT_NO_CAST_FROM_ASCII.Friedemann Kleint2012-01-203-6/+6
| | | | | Change-Id: If9c8c58f1b86fe8b32f24240bd256b5bb8790c6c Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Wizards: allows filtering of wizards based on Qt versionThomas Hartmann2012-01-184-0/+16
| | | | | | | | | | | | | Every wizard now implements requiredFeatures() to define a feature set. If the feature set is not satisfied by the available Qt Versions, the wizard is not shown in the create file/project dialog. Every Qt version can define the provided feature set in availableFeatures() defined in BaseQtVersion. Change-Id: Ie9e2c210d19187b2296451948c36d274f2096623 Reviewed-by: Daniel Teske <daniel.teske@nokia.com> Reviewed-by: Alessandro Portale <alessandro.portale@nokia.com>
* Fix the class form template.Nicolas Arnaud-Cormos2012-01-091-2/+0
| | | | | | | | With the keyboard, when pressing return on the form template, we arrived directly to the summary page, jumping over the class details page. Change-Id: I4b54e77b01553b12cb8446d802f74ea5a265dddd Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Add Qt 5 libraries to .pro files.Friedemann Kleint2011-11-241-0/+1
| | | | | | | | Make Qt Creator compile with Qt 5 after using fixqt4headers.pl. Change-Id: I74ca51d562f49378b40103b79848f5dd3b11e77e Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* mostly core and analyzer: more id-ficationhjk2011-11-151-2/+2
| | | | | Change-Id: Ic794fdc6a582f4a03d84b6220c59111044c753b9 Reviewed-by: hjk <qthjk@ovi.com>
* Merge remote-tracking branch 'origin/2.4'Eike Ziller2011-11-1162-123/+123
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/libs/qmljs/qmljsinterpreter.cpp src/libs/qmljs/qmljsinterpreter.h src/plugins/debugger/qml/scriptconsole.cpp src/plugins/git/gitplugin.cpp src/plugins/qmlprofiler/canvas/qdeclarativetiledcanvas.cpp src/plugins/qmlprofiler/canvas/qdeclarativetiledcanvas_p.h Change-Id: Iad59c8d87c72a21c79c047e374c0ab689998af39
| * Fix qreal is not double.Felix Geyer2011-11-091-2/+2
| | | | | | | | | | | | Change-Id: Ife56e908a67da70ebe5af223b19fc8b99fc3a1d2 Reviewed-by: hjk <qthjk@ovi.com> (cherry picked from commit 3b0f26e23136e60b61203c26075349f1e541f654)
| * all: s/info@qt.nokia.com/qt-info@nokia.com/hjk2011-11-0362-123/+123
| | | | | | | | | | Change-Id: If18afb5d4665924e7d9250dccbc60a65e6daa75e Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* | more Id type fixeshjk2011-11-104-55/+56
| | | | | | | | | | | | | | | | | | Change-Id: I3720946ba5485696822976567d83b4d6cb1fb283 x Change-Id: Iab58bc34bc56371405d132315573b484a533b77c Reviewed-by: hjk <qthjk@ovi.com>
* | Small include header fixesHarald Fernengel2011-11-091-1/+2
| | | | | | | | | | | | | | | | | | QtXmlStream classes live in QtCore, not QtXml. Also add a few headers that are not implicitly included in Qt 5 any more. This greatly eases transition to Qt 5 which not having any side effects on the Qt 4 build. Change-Id: I1293ef4360015b885dcea8c4099e8e5b9e254c91 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
* | Fix qreal is not double.Felix Geyer2011-11-091-2/+2
| | | | | | | | | | Change-Id: Ife56e908a67da70ebe5af223b19fc8b99fc3a1d2 Reviewed-by: hjk <qthjk@ovi.com>
* | more style fixes of string literal accesshjk2011-11-021-15/+15
| | | | | | | | | | Change-Id: I60b0c53681c6a0cc38231e805479deb614aa0096 Reviewed-by: hjk <qthjk@ovi.com>
* | Merge remote-tracking branch 'origin/2.4'Eike Ziller2011-10-281-4/+7
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | Conflicts: qtcreator.pri src/libs/qmljs/qmljscheck.cpp src/plugins/debugger/gdb/gdbengine.cpp src/plugins/debugger/gdb/remotegdbserveradapter.cpp src/plugins/plugins.pro src/plugins/projectexplorer/buildmanager.cpp src/plugins/qmldesigner/designercore/metainfo/nodemetainfo.cpp Change-Id: Id2dcebf95b94dc46c1d85908ba1d1378aaf362ac
| * Designer: Hint at case-mismatches of #include if 'Goto Slot' fails.Friedemann Kleint2011-10-181-4/+7
| | | | | | | | | | | | | | Task-number: QTCREATORBUG-6310 Change-Id: Ibd10043c775832f3195c39f9d94b72c6d1447c9d Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
* | Don't show Design mode if "designer" plugins are disabled/not present.Eike Ziller2011-10-192-1/+3
|/ | | | | Change-Id: Iee0a01491075e1e82c17211b5e119bd5e167763b Reviewed-by: Marco Bubke <marco.bubke@nokia.com>
* Designer: Trigger code setting suffixes on promoted widgets.Friedemann Kleint2011-09-281-1/+1
| | | | | | | | Initial-patch-by: Daniel Molkentin <daniel.molkentin@nokia.com> Change-Id: I28c03f29f69e4589aba9b5c234c86ec659f34c5a Reviewed-on: http://codereview.qt-project.org/5683 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* s/error_message/errorMessage/ghjk2011-09-211-1/+1
| | | | | | Change-Id: I9a91028fb7c00a20843d99ece659ec8b7acc7710 Reviewed-on: http://codereview.qt-project.org/5312 Reviewed-by: hjk <qthjk@ovi.com>
* use Core::Id for IEditorFactory::idhjk2011-09-082-11/+6
| | | | | | Change-Id: Iefd67a0461d9016b8ba0f3371df7ec6d42e188c5 Reviewed-on: http://codereview.qt-project.org/4321 Reviewed-by: hjk <qthjk@ovi.com>
* core: rename uniqueidmanager.{cpp,h} as the class UniqueIdManager is gonehjk2011-09-052-2/+2
| | | | | | | Change-Id: Iffe04bc3bb0103cbac605f0734bbfd66eb7fd854 Reviewed-on: http://codereview.qt.nokia.com/4215 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: hjk <qthjk@ovi.com>
* core: remove usages of Core::ICore::instance()->modeManager()hjk2011-09-051-1/+1
| | | | | | | | The function is still there but should be remove in my opinion. Change-Id: I739fe942e74f459faccb80b5bcb8a5721c6bb9bf Reviewed-on: http://codereview.qt.nokia.com/4200 Reviewed-by: hjk <qthjk@ovi.com>
* Extract Core::TextFile from TextEditor::BaseTextDocument.Friedemann Kleint2011-08-263-12/+12
| | | | | | | | | | Use it in BaseTextEditor and Designer to preserve CRLF of the files. Task-number: QTCREATORBUG-5901 Change-Id: I7599ce78649a3b09f2e5118d02f8cbf3db27ed31 Reviewed-on: http://codereview.qt.nokia.com/3591 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Refactoring changes: Cleanup and improvements.Christian Kamm2011-08-191-1/+1
| | | | | | | | | | | | | | | | | | Previously RefactoringFiles were usually passed around by value. However, since a RefactoringFile may sometimes own a QTextDocument (when it was read from a file), that's not great and caused the file to be reread after every copy. With this change RefactoringFile becomes noncopyable and is always owned by a shared pointer. This change also allowed having const RefactoringFiles which is useful because they can be safely used from other threads. See CppRefactoringChanges::fileNoEditor. Change-Id: I9045921d6d0f6349f9558ff2a3d8317ea172193b Reviewed-on: http://codereview.qt.nokia.com/3084 Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
* Remove unneeded defines.hjk2011-07-149-18/+5
| | | | | | | | | Mostly Q_DISABLE_COPY that were covered by the un-copy-ability of the respective base classes. Includes a few "stylistic" whitespace changes. Change-Id: I31ca0e7bada5ed0f34776976efe22ddc444a5bf2 Reviewed-on: http://codereview.qt.nokia.com/1609 Reviewed-by: hjk <qthjk@ovi.com>
* Replace qt-info@nokia.com with info@qt.nokia.comhjk2011-07-0612-12/+12
| | | | | | | Change-Id: I61e7cf189a1c4ea04e2a88a80a4f15e43cd3c018 Reviewed-on: http://codereview.qt.nokia.com/1187 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* Editors: Dont configure form's text editor unnecessarilyLeandro Melo2011-07-042-11/+2
| | | | | | | | | | | | It's sufficient (and actually better) to configure the plain text editor at the moment in which the xml is synchronized. Task-number: QTCREATORBUG-5251 Change-Id: Ib2a3e1828f61770871486b8fbc1618abda1a5a74 Reviewed-on: http://codereview.qt.nokia.com/931 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com> (cherry picked from commit 754b8b3ac70e123bdb57c0dd21082ccc534a4366)
* Designer: Compilation with Qt 5.Friedemann Kleint2011-05-1913-42/+203
| | | | | | | | Test the new Qt Designer integration interfaces. Change-Id: I8364167d5be3e7c361b192318b0bba7fb70d0f2f Reviewed-on: http://codereview.qt.nokia.com/9 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Designer: Use core settings instead of keeping QSettings instance.Friedemann Kleint2011-05-192-20/+34
|
* add auto-saving of modified editorsOswald Buddenhagen2011-05-124-9/+27
| | | | Task-number: QTCREATORBUG-2847
* rewrite editor info bar handlingOswald Buddenhagen2011-05-122-15/+10
| | | | | | | | | | | | the info about the bars is now stored in the IFile, not in the EditorView. this is somewhat more expensive for the bars which identically apply to all editors of one type, but fixes consistency issues between views. additionally, it is now possible to set several simultaneous info bars per file, which ensures that no information is lost. Co-authored-by: mae
* Krazy fixes (spelling, single char strings, char constants).Friedemann Kleint2011-05-101-1/+1
|
* Fix/add copyright headersTobias Hunger2011-05-0649-49/+49
| | | | Change-Id: I8b73d583be1ee7183f4074bce49d5390e38631a2
* Fix more krazy warnings.Friedemann Kleint2011-04-193-5/+5
|
* provide default implementation of IFile::reloadBehavior()Oswald Buddenhagen2011-04-182-13/+0
| | | | | | there only two classes of files anyway: regularly editable ones which may ask for interaction, and "background" files which always operate silently. the regular case is the more complex one, so put that into the base class.
* add/unify i/o error handlingOswald Buddenhagen2011-04-181-3/+4
| | | | | | lots of use of Utils::FileSaver and Utils::FileReader Task-number: QTCREATORBUG-1619
* add errorString output argument to IFile::reload() & IEditor::open()Oswald Buddenhagen2011-04-184-15/+18
| | | | add/unify read error handling in all affected classes
* add errorString output argument to IFile::save()Oswald Buddenhagen2011-04-182-25/+8
| | | | | | | this centralizes error reporting (in fact, in most cases it adds any in the first place). Task-number: QTCREATORBUG-1619
* Merge branch '2.2'Oswald Buddenhagen2011-04-1462-867/+808
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/plugins/debugger/gdb/pythongdbengine.cpp src/plugins/qt4projectmanager/qt-desktop/qt4desktoptargetfactory.cpp src/plugins/qt4projectmanager/qt-desktop/qt4desktoptargetfactory.h src/plugins/qt4projectmanager/qt-desktop/qt4simulatortargetfactory.cpp src/plugins/qt4projectmanager/qt-desktop/qt4simulatortargetfactory.h src/plugins/qt4projectmanager/qt-maemo/maemodeploystep.cpp src/plugins/qt4projectmanager/qt-maemo/maemodeviceconfigurations.cpp src/plugins/qt4projectmanager/qt-maemo/maemoglobal.cpp src/plugins/qt4projectmanager/qt-maemo/qt4maemotargetfactory.cpp src/plugins/qt4projectmanager/qt-s60/qt4symbiantargetfactory.cpp src/plugins/qt4projectmanager/qt-s60/s60deploystep.cpp src/plugins/qt4projectmanager/qt4target.cpp src/plugins/qt4projectmanager/qt4target.h src/plugins/qt4projectmanager/qtoptionspage.h src/plugins/qt4projectmanager/qtversionmanager.cpp src/plugins/welcome/welcomemode.cpp
| * fix script executable flags after license header changeshjk2011-04-131-0/+0
| |
| * Update license.hjk2011-04-1362-867/+808
| |
* | Remove unused constants, fix lacking virtual destructorJarek Kobus2011-04-141-4/+0
| | | | | | | | Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
* | mode: make displayname, icon, priority, id, type data membershjk2011-04-141-4/+0
| |
* | core: make context and widget IContext data membershjk2011-04-144-47/+13
|/
* Designer/Go to slot: Match on source file in same folder.Friedemann Kleint2011-03-311-3/+13
| | | | | | | | preferably (there was a bug when source file of the same name existed in several folders of the project). Task-number: QTCREATORBUG-1880 Reviewed-by: Jarek Kobus <jaroslaw.kobus@nokia.com>
* Designer: Fix a crash when open() fails.Friedemann Kleint2011-03-304-19/+28
| | | | | | | | | | | editorsClosed() is not emitted when open fails and thus the file was not removed from FormEditorStack. Add a connection from destroy to ensure the editor is removed. Happens when loading a session whose files no longer exists. Task-number: QTCREATORBUG-4266 Reviewed-by: dt
* Designer: Fix warning about missing editor factory on 'recent file'Friedemann Kleint2011-03-142-2/+1
| | | | caused by mismatched ID's of editor and editor factory.
* Designer: Update editor before entering edit mode.Friedemann Kleint2011-03-141-2/+2
| | | | | | Adapt to changed semantics of ModeManager::currentModeAboutToChange. Task-number: QTCREATORBUG-4051