Merge lp:~zeller-benjamin/qtcreator-plugin-cmake/qt53migrate into lp:qtcreator-plugin-cmake
- qt53migrate
- Merge into trunk
Status: | Merged |
---|---|
Merged at revision: | 39 |
Proposed branch: | lp:~zeller-benjamin/qtcreator-plugin-cmake/qt53migrate |
Merge into: | lp:qtcreator-plugin-cmake |
Diff against target: |
1059 lines (+159/-184) 35 files modified
debian/changelog (+6/-0) debian/control (+7/-7) share/qtcreator/templates/wizards/plaincapp/cmake/wizard.xml (+1/-1) share/qtcreator/templates/wizards/plaincppapp/cmake/wizard.xml (+1/-1) src/cmakeprojectmanager/argumentslineedit.cpp (+2/-2) src/cmakeprojectmanager/argumentslineedit.h (+2/-2) src/cmakeprojectmanager/cmakeappwizard.cpp (+0/-5) src/cmakeprojectmanager/cmakeappwizard.h (+0/-1) src/cmakeprojectmanager/cmakebuildconfiguration.cpp (+1/-1) src/cmakeprojectmanager/cmakebuildconfiguration.h (+1/-3) src/cmakeprojectmanager/cmakeeditor.cpp (+21/-22) src/cmakeprojectmanager/cmakeeditor.h (+6/-13) src/cmakeprojectmanager/cmakeeditorfactory.cpp (+3/-4) src/cmakeprojectmanager/cmakeeditorfactory.h (+1/-4) src/cmakeprojectmanager/cmakekitinformation.cpp (+1/-1) src/cmakeprojectmanager/cmakelocatorfilter.cpp (+4/-4) src/cmakeprojectmanager/cmakelocatorfilter.h (+4/-4) src/cmakeprojectmanager/cmakeopenprojectwizard.cpp (+10/-6) src/cmakeprojectmanager/cmakeopenprojectwizard.h (+3/-5) src/cmakeprojectmanager/cmakeproject.cpp (+32/-46) src/cmakeprojectmanager/cmakeproject.h (+0/-1) src/cmakeprojectmanager/cmakeprojectmanager.h (+5/-6) src/cmakeprojectmanager/cmakeprojectmanager.qbs (+4/-3) src/cmakeprojectmanager/cmakeprojectmanager_dependencies.pri (+4/-1) src/cmakeprojectmanager/cmakeprojectnodes.cpp (+3/-3) src/cmakeprojectmanager/cmakeprojectnodes.h (+2/-2) src/cmakeprojectmanager/cmakeprojectplugin.cpp (+3/-1) src/cmakeprojectmanager/cmakerunconfiguration.cpp (+2/-11) src/cmakeprojectmanager/cmakerunconfiguration.h (+0/-3) src/cmakeprojectmanager/cmakesettingspage.cpp (+17/-13) src/cmakeprojectmanager/cmakesettingspage.h (+3/-1) src/cmakeprojectmanager/cmaketool.cpp (+2/-0) src/cmakeprojectmanager/cmaketoolmanager.cpp (+1/-1) src/cmakeprojectmanager/generatorinfo.cpp (+6/-3) src/cmakeprojectmanager/makestep.h (+1/-3) |
To merge this branch: | bzr merge lp:~zeller-benjamin/qtcreator-plugin-cmake/qt53migrate |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot | continuous-integration | Needs Fixing | |
Zoltan Balogh | Pending | ||
Review via email: mp+223196@code.launchpad.net |
Commit message
Migrating to Qt5.3 and QtC 3.1
Description of the change
Migrating to Qt5.3 and QtC 3.1
PS Jenkins bot (ps-jenkins) wrote : | # |
- 40. By Benjamin Zeller
-
Update versions
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:40
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
- 41. By Benjamin Zeller
-
Packaging fixes
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:41
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
Preview Diff
1 | === modified file 'debian/changelog' |
2 | --- debian/changelog 2014-05-02 16:27:01 +0000 |
3 | +++ debian/changelog 2014-06-16 10:00:33 +0000 |
4 | @@ -1,3 +1,9 @@ |
5 | +qtcreator-plugin-cmake (3.1.1-0ubuntu1) UNRELEASED; urgency=medium |
6 | + |
7 | + * Migrating to Qt5.3 and QtC 3.1 |
8 | + |
9 | + -- Benjamin Zeller <benjamin.zeller@canonical.com> Mon, 16 Jun 2014 11:47:29 +0200 |
10 | + |
11 | qtcreator-plugin-cmake (3.0.1+14.10.20140502.6-0ubuntu1) utopic; urgency=low |
12 | |
13 | [ Benjamin Zeller ] |
14 | |
15 | === modified file 'debian/control' |
16 | --- debian/control 2014-04-01 13:30:37 +0000 |
17 | +++ debian/control 2014-06-16 10:00:33 +0000 |
18 | @@ -4,13 +4,13 @@ |
19 | Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> |
20 | Build-Depends: debhelper (>= 9), |
21 | libqt5webkit5-dev, |
22 | - libqt5widgets5 (>= 5.0.2~), |
23 | + libqt5widgets5 (>= 5.3.0~), |
24 | libsqlite3-dev, |
25 | - qt5-qmake (>= 5.2.1~), |
26 | - qtcreator-dev (>= 3.0.1), |
27 | - qttools5-dev-tools (>= 5.2.1~), |
28 | + qt5-qmake (>= 5.3.0~), |
29 | + qtcreator-dev (>= 3.1.0), |
30 | + qttools5-dev-tools (>= 5.3.0~), |
31 | qtxmlpatterns5-dev-tools, |
32 | - qtcreator-plugin-remotelinux-dev, |
33 | + qtcreator-plugin-remotelinux-dev (>= 3.1.1~), |
34 | Standards-Version: 3.9.5 |
35 | Homepage: https://launchpad.net/qtcreator-plugin-cmake |
36 | # If you aren't a member of ~ubuntu-sdk-team but need to upload packaging changes, |
37 | @@ -22,7 +22,7 @@ |
38 | Multi-Arch: same |
39 | Depends: ${misc:Depends}, |
40 | ${shlibs:Depends}, |
41 | - qtcreator-plugin-remotelinux, |
42 | + qtcreator-plugin-remotelinux (>= 3.1.1~), |
43 | Replaces: qtcreator (<= 2.8.2) |
44 | Breaks: qtcreator (<= 2.8.2) |
45 | Description: CMake plugin for Qt Creator IDE |
46 | @@ -37,7 +37,7 @@ |
47 | Architecture: any |
48 | Depends: qtcreator-plugin-cmake (= ${binary:Version}), |
49 | ${misc:Depends}, |
50 | - qtcreator-plugin-remotelinux-dev, |
51 | + qtcreator-plugin-remotelinux-dev (>= 3.1.1~), |
52 | Replaces: qtcreator-dev (<= 2.8.2) |
53 | Breaks: qtcreator-dev (<= 2.8.2) |
54 | Description: Qt Creator cmake plugin development files |
55 | |
56 | === modified file 'share/qtcreator/templates/wizards/plaincapp/cmake/wizard.xml' |
57 | --- share/qtcreator/templates/wizards/plaincapp/cmake/wizard.xml 2014-02-25 10:05:29 +0000 |
58 | +++ share/qtcreator/templates/wizards/plaincapp/cmake/wizard.xml 2014-06-16 10:00:33 +0000 |
59 | @@ -34,7 +34,7 @@ |
60 | class="cmakeapp-project"> |
61 | <icon>console.png</icon> |
62 | <description>Creates a plain C project using CMake, not using the Qt library.</description> |
63 | - <displayname>Plain C Project (Ubuntu CMake Build)</displayname>; |
64 | + <displayname>Plain C Project (CMake Build)</displayname>; |
65 | <displaycategory>Non-Qt Project</displaycategory> |
66 | <files> |
67 | <file source="main.c" target="main.c" openeditor="true"/> |
68 | |
69 | === modified file 'share/qtcreator/templates/wizards/plaincppapp/cmake/wizard.xml' |
70 | --- share/qtcreator/templates/wizards/plaincppapp/cmake/wizard.xml 2014-02-25 10:05:29 +0000 |
71 | +++ share/qtcreator/templates/wizards/plaincppapp/cmake/wizard.xml 2014-06-16 10:00:33 +0000 |
72 | @@ -34,7 +34,7 @@ |
73 | class="cmakeapp-project"> |
74 | <icon>console.png</icon> |
75 | <description>Creates a plain C++ project using CMake, not using the Qt library.</description> |
76 | - <displayname>Plain C++ Project (Ubuntu CMake Build)</displayname>; |
77 | + <displayname>Plain C++ Project (CMake Build)</displayname>; |
78 | <displaycategory>Non-Qt Project</displaycategory> |
79 | <files> |
80 | <file source="main.cpp" target="main.cpp" openeditor="true"/> |
81 | |
82 | === modified file 'src/cmakeprojectmanager/argumentslineedit.cpp' |
83 | --- src/cmakeprojectmanager/argumentslineedit.cpp 2014-02-24 14:43:48 +0000 |
84 | +++ src/cmakeprojectmanager/argumentslineedit.cpp 2014-06-16 10:00:33 +0000 |
85 | @@ -33,14 +33,14 @@ |
86 | namespace CMakeProjectManager { |
87 | |
88 | ArgumentsLineEdit::ArgumentsLineEdit(QWidget *parent) : |
89 | - Utils::BaseValidatingLineEdit(parent) |
90 | + Utils::FancyLineEdit(parent) |
91 | { |
92 | } |
93 | |
94 | bool ArgumentsLineEdit::validate(const QString &value, QString *errorMessage) const |
95 | { |
96 | Utils::QtcProcess::SplitError err = Utils::QtcProcess::SplitOk; |
97 | - Utils::QtcProcess::splitArgs(value,false,&err); |
98 | + Utils::QtcProcess::splitArgs(value,Utils::HostOsInfo::hostOs(),false,&err); |
99 | |
100 | if(err != Utils::QtcProcess::SplitOk) { |
101 | if(err == Utils::QtcProcess::BadQuoting) |
102 | |
103 | === modified file 'src/cmakeprojectmanager/argumentslineedit.h' |
104 | --- src/cmakeprojectmanager/argumentslineedit.h 2014-02-24 14:43:48 +0000 |
105 | +++ src/cmakeprojectmanager/argumentslineedit.h 2014-06-16 10:00:33 +0000 |
106 | @@ -31,11 +31,11 @@ |
107 | #define CMAKEPROJECTMANAGER_ARGUMENTSLINEEDIT_H |
108 | |
109 | #include "cmakeprojectmanager_global.h" |
110 | -#include <utils/basevalidatinglineedit.h> |
111 | +#include <utils/fancylineedit.h> |
112 | |
113 | namespace CMakeProjectManager { |
114 | |
115 | -class CMAKEPROJECTMANAGER_EXPORT ArgumentsLineEdit : public Utils::BaseValidatingLineEdit |
116 | +class CMAKEPROJECTMANAGER_EXPORT ArgumentsLineEdit : public Utils::FancyLineEdit |
117 | { |
118 | Q_OBJECT |
119 | public: |
120 | |
121 | === modified file 'src/cmakeprojectmanager/cmakeappwizard.cpp' |
122 | --- src/cmakeprojectmanager/cmakeappwizard.cpp 2014-03-12 09:06:14 +0000 |
123 | +++ src/cmakeprojectmanager/cmakeappwizard.cpp 2014-06-16 10:00:33 +0000 |
124 | @@ -91,11 +91,6 @@ |
125 | return ProjectExplorer::CustomProjectWizard::postGenerateOpen(l ,errorMessage); |
126 | } |
127 | |
128 | -void CMakeAppWizard::registerSelf() |
129 | -{ |
130 | - ProjectExplorer::CustomWizard::registerFactory<CMakeAppWizard>(QLatin1String("cmakeapp-project")); |
131 | -} |
132 | - |
133 | CMakeAppWizardDialog::CMakeAppWizardDialog(QWidget *parent, const Core::WizardDialogParameters ¶meters) |
134 | : ProjectExplorer::BaseProjectWizardDialog(parent,parameters) |
135 | , m_targetSetupPage(0) |
136 | |
137 | === modified file 'src/cmakeprojectmanager/cmakeappwizard.h' |
138 | --- src/cmakeprojectmanager/cmakeappwizard.h 2014-03-12 09:06:14 +0000 |
139 | +++ src/cmakeprojectmanager/cmakeappwizard.h 2014-06-16 10:00:33 +0000 |
140 | @@ -53,7 +53,6 @@ |
141 | |
142 | public: |
143 | CMakeAppWizard(); |
144 | - static void registerSelf(); |
145 | |
146 | private: |
147 | QWizard *createWizardDialog(QWidget *parent, |
148 | |
149 | === modified file 'src/cmakeprojectmanager/cmakebuildconfiguration.cpp' |
150 | --- src/cmakeprojectmanager/cmakebuildconfiguration.cpp 2014-04-17 11:46:53 +0000 |
151 | +++ src/cmakeprojectmanager/cmakebuildconfiguration.cpp 2014-06-16 10:00:33 +0000 |
152 | @@ -66,7 +66,7 @@ |
153 | CMakeBuildConfiguration *source) : |
154 | BuildConfiguration(parent, source), |
155 | m_msvcVersion(source->m_msvcVersion), |
156 | - m_useNinja(false) |
157 | + m_useNinja(source->m_useNinja) |
158 | { |
159 | Q_ASSERT(parent); |
160 | cloneSteps(source); |
161 | |
162 | === modified file 'src/cmakeprojectmanager/cmakebuildconfiguration.h' |
163 | --- src/cmakeprojectmanager/cmakebuildconfiguration.h 2014-02-28 11:28:18 +0000 |
164 | +++ src/cmakeprojectmanager/cmakebuildconfiguration.h 2014-06-16 10:00:33 +0000 |
165 | @@ -34,9 +34,7 @@ |
166 | #include <projectexplorer/buildconfiguration.h> |
167 | #include <projectexplorer/abi.h> |
168 | |
169 | -namespace ProjectExplorer { |
170 | -class ToolChain; |
171 | -} |
172 | +namespace ProjectExplorer { class ToolChain; } |
173 | |
174 | namespace CMakeProjectManager { |
175 | class CMakeBuildInfo; |
176 | |
177 | === modified file 'src/cmakeprojectmanager/cmakeeditor.cpp' |
178 | --- src/cmakeprojectmanager/cmakeeditor.cpp 2014-02-18 14:30:29 +0000 |
179 | +++ src/cmakeprojectmanager/cmakeeditor.cpp 2014-06-16 10:00:33 +0000 |
180 | @@ -31,7 +31,6 @@ |
181 | |
182 | #include "cmakefilecompletionassist.h" |
183 | #include "cmakehighlighter.h" |
184 | -#include "cmakeeditorfactory.h" |
185 | #include "cmakeprojectconstants.h" |
186 | #include "cmakeproject.h" |
187 | |
188 | @@ -60,25 +59,20 @@ |
189 | CMakeEditor::CMakeEditor(CMakeEditorWidget *editor) |
190 | : BaseTextEditor(editor) |
191 | { |
192 | + setId(CMakeProjectManager::Constants::CMAKE_EDITOR_ID); |
193 | setContext(Core::Context(CMakeProjectManager::Constants::C_CMAKEEDITOR, |
194 | TextEditor::Constants::C_TEXTEDITOR)); |
195 | connect(document(), SIGNAL(changed()), this, SLOT(markAsChanged())); |
196 | } |
197 | |
198 | -Core::IEditor *CMakeEditor::duplicate(QWidget *parent) |
199 | +Core::IEditor *CMakeEditor::duplicate() |
200 | { |
201 | - CMakeEditorWidget *w = qobject_cast<CMakeEditorWidget*>(widget()); |
202 | - CMakeEditorWidget *ret = new CMakeEditorWidget(parent, w->factory(), w->actionHandler()); |
203 | - ret->duplicateFrom(w); |
204 | + CMakeEditorWidget *ret = new CMakeEditorWidget( |
205 | + qobject_cast<CMakeEditorWidget *>(editorWidget())); |
206 | TextEditor::TextEditorSettings::initializeEditor(ret); |
207 | return ret->editor(); |
208 | } |
209 | |
210 | -Core::Id CMakeEditor::id() const |
211 | -{ |
212 | - return Core::Id(CMakeProjectManager::Constants::CMAKE_EDITOR_ID); |
213 | -} |
214 | - |
215 | TextEditor::CompletionAssistProvider *CMakeEditor::completionAssistProvider() |
216 | { |
217 | return ExtensionSystem::PluginManager::getObject<CMakeFileCompletionAssistProvider>(); |
218 | @@ -116,19 +110,22 @@ |
219 | // CMakeEditor |
220 | // |
221 | |
222 | -CMakeEditorWidget::CMakeEditorWidget(QWidget *parent, CMakeEditorFactory *factory, TextEditor::TextEditorActionHandler *ah) |
223 | - : BaseTextEditorWidget(parent), m_factory(factory), m_ah(ah) |
224 | -{ |
225 | - QSharedPointer<CMakeDocument> doc(new CMakeDocument); |
226 | - doc->setMimeType(QLatin1String(CMakeProjectManager::Constants::CMAKEMIMETYPE)); |
227 | - setBaseTextDocument(doc); |
228 | - |
229 | - baseTextDocument()->setSyntaxHighlighter(new CMakeHighlighter); |
230 | - |
231 | +CMakeEditorWidget::CMakeEditorWidget(QWidget *parent) |
232 | + : BaseTextEditorWidget(new CMakeDocument(), parent) |
233 | +{ |
234 | + ctor(); |
235 | +} |
236 | + |
237 | +CMakeEditorWidget::CMakeEditorWidget(CMakeEditorWidget *other) |
238 | + : BaseTextEditorWidget(other) |
239 | +{ |
240 | + ctor(); |
241 | +} |
242 | + |
243 | +void CMakeEditorWidget::ctor() |
244 | +{ |
245 | m_commentDefinition.clearCommentStyles(); |
246 | m_commentDefinition.singleLine = QLatin1Char('#'); |
247 | - |
248 | - ah->setupActions(this); |
249 | } |
250 | |
251 | TextEditor::BaseTextEditor *CMakeEditorWidget::createEditor() |
252 | @@ -203,7 +200,7 @@ |
253 | |
254 | // TODO: Resolve variables |
255 | |
256 | - QDir dir(QFileInfo(editorDocument()->filePath()).absolutePath()); |
257 | + QDir dir(QFileInfo(baseTextDocument()->filePath()).absolutePath()); |
258 | QString fileName = dir.filePath(buffer); |
259 | QFileInfo fi(fileName); |
260 | if (fi.exists()) { |
261 | @@ -230,6 +227,8 @@ |
262 | CMakeDocument::CMakeDocument() |
263 | : TextEditor::BaseTextDocument() |
264 | { |
265 | + setMimeType(QLatin1String(CMakeProjectManager::Constants::CMAKEMIMETYPE)); |
266 | + setSyntaxHighlighter(new CMakeHighlighter); |
267 | } |
268 | |
269 | QString CMakeDocument::defaultPath() const |
270 | |
271 | === modified file 'src/cmakeprojectmanager/cmakeeditor.h' |
272 | --- src/cmakeprojectmanager/cmakeeditor.h 2014-02-28 11:28:18 +0000 |
273 | +++ src/cmakeprojectmanager/cmakeeditor.h 2014-06-16 10:00:33 +0000 |
274 | @@ -30,17 +30,13 @@ |
275 | #ifndef CMAKEEDITOR_H |
276 | #define CMAKEEDITOR_H |
277 | |
278 | -#include "cmakeeditorfactory.h" |
279 | - |
280 | #include <texteditor/basetextdocument.h> |
281 | #include <texteditor/basetexteditor.h> |
282 | #include <texteditor/codeassist/completionassistprovider.h> |
283 | #include <utils/uncommentselection.h> |
284 | |
285 | |
286 | -namespace TextEditor { |
287 | -class FontSettings; |
288 | -} |
289 | +namespace TextEditor { class FontSettings; } |
290 | |
291 | namespace CMakeProjectManager { |
292 | class CMakeManager; |
293 | @@ -58,8 +54,7 @@ |
294 | CMakeEditor(CMakeEditorWidget *); |
295 | |
296 | bool duplicateSupported() const { return true; } |
297 | - Core::IEditor *duplicate(QWidget *parent); |
298 | - Core::Id id() const; |
299 | + Core::IEditor *duplicate(); |
300 | TextEditor::CompletionAssistProvider *completionAssistProvider(); |
301 | |
302 | private slots: |
303 | @@ -72,13 +67,11 @@ |
304 | Q_OBJECT |
305 | |
306 | public: |
307 | - CMakeEditorWidget(QWidget *parent, CMakeEditorFactory *factory, TextEditor::TextEditorActionHandler *ah); |
308 | + CMakeEditorWidget(QWidget *parent = 0); |
309 | + CMakeEditorWidget(CMakeEditorWidget *other); |
310 | |
311 | bool save(const QString &fileName = QString()); |
312 | |
313 | - CMakeEditorFactory *factory() { return m_factory; } |
314 | - TextEditor::TextEditorActionHandler *actionHandler() const { return m_ah; } |
315 | - |
316 | Link findLinkAt(const QTextCursor &cursor, bool resolveTarget = true, bool inNextSplit = false); |
317 | |
318 | protected: |
319 | @@ -89,8 +82,8 @@ |
320 | void unCommentSelection(); |
321 | |
322 | private: |
323 | - CMakeEditorFactory *m_factory; |
324 | - TextEditor::TextEditorActionHandler *m_ah; |
325 | + CMakeEditorWidget(TextEditor::BaseTextEditorWidget *); // avoid stupidity |
326 | + void ctor(); |
327 | Utils::CommentDefinition m_commentDefinition; |
328 | }; |
329 | |
330 | |
331 | === modified file 'src/cmakeprojectmanager/cmakeeditorfactory.cpp' |
332 | --- src/cmakeprojectmanager/cmakeeditorfactory.cpp 2014-02-18 14:30:29 +0000 |
333 | +++ src/cmakeprojectmanager/cmakeeditorfactory.cpp 2014-06-16 10:00:33 +0000 |
334 | @@ -52,8 +52,7 @@ |
335 | setDisplayName(tr(CMakeProjectManager::Constants::CMAKE_EDITOR_DISPLAY_NAME)); |
336 | addMimeType(CMakeProjectManager::Constants::CMAKEMIMETYPE); |
337 | |
338 | - m_actionHandler = |
339 | - new TextEditorActionHandler(Constants::C_CMAKEEDITOR, |
340 | + new TextEditorActionHandler(this, Constants::C_CMAKEEDITOR, |
341 | TextEditorActionHandler::UnCommentSelection |
342 | | TextEditorActionHandler::JumpToFileUnderCursor); |
343 | |
344 | @@ -70,9 +69,9 @@ |
345 | contextMenu->addAction(cmd); |
346 | } |
347 | |
348 | -Core::IEditor *CMakeEditorFactory::createEditor(QWidget *parent) |
349 | +Core::IEditor *CMakeEditorFactory::createEditor() |
350 | { |
351 | - CMakeEditorWidget *rc = new CMakeEditorWidget(parent, this, m_actionHandler); |
352 | + CMakeEditorWidget *rc = new CMakeEditorWidget(); |
353 | TextEditor::TextEditorSettings::initializeEditor(rc); |
354 | return rc->editor(); |
355 | } |
356 | |
357 | === modified file 'src/cmakeprojectmanager/cmakeeditorfactory.h' |
358 | --- src/cmakeprojectmanager/cmakeeditorfactory.h 2014-02-18 14:30:29 +0000 |
359 | +++ src/cmakeprojectmanager/cmakeeditorfactory.h 2014-06-16 10:00:33 +0000 |
360 | @@ -34,8 +34,6 @@ |
361 | |
362 | #include <coreplugin/editormanager/ieditorfactory.h> |
363 | |
364 | -namespace TextEditor { class TextEditorActionHandler; } |
365 | - |
366 | namespace CMakeProjectManager { |
367 | namespace Internal { |
368 | |
369 | @@ -45,12 +43,11 @@ |
370 | |
371 | public: |
372 | CMakeEditorFactory(CMakeManager *parent); |
373 | - Core::IEditor *createEditor(QWidget *parent); |
374 | + Core::IEditor *createEditor(); |
375 | |
376 | private: |
377 | const QStringList m_mimeTypes; |
378 | CMakeManager *m_manager; |
379 | - TextEditor::TextEditorActionHandler *m_actionHandler; |
380 | }; |
381 | |
382 | } // namespace Internal |
383 | |
384 | === modified file 'src/cmakeprojectmanager/cmakekitinformation.cpp' |
385 | --- src/cmakeprojectmanager/cmakekitinformation.cpp 2014-04-05 16:29:58 +0000 |
386 | +++ src/cmakeprojectmanager/cmakekitinformation.cpp 2014-06-16 10:00:33 +0000 |
387 | @@ -103,7 +103,7 @@ |
388 | Core::Id CMakeKitInformation::cmakeToolId(const Kit *kit) |
389 | { |
390 | Core::Id test = Core::Id::fromSetting(kit->value(CMakeKitInformation::id())); |
391 | - qDebug()<<"Id for kit: "<<kit->displayName()<<" "<<test.toString()<<" "<<test.uniqueIdentifier(); |
392 | + //qDebug()<<"Id for kit: "<<kit->displayName()<<" "<<test.toString()<<" "<<test.uniqueIdentifier(); |
393 | return test; |
394 | } |
395 | |
396 | |
397 | === modified file 'src/cmakeprojectmanager/cmakelocatorfilter.cpp' |
398 | --- src/cmakeprojectmanager/cmakelocatorfilter.cpp 2014-02-18 14:30:29 +0000 |
399 | +++ src/cmakeprojectmanager/cmakelocatorfilter.cpp 2014-06-16 10:00:33 +0000 |
400 | @@ -64,17 +64,17 @@ |
401 | |
402 | } |
403 | |
404 | -QList<Locator::FilterEntry> CMakeLocatorFilter::matchesFor(QFutureInterface<Locator::FilterEntry> &future, const QString &entry) |
405 | +QList<Core::LocatorFilterEntry> CMakeLocatorFilter::matchesFor(QFutureInterface<Core::LocatorFilterEntry> &future, const QString &entry) |
406 | { |
407 | Q_UNUSED(future) |
408 | - QList<Locator::FilterEntry> result; |
409 | + QList<Core::LocatorFilterEntry> result; |
410 | |
411 | foreach (Project *p, SessionManager::projects()) { |
412 | CMakeProject *cmakeProject = qobject_cast<CMakeProject *>(p); |
413 | if (cmakeProject) { |
414 | foreach (const CMakeBuildTarget &ct, cmakeProject->buildTargets()) { |
415 | if (ct.title.contains(entry)) { |
416 | - Locator::FilterEntry entry(this, ct.title, cmakeProject->projectFilePath()); |
417 | + Core::LocatorFilterEntry entry(this, ct.title, cmakeProject->projectFilePath()); |
418 | entry.extraInfo = FileUtils::shortNativePath( |
419 | FileName::fromString(cmakeProject->projectFilePath())); |
420 | result.append(entry); |
421 | @@ -86,7 +86,7 @@ |
422 | return result; |
423 | } |
424 | |
425 | -void CMakeLocatorFilter::accept(Locator::FilterEntry selection) const |
426 | +void CMakeLocatorFilter::accept(Core::LocatorFilterEntry selection) const |
427 | { |
428 | // Get the project containing the target selected |
429 | CMakeProject *cmakeProject = 0; |
430 | |
431 | === modified file 'src/cmakeprojectmanager/cmakelocatorfilter.h' |
432 | --- src/cmakeprojectmanager/cmakelocatorfilter.h 2014-02-18 14:30:29 +0000 |
433 | +++ src/cmakeprojectmanager/cmakelocatorfilter.h 2014-06-16 10:00:33 +0000 |
434 | @@ -30,14 +30,14 @@ |
435 | #ifndef CMAKELOCATORFILTER_H |
436 | #define CMAKELOCATORFILTER_H |
437 | |
438 | -#include <locator/ilocatorfilter.h> |
439 | +#include <coreplugin/locator/ilocatorfilter.h> |
440 | |
441 | #include <QIcon> |
442 | |
443 | namespace CMakeProjectManager { |
444 | namespace Internal { |
445 | |
446 | -class CMakeLocatorFilter : public Locator::ILocatorFilter |
447 | +class CMakeLocatorFilter : public Core::ILocatorFilter |
448 | { |
449 | Q_OBJECT |
450 | |
451 | @@ -45,8 +45,8 @@ |
452 | CMakeLocatorFilter(); |
453 | ~CMakeLocatorFilter(); |
454 | |
455 | - QList<Locator::FilterEntry> matchesFor(QFutureInterface<Locator::FilterEntry> &future, const QString &entry); |
456 | - void accept(Locator::FilterEntry selection) const; |
457 | + QList<Core::LocatorFilterEntry> matchesFor(QFutureInterface<Core::LocatorFilterEntry> &future, const QString &entry); |
458 | + void accept(Core::LocatorFilterEntry selection) const; |
459 | void refresh(QFutureInterface<void> &future); |
460 | |
461 | private slots: |
462 | |
463 | === modified file 'src/cmakeprojectmanager/cmakeopenprojectwizard.cpp' |
464 | --- src/cmakeprojectmanager/cmakeopenprojectwizard.cpp 2014-02-24 10:10:11 +0000 |
465 | +++ src/cmakeprojectmanager/cmakeopenprojectwizard.cpp 2014-06-16 10:00:33 +0000 |
466 | @@ -70,8 +70,9 @@ |
467 | /// CMakeOpenProjectWizard |
468 | ////////////// |
469 | |
470 | -CMakeOpenProjectWizard::CMakeOpenProjectWizard(CMakeManager *cmakeManager, const QString &sourceDirectory, Utils::Environment env) |
471 | - : m_cmakeManager(cmakeManager), |
472 | +CMakeOpenProjectWizard::CMakeOpenProjectWizard(QWidget *parent, CMakeManager *cmakeManager, const QString &sourceDirectory, Utils::Environment env) |
473 | + : Utils::Wizard(parent), |
474 | + m_cmakeManager(cmakeManager), |
475 | m_sourceDirectory(sourceDirectory), |
476 | m_environment(env), |
477 | m_useNinja(false), |
478 | @@ -96,9 +97,10 @@ |
479 | init(); |
480 | } |
481 | |
482 | -CMakeOpenProjectWizard::CMakeOpenProjectWizard(CMakeManager *cmakeManager, CMakeOpenProjectWizard::Mode mode, |
483 | +CMakeOpenProjectWizard::CMakeOpenProjectWizard(QWidget *parent, CMakeManager *cmakeManager, CMakeOpenProjectWizard::Mode mode, |
484 | const CMakeBuildInfo *info) |
485 | - : m_cmakeManager(cmakeManager), |
486 | + : Utils::Wizard(parent), |
487 | + m_cmakeManager(cmakeManager), |
488 | m_sourceDirectory(info->sourceDirectory), |
489 | m_environment(info->environment), |
490 | m_useNinja(info->useNinja), |
491 | @@ -246,7 +248,7 @@ |
492 | layout->addWidget(m_descriptionLabel); |
493 | |
494 | m_optionsButton = new QPushButton; |
495 | - m_optionsButton->setText(tr("Show Options")); |
496 | + m_optionsButton->setText(Core::ICore::msgShowOptionsDialog()); |
497 | |
498 | connect(m_optionsButton, SIGNAL(clicked()), |
499 | this, SLOT(showOptions())); |
500 | @@ -322,6 +324,7 @@ |
501 | m_pc->setBaseDirectory(m_cmakeWizard->sourceDirectory()); |
502 | m_pc->setPath(m_cmakeWizard->buildDirectory()); |
503 | m_pc->setExpectedKind(Utils::PathChooser::Directory); |
504 | + m_pc->setHistoryCompleter(QLatin1String("Cmake.BuildDir.History")); |
505 | connect(m_pc, SIGNAL(changed(QString)), this, SLOT(buildDirectoryChanged())); |
506 | fl->addRow(tr("Build directory:"), m_pc); |
507 | setTitle(tr("Build Location")); |
508 | @@ -345,6 +348,7 @@ |
509 | // Show a field for the user to enter |
510 | m_cmakeExecutable = new Utils::PathChooser(this); |
511 | m_cmakeExecutable->setExpectedKind(Utils::PathChooser::ExistingCommand); |
512 | + m_cmakeExecutable->setHistoryCompleter(QLatin1String("Cmake.Command.History")); |
513 | fl->addRow(tr("CMake Executable:"), m_cmakeExecutable); |
514 | |
515 | connect(m_cmakeExecutable, SIGNAL(editingFinished()), |
516 | @@ -590,7 +594,7 @@ |
517 | m_cmakeWizard->setKit(generatorInfo.kit()); |
518 | m_cmakeWizard->setUseNinja(generatorInfo.isNinja()); |
519 | |
520 | - // If mode is initial the user chooses the kit, otherwise it's already choosen |
521 | + // If mode is initial the user chooses the kit, otherwise it's already chosen |
522 | // and the environment already contains the kit |
523 | if (m_mode == Initial) |
524 | generatorInfo.kit()->addToEnvironment(env); |
525 | |
526 | === modified file 'src/cmakeprojectmanager/cmakeopenprojectwizard.h' |
527 | --- src/cmakeprojectmanager/cmakeopenprojectwizard.h 2014-02-18 14:30:29 +0000 |
528 | +++ src/cmakeprojectmanager/cmakeopenprojectwizard.h 2014-06-16 10:00:33 +0000 |
529 | @@ -50,9 +50,7 @@ |
530 | class PathChooser; |
531 | } |
532 | |
533 | -namespace ProjectExplorer { |
534 | -class Kit; |
535 | -} |
536 | +namespace ProjectExplorer { class Kit; } |
537 | |
538 | namespace CMakeProjectManager { |
539 | namespace Internal { |
540 | @@ -72,12 +70,12 @@ |
541 | }; |
542 | |
543 | /// used at importing a project without a .user file |
544 | - CMakeOpenProjectWizard(CMakeManager *cmakeManager, const QString &sourceDirectory, Utils::Environment env); |
545 | + CMakeOpenProjectWizard(QWidget *parent, CMakeManager *cmakeManager, const QString &sourceDirectory, Utils::Environment env); |
546 | |
547 | /// used to update if we have already a .user file |
548 | /// recreates or updates the cbp file |
549 | /// Also used to change the build directory of one buildconfiguration or create a new buildconfiguration |
550 | - CMakeOpenProjectWizard(CMakeManager *cmakeManager, Mode mode, const CMakeBuildInfo *info); |
551 | + CMakeOpenProjectWizard(QWidget *parent, CMakeManager *cmakeManager, Mode mode, const CMakeBuildInfo *info); |
552 | |
553 | QString buildDirectory() const; |
554 | QString sourceDirectory() const; |
555 | |
556 | === modified file 'src/cmakeprojectmanager/cmakeproject.cpp' |
557 | --- src/cmakeprojectmanager/cmakeproject.cpp 2014-04-17 11:46:53 +0000 |
558 | +++ src/cmakeprojectmanager/cmakeproject.cpp 2014-06-16 10:00:33 +0000 |
559 | @@ -100,6 +100,7 @@ |
560 | m_rootNode(new CMakeProjectNode(fileName)), |
561 | m_watcher(new QFileSystemWatcher(this)) |
562 | { |
563 | + setId(Constants::CMAKEPROJECT_ID); |
564 | setProjectContext(Core::Context(CMakeProjectManager::Constants::PROJECTCONTEXT)); |
565 | setProjectLanguages(Core::Context(ProjectExplorer::Constants::LANG_CXX)); |
566 | |
567 | @@ -337,20 +338,35 @@ |
568 | part->displayName = displayName(); |
569 | part->projectFile = projectFilePath(); |
570 | |
571 | - part->evaluateToolchain(tc, |
572 | - cxxflags, |
573 | - cxxflags, |
574 | - SysRootKitInformation::sysRoot(k)); |
575 | - |
576 | // This explicitly adds -I. to the include paths |
577 | part->includePaths += projectDirectory(); |
578 | - part->includePaths += cbpparser.includeFiles(); |
579 | - part->defines += cbpparser.defines(); |
580 | + |
581 | + foreach (const QString &includeFile, cbpparser.includeFiles()) { |
582 | + // CodeBlocks is utterly ignorant of frameworks on Mac, and won't report framework |
583 | + // paths. The work-around is to check if the include path ends in ".framework", and |
584 | + // if so, add the parent directory as framework path. |
585 | + if (includeFile.endsWith(QLatin1String(".framework"))) { |
586 | + const int slashIdx = includeFile.lastIndexOf(QLatin1Char('/')); |
587 | + if (slashIdx != -1) { |
588 | + part->frameworkPaths += includeFile.left(slashIdx); |
589 | + continue; |
590 | + } |
591 | + } |
592 | + |
593 | + part->includePaths += includeFile; |
594 | + } |
595 | + |
596 | + part->projectDefines += cbpparser.defines(); |
597 | |
598 | CppTools::ProjectFileAdder adder(part->files); |
599 | foreach (const QString &file, m_files) |
600 | adder.maybeAdd(file); |
601 | |
602 | + part->evaluateToolchain(tc, |
603 | + cxxflags, |
604 | + cxxflags, |
605 | + SysRootKitInformation::sysRoot(k)); |
606 | + |
607 | pinfo.appendProjectPart(part); |
608 | m_codeModelFuture.cancel(); |
609 | m_codeModelFuture = modelmanager->updateProjectInfo(pinfo); |
610 | @@ -453,38 +469,12 @@ |
611 | qSort(oldList.begin(), oldList.end(), sortNodesByPath); |
612 | qSort(newList.begin(), newList.end(), sortNodesByPath); |
613 | |
614 | - // generate added and deleted list |
615 | - QList<ProjectExplorer::FileNode *>::const_iterator oldIt = oldList.constBegin(); |
616 | - QList<ProjectExplorer::FileNode *>::const_iterator oldEnd = oldList.constEnd(); |
617 | - QList<ProjectExplorer::FileNode *>::const_iterator newIt = newList.constBegin(); |
618 | - QList<ProjectExplorer::FileNode *>::const_iterator newEnd = newList.constEnd(); |
619 | - |
620 | QList<ProjectExplorer::FileNode *> added; |
621 | QList<ProjectExplorer::FileNode *> deleted; |
622 | |
623 | - while (oldIt != oldEnd && newIt != newEnd) { |
624 | - if ( (*oldIt)->path() == (*newIt)->path()) { |
625 | - delete *newIt; |
626 | - ++oldIt; |
627 | - ++newIt; |
628 | - } else if ((*oldIt)->path() < (*newIt)->path()) { |
629 | - deleted.append(*oldIt); |
630 | - ++oldIt; |
631 | - } else { |
632 | - added.append(*newIt); |
633 | - ++newIt; |
634 | - } |
635 | - } |
636 | - |
637 | - while (oldIt != oldEnd) { |
638 | - deleted.append(*oldIt); |
639 | - ++oldIt; |
640 | - } |
641 | - |
642 | - while (newIt != newEnd) { |
643 | - added.append(*newIt); |
644 | - ++newIt; |
645 | - } |
646 | + ProjectExplorer::compareSortedLists(oldList, newList, deleted, added, sortNodesByPath); |
647 | + |
648 | + qDeleteAll(ProjectExplorer::subtractSortedList(newList, added, sortNodesByPath)); |
649 | |
650 | // add added nodes |
651 | foreach (ProjectExplorer::FileNode *fn, added) { |
652 | @@ -492,18 +482,18 @@ |
653 | // Get relative path to rootNode |
654 | QString parentDir = QFileInfo(fn->path()).absolutePath(); |
655 | ProjectExplorer::FolderNode *folder = findOrCreateFolder(rootNode, parentDir); |
656 | - rootNode->addFileNodes(QList<ProjectExplorer::FileNode *>()<< fn, folder); |
657 | + folder->addFileNodes(QList<ProjectExplorer::FileNode *>()<< fn); |
658 | } |
659 | |
660 | // remove old file nodes and check whether folder nodes can be removed |
661 | foreach (ProjectExplorer::FileNode *fn, deleted) { |
662 | ProjectExplorer::FolderNode *parent = fn->parentFolderNode(); |
663 | // qDebug()<<"removed"<<fn->path(); |
664 | - rootNode->removeFileNodes(QList<ProjectExplorer::FileNode *>() << fn, parent); |
665 | + parent->removeFileNodes(QList<ProjectExplorer::FileNode *>() << fn); |
666 | // Check for empty parent |
667 | while (parent->subFolderNodes().isEmpty() && parent->fileNodes().isEmpty()) { |
668 | ProjectExplorer::FolderNode *grandparent = parent->parentFolderNode(); |
669 | - rootNode->removeFolderNodes(QList<ProjectExplorer::FolderNode *>() << parent, grandparent); |
670 | + grandparent->removeFolderNodes(QList<ProjectExplorer::FolderNode *>() << parent); |
671 | parent = grandparent; |
672 | if (parent == rootNode) |
673 | break; |
674 | @@ -534,7 +524,7 @@ |
675 | // No FolderNode yet, so create it |
676 | ProjectExplorer::FolderNode *tmp = new ProjectExplorer::FolderNode(path); |
677 | tmp->setDisplayName(part); |
678 | - rootNode->addFolderNodes(QList<ProjectExplorer::FolderNode *>() << tmp, parent); |
679 | + parent->addFolderNodes(QList<ProjectExplorer::FolderNode *>() << tmp); |
680 | parent = tmp; |
681 | } |
682 | } |
683 | @@ -546,11 +536,6 @@ |
684 | return m_projectName; |
685 | } |
686 | |
687 | -Core::Id CMakeProject::id() const |
688 | -{ |
689 | - return Core::Id(Constants::CMAKEPROJECT_ID); |
690 | -} |
691 | - |
692 | Core::IDocument *CMakeProject::document() const |
693 | { |
694 | return m_file; |
695 | @@ -910,7 +895,8 @@ |
696 | #if 0 |
697 | CMakeProject *project = static_cast<CMakeProject *>(m_buildConfiguration->target()->project()); |
698 | CMakeBuildInfo info(m_buildConfiguration); |
699 | - CMakeOpenProjectWizard copw(project->projectManager(), CMakeOpenProjectWizard::ChangeDirectory, |
700 | + CMakeOpenProjectWizard copw(Core::ICore::mainWindow(), |
701 | + project->projectManager(), CMakeOpenProjectWizard::ChangeDirectory, |
702 | &info); |
703 | if (copw.exec() == QDialog::Accepted) { |
704 | project->changeBuildDirectory(m_buildConfiguration, copw.buildDirectory()); |
705 | |
706 | === modified file 'src/cmakeprojectmanager/cmakeproject.h' |
707 | --- src/cmakeprojectmanager/cmakeproject.h 2014-03-03 16:19:55 +0000 |
708 | +++ src/cmakeprojectmanager/cmakeproject.h 2014-06-16 10:00:33 +0000 |
709 | @@ -86,7 +86,6 @@ |
710 | ~CMakeProject(); |
711 | |
712 | QString displayName() const; |
713 | - Core::Id id() const; |
714 | Core::IDocument *document() const; |
715 | CMakeManager *projectManager() const; |
716 | |
717 | |
718 | === modified file 'src/cmakeprojectmanager/cmakeprojectmanager.h' |
719 | --- src/cmakeprojectmanager/cmakeprojectmanager.h 2014-02-28 11:28:18 +0000 |
720 | +++ src/cmakeprojectmanager/cmakeprojectmanager.h 2014-06-16 10:00:33 +0000 |
721 | @@ -40,20 +40,19 @@ |
722 | #include <utils/environment.h> |
723 | #include <utils/pathchooser.h> |
724 | |
725 | +#include <QAction> |
726 | +#include <QCheckBox> |
727 | +#include <QDir> |
728 | #include <QFuture> |
729 | +#include <QPointer> |
730 | #include <QStringList> |
731 | -#include <QCheckBox> |
732 | -#include <QDir> |
733 | #include <QVector> |
734 | -#include <QAction> |
735 | |
736 | #include "cmakevalidator.h" |
737 | |
738 | QT_FORWARD_DECLARE_CLASS(QLabel) |
739 | |
740 | -namespace Utils { |
741 | -class QtcProcess; |
742 | -} |
743 | +namespace Utils { class QtcProcess; } |
744 | |
745 | namespace CMakeProjectManager { |
746 | |
747 | |
748 | === modified file 'src/cmakeprojectmanager/cmakeprojectmanager.qbs' |
749 | --- src/cmakeprojectmanager/cmakeprojectmanager.qbs 2014-02-18 14:30:29 +0000 |
750 | +++ src/cmakeprojectmanager/cmakeprojectmanager.qbs 2014-06-16 10:00:33 +0000 |
751 | @@ -1,4 +1,4 @@ |
752 | -import qbs.base 1.0 |
753 | +import qbs 1.0 |
754 | |
755 | import QtcPlugin |
756 | |
757 | @@ -6,10 +6,11 @@ |
758 | name: "CMakeProjectManager" |
759 | |
760 | Depends { name: "Qt.widgets" } |
761 | + Depends { name: "Aggregation" } |
762 | + Depends { name: "Utils" } |
763 | + |
764 | Depends { name: "Core" } |
765 | Depends { name: "CppTools" } |
766 | - Depends { name: "CPlusPlus" } |
767 | - Depends { name: "Locator" } |
768 | Depends { name: "ProjectExplorer" } |
769 | Depends { name: "TextEditor" } |
770 | Depends { name: "QtSupport" } |
771 | |
772 | === modified file 'src/cmakeprojectmanager/cmakeprojectmanager_dependencies.pri' |
773 | --- src/cmakeprojectmanager/cmakeprojectmanager_dependencies.pri 2014-04-05 16:29:58 +0000 |
774 | +++ src/cmakeprojectmanager/cmakeprojectmanager_dependencies.pri 2014-06-16 10:00:33 +0000 |
775 | @@ -1,7 +1,10 @@ |
776 | QTC_PLUGIN_NAME = CMakeProjectManager |
777 | +QTC_LIB_DEPENDS += \ |
778 | + aggregation \ |
779 | + extensionsystem \ |
780 | + utils |
781 | QTC_PLUGIN_DEPENDS += \ |
782 | coreplugin \ |
783 | - locator \ |
784 | projectexplorer \ |
785 | cpptools \ |
786 | texteditor \ |
787 | |
788 | === modified file 'src/cmakeprojectmanager/cmakeprojectnodes.cpp' |
789 | --- src/cmakeprojectmanager/cmakeprojectnodes.cpp 2014-02-18 14:30:29 +0000 |
790 | +++ src/cmakeprojectmanager/cmakeprojectnodes.cpp 2014-06-16 10:00:33 +0000 |
791 | @@ -37,16 +37,16 @@ |
792 | { |
793 | } |
794 | |
795 | -bool CMakeProjectNode::hasBuildTargets() const |
796 | +bool CMakeProjectNode::showInSimpleTree() const |
797 | { |
798 | // TODO |
799 | return true; |
800 | } |
801 | |
802 | -QList<ProjectExplorer::ProjectNode::ProjectAction> CMakeProjectNode::supportedActions(Node *node) const |
803 | +QList<ProjectExplorer::ProjectAction> CMakeProjectNode::supportedActions(Node *node) const |
804 | { |
805 | Q_UNUSED(node); |
806 | - return QList<ProjectAction>(); |
807 | + return QList<ProjectExplorer::ProjectAction>(); |
808 | } |
809 | |
810 | bool CMakeProjectNode::canAddSubProject(const QString &proFilePath) const |
811 | |
812 | === modified file 'src/cmakeprojectmanager/cmakeprojectnodes.h' |
813 | --- src/cmakeprojectmanager/cmakeprojectnodes.h 2014-02-18 14:30:29 +0000 |
814 | +++ src/cmakeprojectmanager/cmakeprojectnodes.h 2014-06-16 10:00:33 +0000 |
815 | @@ -41,8 +41,8 @@ |
816 | friend class CMakeProject; |
817 | public: |
818 | CMakeProjectNode(const QString &fileName); |
819 | - virtual bool hasBuildTargets() const; |
820 | - virtual QList<ProjectExplorer::ProjectNode::ProjectAction> supportedActions(Node *node) const; |
821 | + virtual bool showInSimpleTree() const; |
822 | + virtual QList<ProjectExplorer::ProjectAction> supportedActions(Node *node) const; |
823 | |
824 | virtual bool canAddSubProject(const QString &proFilePath) const; |
825 | |
826 | |
827 | === modified file 'src/cmakeprojectmanager/cmakeprojectplugin.cpp' |
828 | --- src/cmakeprojectmanager/cmakeprojectplugin.cpp 2014-02-25 09:40:18 +0000 |
829 | +++ src/cmakeprojectmanager/cmakeprojectplugin.cpp 2014-06-16 10:00:33 +0000 |
830 | @@ -90,7 +90,9 @@ |
831 | addAutoReleasedObject(new CMakeFeatureProvider); |
832 | addAutoReleasedObject(new CMakeHighlighterFactory); |
833 | |
834 | - CMakeAppWizard::registerSelf(); |
835 | + addAutoReleasedObject(new ProjectExplorer::CustomWizardFactory<CMakeAppWizard> |
836 | + (QLatin1String("cmakeapp-project"), Core::IWizard::ProjectWizard)); |
837 | + |
838 | ProjectExplorer::KitManager::registerKitInformation(new CMakeKitInformation()); |
839 | |
840 | return true; |
841 | |
842 | === modified file 'src/cmakeprojectmanager/cmakerunconfiguration.cpp' |
843 | --- src/cmakeprojectmanager/cmakerunconfiguration.cpp 2014-02-18 14:30:29 +0000 |
844 | +++ src/cmakeprojectmanager/cmakerunconfiguration.cpp 2014-06-16 10:00:33 +0000 |
845 | @@ -212,16 +212,6 @@ |
846 | m_arguments = newText; |
847 | } |
848 | |
849 | -QString CMakeRunConfiguration::dumperLibrary() const |
850 | -{ |
851 | - return QtSupport::QtKitInformation::dumperLibrary(target()->kit()); |
852 | -} |
853 | - |
854 | -QStringList CMakeRunConfiguration::dumperLibraryLocations() const |
855 | -{ |
856 | - return QtSupport::QtKitInformation::dumperLibraryLocations(target()->kit()); |
857 | -} |
858 | - |
859 | void CMakeRunConfiguration::setEnabled(bool b) |
860 | { |
861 | if (m_enabled == b) |
862 | @@ -260,6 +250,7 @@ |
863 | m_workingDirectoryEdit->setExpectedKind(Utils::PathChooser::Directory); |
864 | m_workingDirectoryEdit->setBaseDirectory(m_cmakeRunConfiguration->target()->project()->projectDirectory()); |
865 | m_workingDirectoryEdit->setPath(m_cmakeRunConfiguration->baseWorkingDirectory()); |
866 | + m_workingDirectoryEdit->setHistoryCompleter(QLatin1String("CMake.WorkingDir.History")); |
867 | ProjectExplorer::EnvironmentAspect *aspect |
868 | = m_cmakeRunConfiguration->extraAspect<ProjectExplorer::EnvironmentAspect>(); |
869 | if (aspect) { |
870 | @@ -269,7 +260,7 @@ |
871 | m_workingDirectoryEdit->setPromptDialogTitle(tr("Select Working Directory")); |
872 | |
873 | QToolButton *resetButton = new QToolButton(); |
874 | - resetButton->setToolTip(tr("Reset to default")); |
875 | + resetButton->setToolTip(tr("Reset to default.")); |
876 | resetButton->setIcon(QIcon(QLatin1String(Core::Constants::ICON_RESET))); |
877 | |
878 | QHBoxLayout *boxlayout = new QHBoxLayout(); |
879 | |
880 | === modified file 'src/cmakeprojectmanager/cmakerunconfiguration.h' |
881 | --- src/cmakeprojectmanager/cmakerunconfiguration.h 2014-02-18 14:30:29 +0000 |
882 | +++ src/cmakeprojectmanager/cmakerunconfiguration.h 2014-06-16 10:00:33 +0000 |
883 | @@ -70,9 +70,6 @@ |
884 | |
885 | QString title() const; |
886 | |
887 | - QString dumperLibrary() const; |
888 | - QStringList dumperLibraryLocations() const; |
889 | - |
890 | QVariantMap toMap() const; |
891 | |
892 | void setEnabled(bool b); |
893 | |
894 | === modified file 'src/cmakeprojectmanager/cmakesettingspage.cpp' |
895 | --- src/cmakeprojectmanager/cmakesettingspage.cpp 2014-02-28 11:28:18 +0000 |
896 | +++ src/cmakeprojectmanager/cmakesettingspage.cpp 2014-06-16 10:00:33 +0000 |
897 | @@ -50,7 +50,7 @@ |
898 | setDisplayName(tr("CMake")); |
899 | setCategory(ProjectExplorer::Constants::PROJECTEXPLORER_SETTINGS_CATEGORY); |
900 | setDisplayCategory(QCoreApplication::translate("ProjectExplorer", |
901 | - ProjectExplorer::Constants::PROJECTEXPLORER_SETTINGS_TR_CATEGORY)); |
902 | + ProjectExplorer::Constants::PROJECTEXPLORER_SETTINGS_TR_CATEGORY)); |
903 | setCategoryIcon(QLatin1String(ProjectExplorer::Constants::PROJECTEXPLORER_SETTINGS_CATEGORY_ICON)); |
904 | } |
905 | |
906 | @@ -68,22 +68,26 @@ |
907 | return Utils::Environment::systemEnvironment().searchInPath(QLatin1String("cmake")); |
908 | } |
909 | |
910 | -QWidget *CMakeSettingsPage::createPage(QWidget *parent) |
911 | +QWidget *CMakeSettingsPage::widget( ) |
912 | { |
913 | - QWidget *outerWidget = new QWidget(parent); |
914 | - QFormLayout *formLayout = new QFormLayout(outerWidget); |
915 | - formLayout->setFieldGrowthPolicy(QFormLayout::ExpandingFieldsGrow); |
916 | - m_pathchooser = new Utils::PathChooser; |
917 | - m_pathchooser->setExpectedKind(Utils::PathChooser::ExistingCommand); |
918 | - formLayout->addRow(tr("Executable:"), m_pathchooser); |
919 | - formLayout->addItem(new QSpacerItem(0, 0, QSizePolicy::Ignored, QSizePolicy::MinimumExpanding)); |
920 | + if (!m_widget) { |
921 | + m_widget = new QWidget; |
922 | + QFormLayout *formLayout = new QFormLayout(m_widget); |
923 | + formLayout->setFieldGrowthPolicy(QFormLayout::ExpandingFieldsGrow); |
924 | + m_pathchooser = new Utils::PathChooser; |
925 | + m_pathchooser->setExpectedKind(Utils::PathChooser::ExistingCommand); |
926 | + m_pathchooser->setHistoryCompleter(QLatin1String("Cmake.Command.History")); |
927 | + formLayout->addRow(tr("Executable:"), m_pathchooser); |
928 | + formLayout->addItem(new QSpacerItem(0, 0, QSizePolicy::Ignored, QSizePolicy::MinimumExpanding)); |
929 | + |
930 | + m_preferNinja = new QCheckBox(tr("Prefer Ninja generator (CMake 2.8.9 or higher required)")); |
931 | + formLayout->addRow(m_preferNinja); |
932 | + } |
933 | m_pathchooser->setPath(CMakeToolManager::userCMakePath()); |
934 | |
935 | - m_preferNinja = new QCheckBox(tr("Prefer Ninja generator (CMake 2.8.9 or higher required)")); |
936 | m_preferNinja->setChecked(preferNinja()); |
937 | - formLayout->addRow(m_preferNinja); |
938 | |
939 | - return outerWidget; |
940 | + return m_widget; |
941 | } |
942 | |
943 | void CMakeSettingsPage::saveSettings() const |
944 | @@ -106,7 +110,7 @@ |
945 | |
946 | void CMakeSettingsPage::finish() |
947 | { |
948 | - |
949 | + delete m_widget; |
950 | } |
951 | |
952 | bool CMakeSettingsPage::hasCodeBlocksMsvcGenerator() const |
953 | |
954 | === modified file 'src/cmakeprojectmanager/cmakesettingspage.h' |
955 | --- src/cmakeprojectmanager/cmakesettingspage.h 2014-02-28 11:28:18 +0000 |
956 | +++ src/cmakeprojectmanager/cmakesettingspage.h 2014-06-16 10:00:33 +0000 |
957 | @@ -34,6 +34,7 @@ |
958 | #include <texteditor/codeassist/keywordscompletionassist.h> |
959 | #include <utils/pathchooser.h> |
960 | #include <QCheckBox> |
961 | +#include <QPointer> |
962 | |
963 | namespace CMakeProjectManager { |
964 | namespace Internal { |
965 | @@ -46,7 +47,7 @@ |
966 | CMakeSettingsPage(); |
967 | ~CMakeSettingsPage(); |
968 | |
969 | - QWidget *createPage(QWidget *parent); |
970 | + QWidget *widget(); |
971 | void apply(); |
972 | void finish(); |
973 | |
974 | @@ -61,6 +62,7 @@ |
975 | void saveSettings() const; |
976 | QString findCmakeExecutable() const; |
977 | |
978 | + QPointer<QWidget> m_widget; |
979 | Utils::PathChooser *m_pathchooser; |
980 | QCheckBox *m_preferNinja; |
981 | }; |
982 | |
983 | === modified file 'src/cmakeprojectmanager/cmaketool.cpp' |
984 | --- src/cmakeprojectmanager/cmaketool.cpp 2014-04-15 07:38:40 +0000 |
985 | +++ src/cmakeprojectmanager/cmaketool.cpp 2014-06-16 10:00:33 +0000 |
986 | @@ -234,9 +234,11 @@ |
987 | //add custom cmake environment vars |
988 | addToEnvironment(env); |
989 | |
990 | +#if 0 |
991 | qDebug()<<"Starting process: " |
992 | <<m_executable |
993 | <<argsStr; |
994 | +#endif |
995 | |
996 | m_process->setEnvironment(env); |
997 | m_process->setCommand(m_executable, argsStr); |
998 | |
999 | === modified file 'src/cmakeprojectmanager/cmaketoolmanager.cpp' |
1000 | --- src/cmakeprojectmanager/cmaketoolmanager.cpp 2014-03-12 09:06:14 +0000 |
1001 | +++ src/cmakeprojectmanager/cmaketoolmanager.cpp 2014-06-16 10:00:33 +0000 |
1002 | @@ -98,7 +98,7 @@ |
1003 | if(m_instance->m_cmakeTools.contains(id.uniqueIdentifier())) |
1004 | return m_instance->m_cmakeTools[id.uniqueIdentifier()]; |
1005 | |
1006 | - qDebug()<<"Don't know "<<id.toString()<<" Creating and registering it"; |
1007 | + //qDebug()<<"Don't know "<<id.toString()<<" Creating and registering it"; |
1008 | |
1009 | //try to find a factory that can create the cmake tool |
1010 | QList<ICMakeToolFactory*> factories = ExtensionSystem::PluginManager::getObjects<ICMakeToolFactory>(); |
1011 | |
1012 | === modified file 'src/cmakeprojectmanager/generatorinfo.cpp' |
1013 | --- src/cmakeprojectmanager/generatorinfo.cpp 2014-03-12 09:06:14 +0000 |
1014 | +++ src/cmakeprojectmanager/generatorinfo.cpp 2014-06-16 10:00:33 +0000 |
1015 | @@ -69,7 +69,8 @@ |
1016 | if (targetAbi.osFlavor() == ProjectExplorer::Abi::WindowsMsvc2005Flavor |
1017 | || targetAbi.osFlavor() == ProjectExplorer::Abi::WindowsMsvc2008Flavor |
1018 | || targetAbi.osFlavor() == ProjectExplorer::Abi::WindowsMsvc2010Flavor |
1019 | - || targetAbi.osFlavor() == ProjectExplorer::Abi::WindowsMsvc2012Flavor) { |
1020 | + || targetAbi.osFlavor() == ProjectExplorer::Abi::WindowsMsvc2012Flavor |
1021 | + || targetAbi.osFlavor() == ProjectExplorer::Abi::WindowsMsvc2013Flavor) { |
1022 | return "NMake Makefiles"; |
1023 | } else if (targetAbi.osFlavor() == ProjectExplorer::Abi::WindowsMSysFlavor) { |
1024 | if (Utils::HostOsInfo::isWindowsHost()) |
1025 | @@ -101,7 +102,8 @@ |
1026 | if (targetAbi.osFlavor() == ProjectExplorer::Abi::WindowsMsvc2005Flavor |
1027 | || targetAbi.osFlavor() == ProjectExplorer::Abi::WindowsMsvc2008Flavor |
1028 | || targetAbi.osFlavor() == ProjectExplorer::Abi::WindowsMsvc2010Flavor |
1029 | - || targetAbi.osFlavor() == ProjectExplorer::Abi::WindowsMsvc2012Flavor) { |
1030 | + || targetAbi.osFlavor() == ProjectExplorer::Abi::WindowsMsvc2012Flavor |
1031 | + || targetAbi.osFlavor() == ProjectExplorer::Abi::WindowsMsvc2013Flavor) { |
1032 | return tr("NMake Generator"); |
1033 | } else if (targetAbi.osFlavor() == ProjectExplorer::Abi::WindowsMSysFlavor) { |
1034 | if (Utils::HostOsInfo::isWindowsHost()) |
1035 | @@ -136,7 +138,8 @@ |
1036 | if (targetAbi.osFlavor() == ProjectExplorer::Abi::WindowsMsvc2005Flavor |
1037 | || targetAbi.osFlavor() == ProjectExplorer::Abi::WindowsMsvc2008Flavor |
1038 | || targetAbi.osFlavor() == ProjectExplorer::Abi::WindowsMsvc2010Flavor |
1039 | - || targetAbi.osFlavor() == ProjectExplorer::Abi::WindowsMsvc2012Flavor) { |
1040 | + || targetAbi.osFlavor() == ProjectExplorer::Abi::WindowsMsvc2012Flavor |
1041 | + || targetAbi.osFlavor() == ProjectExplorer::Abi::WindowsMsvc2013Flavor) { |
1042 | if (hasCodeBlocks) |
1043 | results << GeneratorInfo(k); |
1044 | } else if (targetAbi.osFlavor() == ProjectExplorer::Abi::WindowsMSysFlavor) { |
1045 | |
1046 | === modified file 'src/cmakeprojectmanager/makestep.h' |
1047 | --- src/cmakeprojectmanager/makestep.h 2014-02-28 11:42:54 +0000 |
1048 | +++ src/cmakeprojectmanager/makestep.h 2014-06-16 10:00:33 +0000 |
1049 | @@ -39,9 +39,7 @@ |
1050 | class QListWidgetItem; |
1051 | QT_END_NAMESPACE |
1052 | |
1053 | -namespace ProjectExplorer { |
1054 | -class ToolChain; |
1055 | -} |
1056 | +namespace ProjectExplorer { class ToolChain; } |
1057 | |
1058 | namespace CMakeProjectManager { |
1059 | class CMakeBuildConfiguration; |
FAILED: Continuous integration, rev:39 jenkins. qa.ubuntu. com/job/ qtcreator- plugin- cmake-ci/ 10/ jenkins. qa.ubuntu. com/job/ qtcreator- plugin- cmake-utopic- amd64-ci/ 1/console jenkins. qa.ubuntu. com/job/ qtcreator- plugin- cmake-utopic- armhf-ci/ 1/console
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/qtcreator- plugin- cmake-ci/ 10/rebuild
http://