diff --git a/kpdf/kpdf_part.cpp b/kpdf/kpdf_part.cpp index 0806fe523..572465ce4 100644 --- a/kpdf/kpdf_part.cpp +++ b/kpdf/kpdf_part.cpp @@ -60,14 +60,20 @@ Part::Part(QWidget *parentWidget, const char *widgetName, WhitePixel(display, screen), false, 5); // create our actions - KStdAction::prior (this, SLOT(displayPreviousPage()), - actionCollection(), "previous_page"); - KStdAction::next (this, SLOT(displayNextPage()), - actionCollection(), "next_page" ); + KStdAction::find (this, SLOT(find()), + actionCollection(), "find"); + KStdAction::findNext(this, SLOT(findNext()), + actionCollection(), "find_next"); m_fitWidth = new KToggleAction(i18n("Fit Width"), 0, - this, SLOT(fitWidthToggled()), - actionCollection(), "fit_width"); + this, SLOT(fitWidthToggled()), + actionCollection(), "fit_width"); + + KStdAction::prior(this, SLOT(displayPreviousPage()), + actionCollection(), "previous_page"); + KStdAction::next (this, SLOT(displayNextPage()), + actionCollection(), "next_page" ); + // set our XML-UI resource file setXMLFile("kpdf_part.rc"); diff --git a/kpdf/kpdf_part.h b/kpdf/kpdf_part.h index e022f2935..c0c687aef 100644 --- a/kpdf/kpdf_part.h +++ b/kpdf/kpdf_part.h @@ -72,6 +72,9 @@ namespace KPDF virtual bool openFile(); protected slots: + void find() { /* stub */ }; + void findNext() { /* stub */ }; + void displayNextPage(); void displayPreviousPage(); diff --git a/kpdf/kpdf_part.rc b/kpdf/kpdf_part.rc index 9c45685c8..8ebef1d8e 100644 --- a/kpdf/kpdf_part.rc +++ b/kpdf/kpdf_part.rc @@ -1,14 +1,20 @@ - + + &Edit + + + &View + &Go + + + - - diff --git a/kpdf/kpdf_shell.rc b/kpdf/kpdf_shell.rc index 716aa9d36..628db15b3 100644 --- a/kpdf/kpdf_shell.rc +++ b/kpdf/kpdf_shell.rc @@ -1,9 +1,10 @@ - + - &File + +