Index: src/sdk/loggers.cpp
===================================================================
--- src/sdk/loggers.cpp (revision 8175)
+++ src/sdk/loggers.cpp (working copy)
@@ -340,7 +340,7 @@
control->Thaw();
}
-void ListCtrlLogger::Append(const wxArrayString& colValues, Logger::level lv)
+void ListCtrlLogger::Append(const wxArrayString& colValues, Logger::level lv, int autoSize)
{
if (!control)
return;
@@ -353,6 +353,8 @@
int idx = control->GetItemCount() - 1;
for (size_t i = 1; i < colValues.GetCount(); ++i)
control->SetItem(idx, i, colValues[i]);
+ if (autoSize != -1)
+ control->SetColumnWidth(autoSize, wxLIST_AUTOSIZE);
control->Thaw();
}
Index: src/plugins/compilergcc/compilergcc.cpp
===================================================================
--- src/plugins/compilergcc/compilergcc.cpp (revision 8175)
+++ src/plugins/compilergcc/compilergcc.cpp (working copy)
@@ -3382,7 +3382,9 @@
wxArrayString errors;
errors.Add(filename);
errors.Add(line);
- errors.Add(msg);
+ wxString msgFix = msg;
+ msgFix.Replace(wxT("\t"), wxT(" "));
+ errors.Add(msgFix);
Logger::level lv = Logger::info;
if (lt == cltError)
@@ -3390,8 +3392,7 @@
else if (lt == cltWarning)
lv = Logger::warning;
- m_pListLog->Append(errors, lv);
-// m_pListLog->GetListControl()->SetColumnWidth(2, wxLIST_AUTOSIZE);
+ m_pListLog->Append(errors, lv, 2);
// add to error keeping struct
m_Errors.AddError(lt, prj, filename, line.IsEmpty() ? 0 : atoi(wxSafeConvertWX2MB(line)), msg);
@@ -3642,6 +3643,8 @@
LogWarningOrError(cltNormal, 0, wxEmptyString, wxEmptyString,
wxString::Format(_("=== Build finished: %s ==="), msg.wx_str()));
SaveBuildLog();
+ if (!Manager::IsBatchBuild() && m_pLog->progress)
+ m_pLog->progress->SetValue(0);
}
else
{
@@ -3665,9 +3668,6 @@
Manager::Get()->ProcessEvent(evtSwitch);
m_pListLog->FocusError(m_Errors.GetFirstError());
- // Build is not completed, so clear the progress bar
- if (m_pLog->progress)
- m_pLog->progress->SetValue(0);
}
else
{
Index: src/include/loggers.h
===================================================================
--- src/include/loggers.h (revision 8175)
+++ src/include/loggers.h (working copy)
@@ -136,7 +136,7 @@
virtual void CopyContentsToClipboard(bool selectionOnly = false);
virtual void UpdateSettings();
virtual void Append(const wxString& msg, Logger::level lv = info);
- virtual void Append(const wxArrayString& colValues, Logger::level lv = info);
+ virtual void Append(const wxArrayString& colValues, Logger::level lv = info, int autoSize = -1);
virtual size_t GetItemsCount() const;
virtual void Clear();
virtual wxWindow* CreateControl(wxWindow* parent);