forked from qt-creator/qt-creator
Merge remote branch 'origin/1.3'
This commit is contained in:
13
.gitignore
vendored
13
.gitignore
vendored
@@ -16,7 +16,6 @@
|
|||||||
.#*
|
.#*
|
||||||
*.*#
|
*.*#
|
||||||
core
|
core
|
||||||
.qmake.cache
|
|
||||||
tags
|
tags
|
||||||
.DS_Store
|
.DS_Store
|
||||||
*.debug
|
*.debug
|
||||||
@@ -58,24 +57,12 @@ share/qtcreator/translations/extract-mimetypes.xq
|
|||||||
# ---------------------
|
# ---------------------
|
||||||
|
|
||||||
debug
|
debug
|
||||||
examples/tools/plugandpaint/plugins
|
|
||||||
include/*
|
|
||||||
include/*/*
|
|
||||||
lib/*
|
lib/*
|
||||||
lib64/*
|
lib64/*
|
||||||
plugins/*/*
|
|
||||||
release
|
release
|
||||||
tmp
|
|
||||||
doc-build
|
|
||||||
doc/html/*
|
doc/html/*
|
||||||
doc/qch
|
|
||||||
doc-build
|
|
||||||
.rcc
|
.rcc
|
||||||
.pch
|
.pch
|
||||||
src/corelib/lib
|
|
||||||
src/network/lib
|
|
||||||
src/xml/lib/
|
|
||||||
run/*
|
|
||||||
|
|
||||||
# Binaries
|
# Binaries
|
||||||
# --------
|
# --------
|
||||||
|
File diff suppressed because it is too large
Load Diff
@@ -85,7 +85,7 @@ void AttachGdbAdapter::handleAttach(const GdbResponse &response)
|
|||||||
emit inferiorPrepared();
|
emit inferiorPrepared();
|
||||||
m_engine->updateAll();
|
m_engine->updateAll();
|
||||||
} else {
|
} else {
|
||||||
QString msg = __(response.data.findChild("msg").data());
|
QString msg = QString::fromLocal8Bit(response.data.findChild("msg").data());
|
||||||
emit inferiorStartFailed(msg);
|
emit inferiorStartFailed(msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -108,7 +108,7 @@ void CoreGdbAdapter::handleFileExecAndSymbols(const GdbResponse &response)
|
|||||||
showStatusMessage(tr("Symbols found."));
|
showStatusMessage(tr("Symbols found."));
|
||||||
} else {
|
} else {
|
||||||
QString msg = tr("Loading symbols from \"%1\" failed:\n").arg(m_executable)
|
QString msg = tr("Loading symbols from \"%1\" failed:\n").arg(m_executable)
|
||||||
+ __(response.data.findChild("msg").data());
|
+ QString::fromLocal8Bit(response.data.findChild("msg").data());
|
||||||
showMessageBox(QMessageBox::Warning, tr("Error Loading Symbols"), msg);
|
showMessageBox(QMessageBox::Warning, tr("Error Loading Symbols"), msg);
|
||||||
}
|
}
|
||||||
loadCoreFile();
|
loadCoreFile();
|
||||||
@@ -160,7 +160,7 @@ void CoreGdbAdapter::handleTargetCore(const GdbResponse &response)
|
|||||||
m_engine->updateAll();
|
m_engine->updateAll();
|
||||||
} else {
|
} else {
|
||||||
QString msg = tr("Attach to core \"%1\" failed:\n").arg(startParameters().coreFile)
|
QString msg = tr("Attach to core \"%1\" failed:\n").arg(startParameters().coreFile)
|
||||||
+ __(response.data.findChild("msg").data());
|
+ QString::fromLocal8Bit(response.data.findChild("msg").data());
|
||||||
emit inferiorStartFailed(msg);
|
emit inferiorStartFailed(msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1567,7 +1567,8 @@ void GdbEngine::handleInferiorShutdown(const GdbResponse &response)
|
|||||||
} else {
|
} else {
|
||||||
debugMessage(_("INFERIOR SHUTDOWN FAILED"));
|
debugMessage(_("INFERIOR SHUTDOWN FAILED"));
|
||||||
setState(InferiorShutdownFailed);
|
setState(InferiorShutdownFailed);
|
||||||
QString msg = m_gdbAdapter->msgInferiorStopFailed(_(response.data.findChild("msg").data()));
|
QString msg = m_gdbAdapter->msgInferiorStopFailed(
|
||||||
|
QString::fromLocal8Bit(response.data.findChild("msg").data()));
|
||||||
showMessageBox(QMessageBox::Critical, tr("Inferior shutdown failed"), msg);
|
showMessageBox(QMessageBox::Critical, tr("Inferior shutdown failed"), msg);
|
||||||
}
|
}
|
||||||
shutdown(); // re-iterate...
|
shutdown(); // re-iterate...
|
||||||
@@ -1580,7 +1581,8 @@ void GdbEngine::handleGdbExit(const GdbResponse &response)
|
|||||||
m_commandsDoneCallback = 0;
|
m_commandsDoneCallback = 0;
|
||||||
// don't set state here, this will be handled in handleGdbFinished()
|
// don't set state here, this will be handled in handleGdbFinished()
|
||||||
} else {
|
} else {
|
||||||
QString msg = m_gdbAdapter->msgGdbStopFailed(_(response.data.findChild("msg").data()));
|
QString msg = m_gdbAdapter->msgGdbStopFailed(
|
||||||
|
QString::fromLocal8Bit(response.data.findChild("msg").data()));
|
||||||
debugMessage(_("GDB WON'T EXIT (%1); KILLING IT").arg(msg));
|
debugMessage(_("GDB WON'T EXIT (%1); KILLING IT").arg(msg));
|
||||||
m_gdbProc.kill();
|
m_gdbProc.kill();
|
||||||
}
|
}
|
||||||
@@ -4329,7 +4331,7 @@ void GdbEngine::handleFetchDisassemblerByLine(const GdbResponse &response)
|
|||||||
if (msg == "mi_cmd_disassemble: Invalid line number")
|
if (msg == "mi_cmd_disassemble: Invalid line number")
|
||||||
fetchDisassemblerByAddress(ac.agent, true);
|
fetchDisassemblerByAddress(ac.agent, true);
|
||||||
else
|
else
|
||||||
showStatusMessage(tr("Disassembler failed: %1").arg(_(msg)), 5000);
|
showStatusMessage(tr("Disassembler failed: %1").arg(QString::fromLocal8Bit(msg)), 5000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -4354,7 +4356,7 @@ void GdbEngine::handleFetchDisassemblerByAddress1(const GdbResponse &response)
|
|||||||
} else {
|
} else {
|
||||||
// 26^error,msg="Cannot access memory at address 0x801ca308"
|
// 26^error,msg="Cannot access memory at address 0x801ca308"
|
||||||
QByteArray msg = response.data.findChild("msg").data();
|
QByteArray msg = response.data.findChild("msg").data();
|
||||||
showStatusMessage(tr("Disassembler failed: %1").arg(_(msg)), 5000);
|
showStatusMessage(tr("Disassembler failed: %1").arg(QString::fromLocal8Bit(msg)), 5000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -4368,7 +4370,7 @@ void GdbEngine::handleFetchDisassemblerByAddress0(const GdbResponse &response)
|
|||||||
ac.agent->setContents(parseDisassembler(lines));
|
ac.agent->setContents(parseDisassembler(lines));
|
||||||
} else {
|
} else {
|
||||||
QByteArray msg = response.data.findChild("msg").data();
|
QByteArray msg = response.data.findChild("msg").data();
|
||||||
showStatusMessage(tr("Disassembler failed: %1").arg(_(msg)), 5000);
|
showStatusMessage(tr("Disassembler failed: %1").arg(QString::fromLocal8Bit(msg)), 5000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -121,7 +121,7 @@ void PlainGdbAdapter::handleFileExecAndSymbols(const GdbResponse &response)
|
|||||||
emit inferiorPrepared();
|
emit inferiorPrepared();
|
||||||
} else {
|
} else {
|
||||||
QString msg = tr("Starting executable failed:\n") +
|
QString msg = tr("Starting executable failed:\n") +
|
||||||
__(response.data.findChild("msg").data());
|
QString::fromLocal8Bit(response.data.findChild("msg").data());
|
||||||
emit inferiorStartFailed(msg);
|
emit inferiorStartFailed(msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -163,7 +163,7 @@ void PlainGdbAdapter::handleExecRun(const GdbResponse &response)
|
|||||||
showStatusMessage(msgInferiorStarted());
|
showStatusMessage(msgInferiorStarted());
|
||||||
} else {
|
} else {
|
||||||
QTC_ASSERT(state() == InferiorRunningRequested, qDebug() << state());
|
QTC_ASSERT(state() == InferiorRunningRequested, qDebug() << state());
|
||||||
const QByteArray &msg = response.data.findChild("msg").data();
|
const QString &msg = QString::fromLocal8Bit(response.data.findChild("msg").data());
|
||||||
//QTC_ASSERT(status() == InferiorRunning, /**/);
|
//QTC_ASSERT(status() == InferiorRunning, /**/);
|
||||||
//interruptInferior();
|
//interruptInferior();
|
||||||
emit inferiorStartFailed(msg);
|
emit inferiorStartFailed(msg);
|
||||||
|
@@ -195,7 +195,7 @@ void RemoteGdbAdapter::handleFileExecAndSymbols(const GdbResponse &response)
|
|||||||
CB(handleTargetRemote));
|
CB(handleTargetRemote));
|
||||||
} else {
|
} else {
|
||||||
QString msg = tr("Starting remote executable failed:\n");
|
QString msg = tr("Starting remote executable failed:\n");
|
||||||
msg += __(response.data.findChild("msg").data());
|
msg += QString::fromLocal8Bit(response.data.findChild("msg").data());
|
||||||
emit inferiorStartFailed(msg);
|
emit inferiorStartFailed(msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -211,7 +211,8 @@ void RemoteGdbAdapter::handleTargetRemote(const GdbResponse &record)
|
|||||||
emit inferiorPrepared();
|
emit inferiorPrepared();
|
||||||
} else {
|
} else {
|
||||||
// 16^error,msg="hd:5555: Connection timed out."
|
// 16^error,msg="hd:5555: Connection timed out."
|
||||||
QString msg = msgConnectRemoteServerFailed(__(record.data.findChild("msg").data()));
|
QString msg = msgConnectRemoteServerFailed(
|
||||||
|
QString::fromLocal8Bit(record.data.findChild("msg").data()));
|
||||||
emit inferiorStartFailed(msg);
|
emit inferiorStartFailed(msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -143,7 +143,7 @@ void TermGdbAdapter::handleStubAttached(const GdbResponse &response)
|
|||||||
m_engine->postCommand(_("-stack-list-frames 0 0"), CB(handleEntryPoint));
|
m_engine->postCommand(_("-stack-list-frames 0 0"), CB(handleEntryPoint));
|
||||||
#endif
|
#endif
|
||||||
} else if (response.resultClass == GdbResultError) {
|
} else if (response.resultClass == GdbResultError) {
|
||||||
QString msg = _(response.data.findChild("msg").data());
|
QString msg = QString::fromLocal8Bit(response.data.findChild("msg").data());
|
||||||
emit inferiorStartFailed(msg);
|
emit inferiorStartFailed(msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1705,7 +1705,7 @@ void TrkGdbAdapter::handleTargetRemote(const GdbResponse &record)
|
|||||||
emit inferiorPrepared();
|
emit inferiorPrepared();
|
||||||
} else {
|
} else {
|
||||||
QString msg = tr("Connecting to TRK server adapter failed:\n")
|
QString msg = tr("Connecting to TRK server adapter failed:\n")
|
||||||
+ _(record.data.findChild("msg").data());
|
+ QString::fromLocal8Bit(record.data.findChild("msg").data());
|
||||||
emit inferiorStartFailed(msg);
|
emit inferiorStartFailed(msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -746,13 +746,15 @@ HelpViewer* HelpPlugin::viewerForContextMode()
|
|||||||
{
|
{
|
||||||
HelpViewer *viewer = 0;
|
HelpViewer *viewer = 0;
|
||||||
bool showSideBySide = false;
|
bool showSideBySide = false;
|
||||||
|
Core::RightPanePlaceHolder* placeHolder = Core::RightPanePlaceHolder::current();
|
||||||
|
Core::IEditor *editor = Core::EditorManager::instance()->currentEditor();
|
||||||
|
|
||||||
switch (m_helpEngine->customValue(QLatin1String("ContextHelpOption"), 0).toInt())
|
switch (m_helpEngine->customValue(QLatin1String("ContextHelpOption"), 0).toInt())
|
||||||
{
|
{
|
||||||
case 0: // side by side if possible
|
case 0: // side by side if possible
|
||||||
{
|
{
|
||||||
if (Core::IEditor *editor = Core::EditorManager::instance()->currentEditor()) {
|
if ((!placeHolder || !placeHolder->isVisible()) && editor) {
|
||||||
if (editor->widget() && editor->widget()->isVisible() && editor->widget()->width() < 800 )
|
if (!editor->widget() && editor->widget()->isVisible() && editor->widget()->width() < 800 )
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -764,7 +766,6 @@ HelpViewer* HelpPlugin::viewerForContextMode()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
Core::RightPanePlaceHolder* placeHolder = Core::RightPanePlaceHolder::current();
|
|
||||||
if (placeHolder && showSideBySide) {
|
if (placeHolder && showSideBySide) {
|
||||||
Core::RightPaneWidget::instance()->setShown(true);
|
Core::RightPaneWidget::instance()->setShown(true);
|
||||||
viewer = m_helpViewerForSideBar;
|
viewer = m_helpViewerForSideBar;
|
||||||
|
@@ -143,7 +143,8 @@ ColorSchemeEdit::ColorSchemeEdit(QWidget *parent) :
|
|||||||
QWidget(parent),
|
QWidget(parent),
|
||||||
m_curItem(-1),
|
m_curItem(-1),
|
||||||
m_ui(new Ui::ColorSchemeEdit),
|
m_ui(new Ui::ColorSchemeEdit),
|
||||||
m_formatsModel(new FormatsModel(this))
|
m_formatsModel(new FormatsModel(this)),
|
||||||
|
m_readOnly(false)
|
||||||
{
|
{
|
||||||
m_ui->setupUi(this);
|
m_ui->setupUi(this);
|
||||||
m_ui->itemList->setModel(m_formatsModel);
|
m_ui->itemList->setModel(m_formatsModel);
|
||||||
@@ -178,6 +179,11 @@ void ColorSchemeEdit::setBaseFont(const QFont &font)
|
|||||||
|
|
||||||
void ColorSchemeEdit::setReadOnly(bool readOnly)
|
void ColorSchemeEdit::setReadOnly(bool readOnly)
|
||||||
{
|
{
|
||||||
|
if (m_readOnly == readOnly)
|
||||||
|
return;
|
||||||
|
|
||||||
|
m_readOnly = readOnly;
|
||||||
|
|
||||||
const bool enabled = !readOnly;
|
const bool enabled = !readOnly;
|
||||||
m_ui->foregroundLabel->setEnabled(enabled);
|
m_ui->foregroundLabel->setEnabled(enabled);
|
||||||
m_ui->foregroundToolButton->setEnabled(enabled);
|
m_ui->foregroundToolButton->setEnabled(enabled);
|
||||||
@@ -216,7 +222,9 @@ void ColorSchemeEdit::updateControls()
|
|||||||
m_ui->foregroundToolButton->setStyleSheet(colorButtonStyleSheet(format.foreground()));
|
m_ui->foregroundToolButton->setStyleSheet(colorButtonStyleSheet(format.foreground()));
|
||||||
m_ui->backgroundToolButton->setStyleSheet(colorButtonStyleSheet(format.background()));
|
m_ui->backgroundToolButton->setStyleSheet(colorButtonStyleSheet(format.background()));
|
||||||
|
|
||||||
m_ui->eraseBackgroundToolButton->setEnabled(m_curItem > 0 && format.background().isValid());
|
m_ui->eraseBackgroundToolButton->setEnabled(!m_readOnly
|
||||||
|
&& m_curItem > 0
|
||||||
|
&& format.background().isValid());
|
||||||
|
|
||||||
const bool boldBlocked = m_ui->boldCheckBox->blockSignals(true);
|
const bool boldBlocked = m_ui->boldCheckBox->blockSignals(true);
|
||||||
m_ui->boldCheckBox->setChecked(format.bold());
|
m_ui->boldCheckBox->setChecked(format.bold());
|
||||||
|
@@ -82,6 +82,7 @@ private:
|
|||||||
int m_curItem;
|
int m_curItem;
|
||||||
Ui::ColorSchemeEdit *m_ui;
|
Ui::ColorSchemeEdit *m_ui;
|
||||||
FormatsModel *m_formatsModel;
|
FormatsModel *m_formatsModel;
|
||||||
|
bool m_readOnly;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user