src/writely/WriterUI.cpp
/**
 * @return the editor page if it is on the top of navigation stack. Otherwise return 0;
 */
@return the editor page if it is on the top of navigation stack. Otherwise return 0.
@return the editor page if it is on the top of navigation stack . Otherwise return 0 .
Page* WriterUI::currentEditorPage() {
    if (mRootNavigationPane == NULL) return NULL;
    if (mRootNavigationPane->count() > 0) {
        Page* page = mRootNavigationPane->at( mRootNavigationPane->count()-1 );
        if (page) {
            if ( page->objectName() == "editorPage" ) {
                return page;
            }
        }
    }
    return NULL;
}
Page * WriterUI :: currentEditorPage ( ) { if ( mRootNavigationPane == NULL ) return NULL ; if ( mRootNavigationPane -> count ( ) > 0 ) { Page * page = mRootNavigationPane -> at ( mRootNavigationPane -> count ( ) - 1 ) ; if ( page ) { if ( page -> objectName ( ) == " " ) { return page ; } } } return NULL ; }
@return the editor page if it is on the top of navigation stack.
@return the editor page if it is on the top of navigation stack .