projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't hard code "2.9.3" in the release preparation instructions.
[wxWidgets.git]
/
src
/
generic
/
buttonbar.cpp
diff --git
a/src/generic/buttonbar.cpp
b/src/generic/buttonbar.cpp
index 512352bf79414e16c7161902bf1ec0a910f386e7..c9e1f5f5d04a45956b69459b854320b41ae0e874 100644
(file)
--- a/
src/generic/buttonbar.cpp
+++ b/
src/generic/buttonbar.cpp
@@
-140,7
+140,10
@@
bool wxButtonToolBar::Create(wxWindow *parent,
// wxColour lightBackground(244, 244, 244);
// wxColour lightBackground(244, 244, 244);
- wxFont font(wxSMALL_FONT->GetPointSize(), wxNORMAL_FONT->GetFamily(), wxNORMAL_FONT->GetStyle(), wxNORMAL);
+ wxFont font(wxSMALL_FONT->GetPointSize(),
+ wxNORMAL_FONT->GetFamily(),
+ wxNORMAL_FONT->GetStyle(),
+ wxFONTWEIGHT_NORMAL);
SetFont(font);
// Calculate the label height if necessary
SetFont(font);
// Calculate the label height if necessary
@@
-207,7
+210,7
@@
void wxButtonToolBar::GetRectLimits(const wxRect& rect,
wxCoord *start,
wxCoord *end) const
{
wxCoord *start,
wxCoord *end) const
{
- wxCHECK_RET( start && end,
_
T("NULL pointer in GetRectLimits") );
+ wxCHECK_RET( start && end,
wx
T("NULL pointer in GetRectLimits") );
if ( IsVertical() )
{
if ( IsVertical() )
{
@@
-226,7
+229,7
@@
void wxButtonToolBar::SetToolShortHelp(int id, const wxString& help)
{
wxToolBarToolBase *tool = FindById(id);
{
wxToolBarToolBase *tool = FindById(id);
- wxCHECK_RET( tool,
_
T("SetToolShortHelp: no such tool") );
+ wxCHECK_RET( tool,
wx
T("SetToolShortHelp: no such tool") );
// TODO: set tooltip/short help
tool->SetShortHelp(help);
// TODO: set tooltip/short help
tool->SetShortHelp(help);
@@
-289,7
+292,7
@@
wxRect wxButtonToolBar::GetToolRect(wxToolBarToolBase *toolBase) const
wxRect rect;
wxRect rect;
- wxCHECK_MSG( tool, rect,
_
T("GetToolRect: NULL tool") );
+ wxCHECK_MSG( tool, rect,
wx
T("GetToolRect: NULL tool") );
// ensure that we always have the valid tool position
if ( m_needsLayout )
// ensure that we always have the valid tool position
if ( m_needsLayout )
@@
-493,7
+496,7
@@
void wxButtonToolBar::OnCommand(wxCommandEvent& event)
}
// paints a border
}
// paints a border
-void wxButtonToolBar::OnPaint(wxPaintEvent&
event
)
+void wxButtonToolBar::OnPaint(wxPaintEvent&
WXUNUSED(event)
)
{
wxPaintDC dc(this);
{
wxPaintDC dc(this);
@@
-547,7
+550,7
@@
void wxButtonToolBar::OnLeftUp(wxMouseEvent& event)
wxButtonToolBarTool* tool = (wxButtonToolBarTool*) FindToolForPosition(event.GetX(), event.GetY());
if (tool && tool->GetButton() && (event.GetY() > (tool->m_y + tool->GetButton()->GetSize().y)))
{
wxButtonToolBarTool* tool = (wxButtonToolBarTool*) FindToolForPosition(event.GetX(), event.GetY());
if (tool && tool->GetButton() && (event.GetY() > (tool->m_y + tool->GetButton()->GetSize().y)))
{
- wxCommandEvent event(wxEVT_
COMMAND_BUTTON_CLICKED
, tool->GetId());
+ wxCommandEvent event(wxEVT_
BUTTON
, tool->GetId());
event.SetEventObject(tool->GetButton());
if (!GetEventHandler()->ProcessEvent(event))
event.Skip();
event.SetEventObject(tool->GetButton());
if (!GetEventHandler()->ProcessEvent(event))
event.Skip();