X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FDialog.h;h=57e63c1022bd1588f935bfd4b47af6cd88ebe076;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=8bf7420ed1f714b0e8e99dc023ecc3ddb5f644b1;hpb=062bec11d0eb44755aa63fd94f75aa0872c37fc3;p=lyx.git diff --git a/src/frontends/qt4/Dialog.h b/src/frontends/qt4/Dialog.h index 8bf7420ed1..57e63c1022 100644 --- a/src/frontends/qt4/Dialog.h +++ b/src/frontends/qt4/Dialog.h @@ -121,9 +121,17 @@ public: /// Hide the dialog from sight void hideView(); - /// Create the dialog if necessary, update it and display it. + /// Prepare dialog and display it. void showView(); + /// Prepare dialog before view. + void prepareView(); + + /// Decide wether the dialog should grab thekeyboard focus when shown. + /// This method defaults to true, override if a different behaviour + /// is wanted. + virtual bool wantInitialFocus() const { return true; } + /// Update the display of the dialog whilst it is still visible. virtual void updateView() = 0; @@ -190,11 +198,6 @@ public: */ virtual bool disconnectOnApply() const { return false; } - /** \return true if Dialog::View::show() should not display the dialog - * after running update. Currently, only ControlSpellchecker - * makes use of that. - */ - virtual bool exitEarly() const { return false; } //@} /** \c Kernel part: a wrapper making the LyX kernel available to the dialog. @@ -223,7 +226,6 @@ public: * stored by the dialog are not applied to the inset currently * connected to the dialog. Instead, they will be used to generate * a new inset at the cursor position. - * \param name is used to identify the dialog to the kernel. */ void disconnect() const; @@ -244,13 +246,8 @@ public: * We should aim to reduce/remove these from the interface. */ //@{ - GuiView & lyxview() { return *lyxview_; } GuiView const & lyxview() const { return *lyxview_; } - - Buffer & buffer(); Buffer const & buffer() const; - - BufferView * bufferview(); BufferView const * bufferview() const; //@}