| 195 | } |
| 196 | |
| 197 | Notebook::IndexType Notebook::GetPageOf( Widget::Ptr widget ) const { |
| 198 | ChildrenList::const_iterator iter( std::find( m_children.begin(), m_children.end(), ChildLabelPair( widget, Widget::Ptr() ) ) ); |
| 199 | |
| 200 | if( iter == m_children.end() ) { |
| 201 | return -1; |
| 202 | } |
| 203 | |
| 204 | return static_cast<IndexType>( iter - m_children.begin() ); |
| 205 | } |
| 206 | |
| 207 | void Notebook::NextPage() { |
| 208 | auto old_page = m_current_page; |
nothing calls this directly
no test coverage detected