15
15
#include " globals.h"
16
16
#include < wx/menu.h>
17
17
18
- #define STATUSBAR_LINE_COL_IDX 0
19
- #define STATUSBAR_ANIMATION_COL_IDX 1
20
- #define STATUSBAR_WHITESPACE_INFO_IDX 2
21
- #define STATUSBAR_LANG_COL_IDX 3
22
- #define STATUSBAR_ICON_COL_IDX 4
18
+ #define STATUSBAR_SCM_IDX 0
19
+ #define STATUSBAR_LINE_COL_IDX 1
20
+ #define STATUSBAR_ANIMATION_COL_IDX 2
21
+ #define STATUSBAR_WHITESPACE_INFO_IDX 3
22
+ #define STATUSBAR_LANG_COL_IDX 4
23
+ #define STATUSBAR_ICON_COL_IDX 5
23
24
24
25
class WXDLLIMPEXP_SDK clStatusBarArtNormal : public wxCustomStatusBarArt
25
26
{
@@ -51,6 +52,9 @@ clStatusBar::clStatusBar(wxWindow* parent, IManager* mgr)
51
52
EventNotifier::Get ()->Bind (wxEVT_WORKSPACE_CLOSED, &clStatusBar::OnWorkspaceClosed, this );
52
53
Bind (wxEVT_STATUSBAR_CLICKED, &clStatusBar::OnFieldClicked, this );
53
54
55
+ wxCustomStatusBarField::Ptr_t sourceControl (new wxCustomStatusBarBitmapField (this , 30 ));
56
+ AddField (sourceControl);
57
+
54
58
wxCustomStatusBarField::Ptr_t lineCol (new wxCustomStatusBarFieldText (this , 250 ));
55
59
AddField (lineCol);
56
60
@@ -66,10 +70,10 @@ clStatusBar::clStatusBar(wxWindow* parent, IManager* mgr)
66
70
67
71
wxCustomStatusBarField::Ptr_t buildStatus (new wxCustomStatusBarBitmapField (this , 30 ));
68
72
AddField (buildStatus);
69
-
70
- m_bmpBuildError = wxXmlResource::Get ()->LoadBitmap ( " build-error " );
71
- m_bmpBuildWarnings = wxXmlResource::Get () ->LoadBitmap (" build-warning " );
72
- m_bmpBuild = wxXmlResource::Get () ->LoadBitmap (" build-building " );
73
+
74
+ BitmapLoader* bl = clGetManager ()->GetStdIcons ( );
75
+ m_bmpBuildError = bl ->LoadBitmap (" error " );
76
+ m_bmpBuildWarnings = bl ->LoadBitmap (" warning " );
73
77
}
74
78
75
79
clStatusBar::~clStatusBar ()
@@ -177,9 +181,9 @@ void clStatusBar::OnBuildEnded(clBuildEvent& event)
177
181
event.Skip ();
178
182
StopAnimation ();
179
183
if (event.GetErrorCount ()) {
180
- SetBuildBitmap (m_bmpBuildError, _ (" Build ended with errors. Click to view" ));
184
+ SetBuildBitmap (m_bmpBuildError, _ (" Build ended with errors\n Click to view" ));
181
185
} else if (event.GetWarningCount ()) {
182
- SetBuildBitmap (m_bmpBuildWarnings, _ (" Build ended with warnings. Click to view" ));
186
+ SetBuildBitmap (m_bmpBuildWarnings, _ (" Build ended with warnings\n Click to view" ));
183
187
} else {
184
188
SetBuildBitmap (wxNullBitmap, " " );
185
189
}
0 commit comments