From 4798ec5529666e2297881fa4433e5e9880d920d4 Mon Sep 17 00:00:00 2001 From: dt Date: Thu, 29 Oct 2009 19:42:56 +0100 Subject: [PATCH 01/10] On qt version change updat qmakestep config widget That is the effective qmake command and summary label. --- src/plugins/qt4projectmanager/qmakestep.cpp | 10 ++++++++++ src/plugins/qt4projectmanager/qmakestep.h | 1 + src/plugins/qt4projectmanager/qt4project.cpp | 1 + src/plugins/qt4projectmanager/qt4project.h | 1 + 4 files changed, 13 insertions(+) diff --git a/src/plugins/qt4projectmanager/qmakestep.cpp b/src/plugins/qt4projectmanager/qmakestep.cpp index fc6296576ab..92dc312a3a1 100644 --- a/src/plugins/qt4projectmanager/qmakestep.cpp +++ b/src/plugins/qt4projectmanager/qmakestep.cpp @@ -209,6 +209,8 @@ QMakeStepConfigWidget::QMakeStepConfigWidget(QMakeStep *step) connect(m_ui.buildConfigurationComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(buildConfigurationChanged())); connect(step, SIGNAL(changed()), this, SLOT(update())); + connect(step->project(), SIGNAL(qtVersionChanged(ProjectExplorer::BuildConfiguration *)), + this, SLOT(qtVersionChanged(ProjectExplorer::BuildConfiguration *))); } QString QMakeStepConfigWidget::summaryText() const @@ -216,6 +218,14 @@ QString QMakeStepConfigWidget::summaryText() const return m_summaryText; } +void QMakeStepConfigWidget::qtVersionChanged(ProjectExplorer::BuildConfiguration *bc) +{ + if (bc && bc->name() == m_buildConfiguration) { + updateTitleLabel(); + updateEffectiveQMakeCall(); + } +} + void QMakeStepConfigWidget::updateTitleLabel() { Qt4Project *qt4project = qobject_cast(m_step->project()); diff --git a/src/plugins/qt4projectmanager/qmakestep.h b/src/plugins/qt4projectmanager/qmakestep.h index 6588fa41bf6..d23d471636e 100644 --- a/src/plugins/qt4projectmanager/qmakestep.h +++ b/src/plugins/qt4projectmanager/qmakestep.h @@ -107,6 +107,7 @@ private slots: void qmakeArgumentsLineEditTextEdited(); void buildConfigurationChanged(); void update(); + void qtVersionChanged(ProjectExplorer::BuildConfiguration *bc); private: void updateTitleLabel(); void updateEffectiveQMakeCall(); diff --git a/src/plugins/qt4projectmanager/qt4project.cpp b/src/plugins/qt4projectmanager/qt4project.cpp index 3f6e89b963b..b188b7855af 100644 --- a/src/plugins/qt4projectmanager/qt4project.cpp +++ b/src/plugins/qt4projectmanager/qt4project.cpp @@ -984,6 +984,7 @@ int Qt4Project::qtVersionId(BuildConfiguration *configuration) const void Qt4Project::setQtVersion(BuildConfiguration *configuration, int id) { configuration->setValue(KEY_QT_VERSION_ID, id); + emit qtVersionChanged(configuration); updateActiveRunConfiguration(); } diff --git a/src/plugins/qt4projectmanager/qt4project.h b/src/plugins/qt4projectmanager/qt4project.h index a9ed61871dd..95f2c79b4d0 100644 --- a/src/plugins/qt4projectmanager/qt4project.h +++ b/src/plugins/qt4projectmanager/qt4project.h @@ -238,6 +238,7 @@ public: static QString extractSpecFromArgumentList(const QStringList &list); signals: void targetInformationChanged(); + void qtVersionChanged(ProjectExplorer::BuildConfiguration *); public slots: void update(); From cc94b9c638c365127e305e220344eb716932f850 Mon Sep 17 00:00:00 2001 From: Robert Loehning Date: Thu, 29 Oct 2009 20:49:40 +0100 Subject: [PATCH 02/10] Trk: Added i18n in Session::deviceDescription() Reviewed-by: Oswald Buddenhagen --- src/shared/trk/trkutils.cpp | 62 +++++++++++++++++++++++++------------ 1 file changed, 43 insertions(+), 19 deletions(-) diff --git a/src/shared/trk/trkutils.cpp b/src/shared/trk/trkutils.cpp index 4b63cad0343..458390d8893 100644 --- a/src/shared/trk/trkutils.cpp +++ b/src/shared/trk/trkutils.cpp @@ -30,6 +30,7 @@ #include "trkutils.h" #include +#include #include #define logMessage(s) do { qDebug() << "TRKCLIENT: " << s; } while (0) @@ -70,38 +71,61 @@ void Session::reset() trkAppVersion.reset(); } -inline void formatCpu(QTextStream &str,int major, int minor) +QString formatCpu(int major, int minor) { - str << "CPU: v" << major << '.' << minor; + //: CPU description of an S60 device + //: %1 major verison, %2 minor version + //: %3 real name of major verison, %4 real name of minor version + const QString str = QCoreApplication::translate("trk::Session", "CPU: v%1.%2%3%4"); + QString majorStr; + QString minorStr; switch (major) { case 0x04: - str << " ARM"; + majorStr = " ARM"; break; } switch (minor) { case 0x00: - str << " 920T"; + minorStr = " 920T"; break; } + return str.arg(major).arg(minor).arg(majorStr).arg(minorStr); } +QString formatTrkVersion(const TrkAppVersion &version) +{ + QString str = QCoreApplication::translate("trk::Session", + "App TRK: v%1.%2 TRK protocol: v%3.%4"); + str = str.arg(version.trkMajor).arg(version.trkMinor); + return str.arg(version.protocolMajor).arg(version.protocolMinor); +} + QString Session::deviceDescription(unsigned verbose) const { - QString msg; - if (cpuMajor) { - QTextStream str(&msg); - formatCpu(str, cpuMajor, cpuMinor); - str << ", " << (bigEndian ? "big endian" : "little endian"); - if (verbose) { - if (defaultTypeSize) - str << ", type size: " << defaultTypeSize; - if (fpTypeSize) - str << ", float size: " << fpTypeSize; - } - str << ", App TRK: v" << trkAppVersion.trkMajor << '.' << trkAppVersion.trkMinor - << " TRK protocol: v" << trkAppVersion.protocolMajor << '.' << trkAppVersion.protocolMinor; - } - return msg; + if (!cpuMajor) + return QString(); + + //: s60description + //: description of an S60 device + //: %1 CPU description, %2 endianness + //: %3 default type size (if any), %4 float size (if any) + //: %5 TRK version + QString msg = QCoreApplication::translate("trk::Session", "%1, %2%3%4, %5"); + QString endianness = bigEndian + ? QCoreApplication::translate("trk::Session", "big endian") + : QCoreApplication::translate("trk::Session", "little endian"); + msg = msg.arg(formatCpu(cpuMajor, cpuMinor)).arg(endianness); + //: The separator in a list of strings + QString defaultTypeSizeStr; + QString fpTypeSizeStr; + if (verbose && defaultTypeSize) + //: will be inserted into s60description + defaultTypeSizeStr = QCoreApplication::translate("trk::Session", ", type size: %1").arg(defaultTypeSize); + if (verbose && fpTypeSize) + //: will be inserted into s60description + fpTypeSizeStr = QCoreApplication::translate("trk::Session", ", float size: %1").arg(fpTypeSize); + msg = msg.arg(defaultTypeSizeStr).arg(fpTypeSizeStr); + return msg.arg(formatTrkVersion(trkAppVersion)); } From 0b37be6e22761ee9342f3d342de0cb6d84505fc0 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Fri, 30 Oct 2009 09:16:27 +0100 Subject: [PATCH 03/10] Debugger: Completely replace C99 uintptr_t type by quintptr. --- share/qtcreator/gdbmacros/gdbmacros.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/qtcreator/gdbmacros/gdbmacros.cpp b/share/qtcreator/gdbmacros/gdbmacros.cpp index ecaee41ec3a..11f83c65c90 100644 --- a/share/qtcreator/gdbmacros/gdbmacros.cpp +++ b/share/qtcreator/gdbmacros/gdbmacros.cpp @@ -633,7 +633,7 @@ QDumper &QDumper::put(const void *p) if (p) { // Pointer is 'long long' on WIN_64, only static const char *printFormat = sizeof(quintptr) == sizeof(long) ? "0x%lx" : "0x%llx"; - pos += sprintf(outBuffer + pos, printFormat, reinterpret_cast(p)); + pos += sprintf(outBuffer + pos, printFormat, reinterpret_cast(p)); } else { pos += sprintf(outBuffer + pos, ""); } @@ -1069,7 +1069,7 @@ static void qDumpQAbstractItem(QDumper &d) static const char *printFormat = sizeof(quintptr) == sizeof(long) ? "%d,%d,0x%lx,0x%lx" : "%d,%d,0x%llx,0x%llx"; sscanf(d.templateParameters[0], printFormat, &mm->r, &mm->c, - reinterpret_cast(&mm->p), reinterpret_cast(&mm->m)); + reinterpret_cast(&mm->p), reinterpret_cast(&mm->m)); } const QAbstractItemModel *m = mi.model(); const int rowCount = m->rowCount(mi); From 5f60b055c046b8ce4f8d77402738d05e246e2659 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Fri, 30 Oct 2009 10:48:51 +0100 Subject: [PATCH 04/10] Debugger: Show slashes correctly in Stack frame tooltip. --- src/plugins/debugger/stackhandler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/debugger/stackhandler.cpp b/src/plugins/debugger/stackhandler.cpp index ec47a02b159..fa6b972e555 100644 --- a/src/plugins/debugger/stackhandler.cpp +++ b/src/plugins/debugger/stackhandler.cpp @@ -36,6 +36,7 @@ #include #include #include +#include namespace Debugger { namespace Internal { @@ -79,7 +80,7 @@ QString StackFrame::toToolTip() const str << "" << "" << "" - << "" + << "" << "" << "" << "" From 525b26d0cfee216764c4a19984685507187f3958 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Fri, 30 Oct 2009 13:57:06 +0100 Subject: [PATCH 05/10] CVS: Enable click on revision in filelog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Match regular expression depending on mode. Improve common VCS settings layout. Reviewed-by: Thorbjørn Lindeijer --- src/plugins/cvs/cvseditor.cpp | 41 +++++++++++++++------- src/plugins/cvs/cvseditor.h | 3 +- src/plugins/vcsbase/vcsbasesettingspage.ui | 16 ++------- 3 files changed, 34 insertions(+), 26 deletions(-) diff --git a/src/plugins/cvs/cvseditor.cpp b/src/plugins/cvs/cvseditor.cpp index 38c1363aa60..03f81adb59f 100644 --- a/src/plugins/cvs/cvseditor.cpp +++ b/src/plugins/cvs/cvseditor.cpp @@ -48,9 +48,11 @@ namespace Internal { CVSEditor::CVSEditor(const VCSBase::VCSBaseEditorParameters *type, QWidget *parent) : VCSBase::VCSBaseEditor(type, parent), - m_revisionPattern(QLatin1String(CVS_REVISION_AT_START_PATTERN".*$")) + m_revisionAnnotationPattern(QLatin1String(CVS_REVISION_AT_START_PATTERN".*$")), + m_revisionLogPattern(QLatin1String("^revision *("CVS_REVISION_PATTERN")$")) { - QTC_ASSERT(m_revisionPattern.isValid(), return); + QTC_ASSERT(m_revisionAnnotationPattern.isValid(), return); + QTC_ASSERT(m_revisionLogPattern.isValid(), return); } QSet CVSEditor::annotationChanges() const @@ -79,16 +81,31 @@ QSet CVSEditor::annotationChanges() const QString CVSEditor::changeUnderCursor(const QTextCursor &c) const { - - // Check for a revision number at the beginning of the line. - // Note that "cursor.select(QTextCursor::WordUnderCursor)" will - // only select the part up until the dot. - // Check if we are at the beginning of a line within a reasonable offset. - const QTextBlock block = c.block(); - if (c.atBlockStart() || (c.position() - block.position() < 3)) { - const QString line = block.text(); - if (m_revisionPattern.exactMatch(line)) - return m_revisionPattern.cap(1); + // Try to match "1.1" strictly: + // 1) Annotation: Check for a revision number at the beginning of the line. + // Note that "cursor.select(QTextCursor::WordUnderCursor)" will + // only select the part up until the dot. + // Check if we are at the beginning of a line within a reasonable offset. + // 2) Log: check for lines like "revision 1.1", cursor past "revision" + switch (contentType()) { + case VCSBase::RegularCommandOutput: + case VCSBase::DiffOutput: + break; + case VCSBase::AnnotateOutput: { + const QTextBlock block = c.block(); + if (c.atBlockStart() || (c.position() - block.position() < 3)) { + const QString line = block.text(); + if (m_revisionAnnotationPattern.exactMatch(line)) + return m_revisionAnnotationPattern.cap(1); + } + } + break; + case VCSBase::LogOutput: { + const QTextBlock block = c.block(); + if (c.position() - block.position() > 8 && m_revisionLogPattern.exactMatch(block.text())) + return m_revisionLogPattern.cap(1); + } + break; } return QString(); } diff --git a/src/plugins/cvs/cvseditor.h b/src/plugins/cvs/cvseditor.h index a3d38bfff4b..a9bb40eaf50 100644 --- a/src/plugins/cvs/cvseditor.h +++ b/src/plugins/cvs/cvseditor.h @@ -59,7 +59,8 @@ private: virtual VCSBase::BaseAnnotationHighlighter *createAnnotationHighlighter(const QSet &changes) const; virtual QString fileNameFromDiffSpecification(const QTextBlock &diffFileName) const; - const QRegExp m_revisionPattern; + const QRegExp m_revisionAnnotationPattern; + const QRegExp m_revisionLogPattern; QString m_diffBaseDir; }; diff --git a/src/plugins/vcsbase/vcsbasesettingspage.ui b/src/plugins/vcsbase/vcsbasesettingspage.ui index 78a1326291c..a535a107069 100644 --- a/src/plugins/vcsbase/vcsbasesettingspage.ui +++ b/src/plugins/vcsbase/vcsbasesettingspage.ui @@ -65,6 +65,9 @@ + + QFormLayout::WrapLongRows + @@ -109,19 +112,6 @@ name <email> alias <email> - - - - Qt::Horizontal - - - - 40 - 20 - - - - From 80a6ccc8a89bf5aa3c0c11e92e64539fda7b2a9f Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Fri, 30 Oct 2009 14:00:00 +0100 Subject: [PATCH 06/10] Update Polish translation --- share/qtcreator/translations/qtcreator_pl.ts | 231 +++++++++++++------ 1 file changed, 161 insertions(+), 70 deletions(-) diff --git a/share/qtcreator/translations/qtcreator_pl.ts b/share/qtcreator/translations/qtcreator_pl.ts index 6a392a0e719..327192d7a8d 100644 --- a/share/qtcreator/translations/qtcreator_pl.ts +++ b/share/qtcreator/translations/qtcreator_pl.ts @@ -2052,7 +2052,7 @@ p, li { white-space: pre-wrap; } - + New Project... Nowy projekt... @@ -2524,7 +2524,7 @@ It also automatically sets the correct Qt version. You can fine tune the <tt>Find</tt> function by selecting &quot;Whole Words&quot; or &quot;Case Sensitive&quot;. Simply click on the icons on the right end of the line edit. - Możesz wyregulować działanie funkcji <tt>Znajdź</tt> poprzez wybranie &quot;Tylko całe słowa&quot; lub &quot;Uwzględniaj wielkość liter&quot;.W tym celu naciśnij ikonę w prawym końcu pola edycyjnego. + Możesz wyregulować działanie funkcji <tt>Znajdź</tt> poprzez wybranie &quot;Tylko całe słowa&quot; lub &quot;Uwzględniaj wielkość liter&quot;. W tym celu naciśnij ikonę w prawym końcu pola edycyjnego. @@ -2589,8 +2589,12 @@ It also automatically sets the correct Qt version. + In the editor, <tt>F2</tt> follows symbol definition, <tt>Shift+F2</tt> toggles declaration and definition while <tt>F4</tt> toggles header file and source file. + Naciśnięcie w edytorze <tt>F2</tt> powoduje skok do definicji symbolu, <tt>Shift+F2</tt> przełącza między deklaracją a definicją, zaś <tt>F4</tt> przełącza między plikiem nagłówkowym a plikiem źródłowym. + + In the editor, <tt>F2</tt> toggles declaration and definition while <tt>F4</tt> toggles header file and source file. - Naciśnięcie w edytorze <tt>F2</tt> przełącza między deklaracją a definicją, zaś <tt>F4</tt> przełącza między plikiem nagłówkowym a plikiem źródłowym. + Naciśnięcie w edytorze <tt>F2</tt> przełącza między deklaracją a definicją, zaś <tt>F4</tt> przełącza między plikiem nagłówkowym a plikiem źródłowym. @@ -2715,13 +2719,13 @@ It also automatically sets the correct Qt version. - - + + Default Qt Version (%1) Domyślna wersja Qt (%1) - + No Qt Version set Nie ustawiono wersji Qt @@ -2827,6 +2831,11 @@ p, li { white-space: pre-wrap; } Carbide Directory: Katalog Carbide: + + + CLS/GCCE Directory: + + ShowBuildLog @@ -4861,7 +4870,7 @@ Czy chcesz je nadpisać? Split Side by Side - + Podziel sąsiadująco @@ -4974,7 +4983,7 @@ Czy chcesz je nadpisać? <b>Warning:</b> You are changing a read-only file. - + <b>Ostrzeżenie:</b> Zmieniasz plik który jest tylko do odczytu. @@ -5004,7 +5013,7 @@ Czy chcesz je nadpisać? You will lose your current changes if you proceed reverting %1. - + Utracisz swoje bieżące zmiany @@ -5102,11 +5111,6 @@ Czy chcesz je nadpisać? Go Back - - - Go Back - - Go Forward @@ -7572,7 +7576,7 @@ Zwróć uwagę że spowoduje to usunięcie lokalnego pliku. Wczytywanie %1... - + Running... Uruchamianie... @@ -7603,7 +7607,7 @@ Zwróć uwagę że spowoduje to usunięcie lokalnego pliku. Uruchomienie programu zakończone niepowodzeniem: %1 - + Jumped. Stopped. @@ -7633,12 +7637,12 @@ Zwróć uwagę że spowoduje to usunięcie lokalnego pliku. Ładowanie %1... - + Stopped at breakpoint. Zatrzymano w pułapce. - + <p>The inferior stopped because it received a signal from the Operating System.<p><table><tr><td>Signal name : </td><td>%1</td></tr><tr><td>Signal meaning : </td><td>%2</td></tr></table> @@ -7655,17 +7659,17 @@ Zwróć uwagę że spowoduje to usunięcie lokalnego pliku. - + Stopped. Zatrzymano. - + Stopped: "%1" Zatrzymano: "%1" - + The debugger you are using identifies itself as: Debugger którego używasz identyfikuje się jako: @@ -7679,7 +7683,7 @@ Debugowanie najprawdopodobniej nie będzie działało poprawnie. Zaleca się użycie gdb wersji 6.7 lub późniejszej. - + Continuing after temporary stop... Kontynuowanie po tymczasowym zatrzymaniu... @@ -7729,13 +7733,13 @@ Zaleca się użycie gdb wersji 6.7 lub późniejszej. Nie można uruchomić "%1": %2 - + <unknown> End address of loaded module - + Retrieving data for stack view... @@ -7851,7 +7855,7 @@ Zaleca się użycie gdb wersji 6.7 lub późniejszej. - + Execution Error @@ -7862,7 +7866,7 @@ Zaleca się użycie gdb wersji 6.7 lub późniejszej. - + Jumping out of bogus frame... @@ -7887,17 +7891,17 @@ Zaleca się użycie gdb wersji 6.7 lub późniejszej. - + Inferior start failed - + Inferior shutdown failed - + Adapter crashed @@ -7993,9 +7997,14 @@ Zaleca się użycie gdb wersji 6.7 lub późniejszej. + Connecting to TRK server adapter failed: + + + + Connecting to trk server adapter failed: - Nie można połączyć się z adapterem serwera trk: + Nie można połączyć się z adapterem serwera trk: @@ -8015,9 +8024,13 @@ Zaleca się użycie gdb wersji 6.7 lub późniejszej. Debugger::Internal::TrkOptionsPage - Symbian Trk - Symbian Trk + Symbian Trk + + + + Symbian TRK + @@ -10948,7 +10961,7 @@ Rebuilding the project might help. ProjectExplorer::Internal::BuildSettingsPanel - + Build Settings Ustawienia budowania @@ -10956,7 +10969,7 @@ Rebuilding the project might help. ProjectExplorer::Internal::BuildSettingsWidget - + Edit Build Configuration: Zmodyfikuj konfigurację budowania: @@ -10971,7 +10984,7 @@ Rebuilding the project might help. Usuń - + &Clone Selected S&klonuj wybraną @@ -10986,7 +10999,12 @@ Rebuilding the project might help. Kroki procesu czyszczenia - + + <a href="#">Make %1 active.</a> + + + + Clone configuration Sklonuj konfigurację @@ -11446,7 +11464,7 @@ Reason: %2 ProjectExplorer::ProjectExplorerPlugin - + Projects Projekty @@ -11679,7 +11697,7 @@ Reason: %2 Nowy projekt - + New File Title of dialog Nowy plik @@ -11768,6 +11786,49 @@ do systemu kontroli wersji (%2)? Nie można usunąć pliku %1. + + ProjectExplorer::Internal::BuildConfigDialog + + + Change build configuration && continue + + + + + Cancel + Anuluj + + + + Continue anyway + + + + + Run configuration doesn't match build configuration + + + + + The active build configuration builds a target that cannot be used by the active run configuration. + + + + + This can happen if the active build configuration uses the wrong Qt version and/or tool chain for the active run configuration (e.g. running in Symbian emulator requires building with WINSCW tool chain). + + + + + Choose build configuration: + + + + + No valid build configuration found. + + + ProjectExplorer::Internal::ProjectExplorerSettingsPage @@ -11929,6 +11990,11 @@ do systemu kontroli wersji (%2)? Remove Usuń + + + <a href="#">Make %1 active.</a> + + ProjectExplorer::Internal::SessionFile @@ -12380,12 +12446,12 @@ do systemu kontroli wersji (%2)? Qt4ProjectManager::MakeStepConfigWidget - + Override %1: Nadpisanie %1: - + <b>Make Step:</b> %1 not found in the environment. <b>Krok Make:</b> Nie odnaleziono %1 w środowisku. @@ -12486,7 +12552,7 @@ do systemu kontroli wersji (%2)? Qt4ProjectManager::Internal::S60DeviceRunConfiguration - + %1 on Symbian Device %1 na urządzeniu Symbian @@ -12496,7 +12562,7 @@ do systemu kontroli wersji (%2)? Konfiguracja procesu uruchamiania urządzenia QtS60 - + Could not parse %1. The QtS60 Device run configuration %2 can not be started. Nie można przetworzyć %1. Nie można rozpocząć konfiguracji procesu uruchamiania %2 dla urządzenia QtS60. @@ -12504,7 +12570,7 @@ do systemu kontroli wersji (%2)? Qt4ProjectManager::Internal::S60DeviceRunConfigurationWidget - + Device: Urządzenie: @@ -12554,7 +12620,7 @@ do systemu kontroli wersji (%2)? - + <No Device> Summary text of S60 device run configuration <Brak urządzenia> @@ -12575,15 +12641,10 @@ do systemu kontroli wersji (%2)? Podsumowanie: Uruchomiono na "%1" %2 - + Connecting... Łączenie... - - - A timeout occurred while querying the device. Check whether Trk is running - - Qt4ProjectManager::Internal::S60DeviceRunConfigurationFactory @@ -12597,6 +12658,11 @@ do systemu kontroli wersji (%2)? Qt4ProjectManager::Internal::S60DeviceRunControlBase + There is no device plugged in. + + + + Creating %1.sisx ... Tworzenie %1.sisx ... @@ -12612,12 +12678,12 @@ do systemu kontroli wersji (%2)? - + %1 %2 %1 %2 - + Could not read template package file '%1' Nie można odczytać pliku z pakietem szablonów "%1" @@ -12628,26 +12694,31 @@ do systemu kontroli wersji (%2)? - + An error occurred while creating the package. Wystąpił błąd podczas tworzenia pakietu. - + Package: %1 Deploying application to '%2'... Pakiet: %1 Umieszczanie aplikacji w "%2"... - Could not connect to phone on port '%1': %2 Check if the phone is connected and the TRK application is running. - Nie można nawiązać połączenia z telefonem na porcie "%1": %2 + Nie można nawiązać połączenia z telefonem na porcie "%1": %2 Sprawdź czy telefon jest podłączony i czy aplikacja TRK jest uruchomiona. - + + Could not connect to phone on port '%1': %2 +Check if the phone is connected and App TRK is running. + + + + Could not create file %1 on device: %2 Nie można utworzyć pliku %1 na urządzeniu: %2 @@ -12687,7 +12758,22 @@ Sprawdź czy telefon jest podłączony i czy aplikacja TRK jest uruchomiona.Nie można zainstalować z pakietu %1 na urządzeniu: %2 - + + Waiting for App TRK + + + + + Please start App TRK on %1. + + + + + Canceled. + + + + Failed to start %1. Nie można uruchomić %1. @@ -12705,7 +12791,7 @@ Sprawdź czy telefon jest podłączony i czy aplikacja TRK jest uruchomiona. Qt4ProjectManager::Internal::S60DeviceRunControl - + Finished. Zakończono. @@ -12816,7 +12902,7 @@ Sprawdź czy telefon jest podłączony i czy aplikacja TRK jest uruchomiona. Qt4ProjectManager::Internal::S60Manager - + Run in Emulator Uruchom w emulatorze @@ -12929,7 +13015,7 @@ Sprawdź czy telefon jest podłączony i czy aplikacja TRK jest uruchomiona.Używając wersji "%1" - + New configuration Nowa konfiguracja @@ -12939,7 +13025,7 @@ Sprawdź czy telefon jest podłączony i czy aplikacja TRK jest uruchomiona.Nazwa nowej konfiguracji: - + %1 Debug %1 Debug @@ -13279,6 +13365,11 @@ Sprawdź czy telefon jest podłączony i czy aplikacja TRK jest uruchomiona.Select S60 SDK Root + + + Select the CSL Arm Toolchain (GCCE) Directory + + Auto-detected @@ -13290,7 +13381,7 @@ Sprawdź czy telefon jest podłączony i czy aplikacja TRK jest uruchomiona.Ustawione ręcznie - + Building helpers @@ -13301,7 +13392,7 @@ Sprawdź czy telefon jest podłączony i czy aplikacja TRK jest uruchomiona. - + The Qt Version identified by %1 is not installed. Run make install Wersja Qt identyfikowana przez %1 nie jest zainstalowana. Uruchom "make install" @@ -13319,7 +13410,7 @@ Sprawdź czy telefon jest podłączony i czy aplikacja TRK jest uruchomiona. Qt4ProjectManager::QtVersionManager - + <not found> <nie znaleziony> @@ -13373,7 +13464,7 @@ Sprawdź czy telefon jest podłączony i czy aplikacja TRK jest uruchomiona. QApplication - + The Qt Version has no toolchain. @@ -16007,13 +16098,13 @@ aktywny tylko po wpisaniu przedrostka - Unexpected token `%1' + Unexpected token '%1' - Expected token `%1' + Expected token '%1' @@ -16031,12 +16122,12 @@ aktywny tylko po wpisaniu przedrostka - Waiting for TRK + Waiting for App TRK - Waiting for TRK to start on %1... + Waiting for App TRK to start on %1... From 3a64a1035759efcc260f13ebe467d41da39f028b Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Fri, 30 Oct 2009 14:00:08 +0100 Subject: [PATCH 07/10] S60: Increase timeout for TRK prompt. Reviewed-by: Robert Loehning --- src/shared/trk/launcher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/trk/launcher.cpp b/src/shared/trk/launcher.cpp index a554269f0ef..b9b5f04a159 100644 --- a/src/shared/trk/launcher.cpp +++ b/src/shared/trk/launcher.cpp @@ -201,7 +201,7 @@ bool Launcher::startServer(QString *errorMessage) } setState(Connecting); // Set up the temporary 'waiting' state if we do not get immediate connection - QTimer::singleShot(200, this, SLOT(slotWaitingForTrk())); + QTimer::singleShot(1000, this, SLOT(slotWaitingForTrk())); d->m_device->sendTrkInitialPing(); d->m_device->sendTrkMessage(TrkDisconnect); // Disconnect, as trk might be still connected d->m_device->sendTrkMessage(TrkSupported, TrkCallback(this, &Launcher::handleSupportMask)); From 4036d2e2133ae34503222023ed04d9639a971194 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Fri, 30 Oct 2009 14:01:45 +0100 Subject: [PATCH 08/10] Documentation: Metnion proper Qt version to build. Reviewed-by: kh --- doc/qtcreator.qdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/qtcreator.qdoc b/doc/qtcreator.qdoc index b3575092dfc..36ed302e308 100644 --- a/doc/qtcreator.qdoc +++ b/doc/qtcreator.qdoc @@ -1941,7 +1941,7 @@ \o Mac OS 10.4 and later \endlist - \note Building the sources requires \bold{Qt 4.5.0} or later. + \note Building the sources requires \bold{Qt 4.6.0} or later. */ From aa36a5b5fdfea0833ecea6debe91fe0f11973dae Mon Sep 17 00:00:00 2001 From: Robert Loehning Date: Fri, 30 Oct 2009 15:43:13 +0100 Subject: [PATCH 09/10] Typo fixes in German translation. Reviewed-by: Friedemann Kleint --- share/qtcreator/translations/qtcreator_de.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/qtcreator/translations/qtcreator_de.ts b/share/qtcreator/translations/qtcreator_de.ts index 67f803de6e9..fa61bcbb885 100644 --- a/share/qtcreator/translations/qtcreator_de.ts +++ b/share/qtcreator/translations/qtcreator_de.ts @@ -514,7 +514,7 @@ Qt Creator has detected an <b>in-source-build in %1</b> which prevents shadow builds. Qt Creator will not allow you to change the build directory. If you want a shadow build, clean your source directory and re-open the project. - Es wurde ein <b>Build im Quellverzeichnis</b> festgestellt, der Shadow-Builds verhindert. Das Build-Verzeichnis kann nicht in Qt Creator geändert werden. Wenn Sie einen Shadow-Build wünschen, bereinigen Sie bitte das Quellverzeichnis und öffnen Sie das Projekt noch einmal. + Es wurde ein <b>Build im Quellverzeichnis %1</b> festgestellt, der Shadow-Builds verhindert. Das Build-Verzeichnis kann nicht in Qt Creator geändert werden. Wenn Sie einen Shadow-Build wünschen, bereinigen Sie bitte das Quellverzeichnis und öffnen Sie das Projekt noch einmal. @@ -10396,7 +10396,7 @@ unter Versionsverwaltung (%2) gestellt werden? The active build configuration builds a target that cannot be used by the active run configuration. - Die aktive Build-Konfiguration erstellt ein Ziel, was von der aktive Ausführungskonfiguration nicht verwendet werden kann. + Die aktive Build-Konfiguration erstellt ein Ziel, das von der aktiven Ausführungskonfiguration nicht verwendet werden kann. From 50961cb98ddccd5f17b21c47a073335e5410fb63 Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 30 Oct 2009 16:42:33 +0100 Subject: [PATCH 10/10] debugger: list registers only after we have a known target --- src/plugins/debugger/gdb/gdbengine.cpp | 11 +++++++++-- src/plugins/debugger/gdb/gdbengine.h | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index f234b23aaba..3351ea8cf23 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -258,6 +258,7 @@ void GdbEngine::initializeVariables() m_gdbBuildVersion = -1; m_isMacGdb = false; m_isSynchroneous = false; + m_registerNamesListed = false; m_fullToShortName.clear(); m_shortToFullName.clear(); @@ -2416,6 +2417,11 @@ void GdbEngine::handleStackListThreads(const GdbResponse &response) void GdbEngine::reloadRegisters() { + if (!m_registerNamesListed) { + postCommand(_("-data-list-register-names"), CB(handleRegisterListNames)); + m_registerNamesListed = true; + } + if (m_gdbAdapter->isTrkAdapter()) { // FIXME: remove that special case. This is only to prevent // gdb from asking for the values of the fixed point registers @@ -2444,8 +2450,10 @@ void GdbEngine::setRegisterValue(int nr, const QString &value) void GdbEngine::handleRegisterListNames(const GdbResponse &response) { - if (response.resultClass != GdbResultDone) + if (response.resultClass != GdbResultDone) { + m_registerNamesListed = false; return; + } QList registers; foreach (const GdbMi &item, response.data.findChild("register-names").children()) @@ -4180,7 +4188,6 @@ bool GdbEngine::startGdb(const QStringList &args, const QString &gdb, const QStr postCommand(_("set breakpoint pending on")); postCommand(_("set print elements 10000")); - postCommand(_("-data-list-register-names"), CB(handleRegisterListNames)); //postCommand(_("set substitute-path /var/tmp/qt-x11-src-4.5.0 " // "/home/sandbox/qtsdk-2009.01/qt")); diff --git a/src/plugins/debugger/gdb/gdbengine.h b/src/plugins/debugger/gdb/gdbengine.h index c9e20eae299..1229cc17d9d 100644 --- a/src/plugins/debugger/gdb/gdbengine.h +++ b/src/plugins/debugger/gdb/gdbengine.h @@ -121,6 +121,7 @@ private: ////////// General State ////////// DebuggerStartParametersPtr m_startParameters; QSharedPointer m_trkOptions; + bool m_registerNamesListed; private: ////////// Gdb Process Management ////////// @@ -461,7 +462,6 @@ private: ////////// Convenience Functions ////////// void showMessageBox(int icon, const QString &title, const QString &text); void debugMessage(const QString &msg); QMainWindow *mainWindow() const; - }; } // namespace Internal
" << StackHandler::tr("Address:") << "" << address << "
" << StackHandler::tr("Function:") << "" << function << "
" << StackHandler::tr("File:") << "" << file << "
" << StackHandler::tr("File:") << "" << QDir::toNativeSeparators(file) << "
" << StackHandler::tr("Line:") << "" << line << "
" << StackHandler::tr("From:") << "" << from << "
" << StackHandler::tr("To:") << "" << to << "