diff options
Diffstat (limited to 'NxWidgets')
-rw-r--r-- | NxWidgets/libnxwidgets/include/ctabpanel.hxx | 4 | ||||
-rw-r--r-- | NxWidgets/libnxwidgets/src/ctabpanel.cxx | 12 |
2 files changed, 12 insertions, 4 deletions
diff --git a/NxWidgets/libnxwidgets/include/ctabpanel.hxx b/NxWidgets/libnxwidgets/include/ctabpanel.hxx index 887f66fc0..2d6b95ca5 100644 --- a/NxWidgets/libnxwidgets/include/ctabpanel.hxx +++ b/NxWidgets/libnxwidgets/include/ctabpanel.hxx @@ -1,7 +1,7 @@ /**************************************************************************** * NxWidgets/libnxwidgets/include/ctabpanel.hxx * - * Copyright (C) 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2013-2014 Gregory Nutt. All rights reserved. * Author: Petteri Aimonen <jpa@kapsi.fi> * * Redistribution and use in source and binary forms, with or without @@ -101,6 +101,8 @@ namespace NXWidgets void setPageName(uint8_t index, const CNxString &name); void showPage(uint8_t index); + + uint8_t getCurrentPageIndex() const; }; } diff --git a/NxWidgets/libnxwidgets/src/ctabpanel.cxx b/NxWidgets/libnxwidgets/src/ctabpanel.cxx index ed7524edb..430093d23 100644 --- a/NxWidgets/libnxwidgets/src/ctabpanel.cxx +++ b/NxWidgets/libnxwidgets/src/ctabpanel.cxx @@ -1,7 +1,7 @@ /**************************************************************************** * NxWidgets/libnxwidgets/src/ctabpanel.hxx * - * Copyright (C) 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2013-2014 Gregory Nutt. All rights reserved. * Author: Petteri Aimonen <jpa@kapsi.fi> * * Redistribution and use in source and binary forms, with or without @@ -123,8 +123,14 @@ void CTabPanel::handleActionEvent(const CWidgetEventArgs &e) m_buttonbar->isAnyButtonStuckDown(x, y); showPage(x); + m_widgetEventHandlers->raiseActionEvent(); } } - - +uint8_t CTabPanel::getCurrentPageIndex() const +{ + int x = 0; + int y = 0; + m_buttonbar->isAnyButtonStuckDown(x, y); + return x; +} |