projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't use deprecated wxMenuItem ctor and don't use an unnecessary #ifdef
[wxWidgets.git]
/
src
/
palmos
/
toolbar.cpp
diff --git
a/src/palmos/toolbar.cpp
b/src/palmos/toolbar.cpp
index df42ca989229f5c2c49bade5500180bc73afb2da..886cdcbb70d0c7286c614ca45ab462ea439fa32c 100644
(file)
--- a/
src/palmos/toolbar.cpp
+++ b/
src/palmos/toolbar.cpp
@@
-24,28
+24,28
@@
#pragma hdrstop
#endif
#pragma hdrstop
#endif
+#if wxUSE_TOOLBAR && wxUSE_TOOLBAR_NATIVE
+
+#include "wx/toolbar.h"
+
#ifndef WX_PRECOMP
#ifndef WX_PRECOMP
+ #include "wx/dynarray.h"
#include "wx/frame.h"
#include "wx/log.h"
#include "wx/intl.h"
#include "wx/frame.h"
#include "wx/log.h"
#include "wx/intl.h"
- #include "wx/dynarray.h"
#include "wx/settings.h"
#include "wx/bitmap.h"
#include "wx/dcmemory.h"
#include "wx/control.h"
#include "wx/settings.h"
#include "wx/bitmap.h"
#include "wx/dcmemory.h"
#include "wx/control.h"
+ #include "wx/app.h" // for GetComCtl32Version
#endif
#endif
-#if wxUSE_TOOLBAR && wxUSE_TOOLBAR_NATIVE
-
-#include "wx/toolbar.h"
#include "wx/sysopt.h"
#include "wx/palmos/private.h"
#include "wx/palmos/wrapcctl.h"
#include "wx/sysopt.h"
#include "wx/palmos/private.h"
#include "wx/palmos/wrapcctl.h"
-#include "wx/app.h" // for GetComCtl32Version
-
// ----------------------------------------------------------------------------
// conditional compilation
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// conditional compilation
// ----------------------------------------------------------------------------
@@
-112,8
+112,8
@@
public:
{
}
{
}
- wxToolBarTool(wxToolBar *tbar, wxControl *control)
- : wxToolBarToolBase(tbar, control)
+ wxToolBarTool(wxToolBar *tbar, wxControl *control
, const wxString& label
)
+ : wxToolBarToolBase(tbar, control
, label
)
{
}
{
}
@@
-154,9
+154,10
@@
wxToolBarToolBase *wxToolBar::CreateTool(int id,
clientData, shortHelp, longHelp);
}
clientData, shortHelp, longHelp);
}
-wxToolBarToolBase *wxToolBar::CreateTool(wxControl *control)
+wxToolBarToolBase *
+wxToolBar::CreateTool(wxControl *control, const wxString& label)
{
{
- return new wxToolBarTool(this, control);
+ return new wxToolBarTool(this, control
, label
);
}
// ----------------------------------------------------------------------------
}
// ----------------------------------------------------------------------------
@@
-268,4
+269,3
@@
void wxToolBar::OnMouseEvent(wxMouseEvent& event)
}
#endif // wxUSE_TOOLBAR
}
#endif // wxUSE_TOOLBAR
-