projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
German translations update from Thomas Krebs.
[wxWidgets.git]
/
src
/
generic
/
notebook.cpp
diff --git
a/src/generic/notebook.cpp
b/src/generic/notebook.cpp
index 04d8719747dcea1b7839da9c81bdcfdeda87e7be..0d2a77c6e05e811679f1a5fedce96696e6c83431 100644
(file)
--- a/
src/generic/notebook.cpp
+++ b/
src/generic/notebook.cpp
@@
-102,7
+102,7
@@
private:
static int GetPageId(wxTabView *tabview, wxNotebookPage *page)
{
static int GetPageId(wxTabView *tabview, wxNotebookPage *page)
{
- return
wx_static_cast(wxNotebookTabView*,
tabview)->GetId(page);
+ return
static_cast<wxNotebookTabView*>(
tabview)->GetId(page);
}
// ----------------------------------------------------------------------------
}
// ----------------------------------------------------------------------------
@@
-112,7
+112,7
@@
static int GetPageId(wxTabView *tabview, wxNotebookPage *page)
// common part of all ctors
void wxNotebook::Init()
{
// common part of all ctors
void wxNotebook::Init()
{
- m_tabView =
(wxNotebookTabView*)
NULL;
+ m_tabView = NULL;
m_nSelection = -1;
}
m_nSelection = -1;
}
@@
-565,15
+565,17
@@
void wxNotebook::OnSetFocus(wxFocusEvent& event)
void wxNotebook::OnNavigationKey(wxNavigationKeyEvent& event)
{
void wxNotebook::OnNavigationKey(wxNavigationKeyEvent& event)
{
- if ( event.IsWindowChange() ) {
+ if ( event.IsWindowChange() )
+ {
// change pages
AdvanceSelection(event.GetDirection());
}
else {
// pass to the parent
// change pages
AdvanceSelection(event.GetDirection());
}
else {
// pass to the parent
- if ( GetParent() ) {
+ if ( GetParent() )
+ {
event.SetCurrentFocus(this);
event.SetCurrentFocus(this);
- GetParent()->ProcessEvent(event);
+ GetParent()->Process
Window
Event(event);
}
}
}
}
}
}