void historyMenuDate(Widget w, XtPointer client, XtPointer call) { extern struct mainInfo *pMainMainInfo; pMainMainInfo->hstDaysFetch = (long) client; historyUpdate(w, client, call); }
void KfmView::slotForward() { if ( forwardStack->isEmpty() ) return; SavedPage *s = forwardStack->pop(); // try to find the corresponding htmlview. If only this view // (the one that changes saves itself, we will reduce flicker // a lot... // we are the top level widget, since we get signals from kfmgui KHTMLView *top = (KHTMLView *)this; KHTMLView *v; for ( v = viewList->first(); v != 0; v = viewList->next() ) { if ( strcmp( v->getFrameName(), s->frameName ) == 0 ) if( top != v->findView( "_top" ) ) continue; else break; } if( !v ) v = top; SavedPage *p = v->saveYourself(); backStack->push( p ); if ( forwardStack->isEmpty() ) emit historyUpdate( true, false ); else emit historyUpdate( true, true ); stackLock = true; restore( s ); stackLock = false; delete s; }
void KfmView::pushURLToHistory() { if ( stackLock ) return; // printf("pushing to stack\n"); SavedPage *p = saveYourself(); if(!p) return; backStack->push( p ); forwardStack->setAutoDelete( true ); forwardStack->clear(); forwardStack->setAutoDelete( false ); emit historyUpdate( true, false ); }