X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiApplication.h;h=de6013d4c7e691fa127e128d9de5a37fcc0fbcb3;hb=1f10969bb5c5f36017bf5ba8671381b09945cf57;hp=bfc242ccde8713ebd0d314f9c64fdd4699084d23;hpb=c053a9394d1075ecad02ccce2f34c95f08c1f00f;p=lyx.git diff --git a/src/frontends/qt4/GuiApplication.h b/src/frontends/qt4/GuiApplication.h index bfc242ccde..de6013d4c7 100644 --- a/src/frontends/qt4/GuiApplication.h +++ b/src/frontends/qt4/GuiApplication.h @@ -25,6 +25,7 @@ class QAbstractItemModel; class QIcon; class QSessionManager; +class QFont; namespace lyx { @@ -62,7 +63,7 @@ public: /// \name Methods inherited from Application class //@{ - void dispatch(FuncRequest const &); + DispatchResult const & dispatch(FuncRequest const &); void dispatch(FuncRequest const &, DispatchResult & dr); FuncStatus getStatus(FuncRequest const & cmd) const; void restoreGuiSession(); @@ -108,7 +109,8 @@ public: #ifdef Q_WS_X11 bool x11EventFilter(XEvent * ev); #elif defined(QPA_XCB) - virtual bool nativeEventFilter(const QByteArray & eventType, void * message, long * result); + virtual bool nativeEventFilter(const QByteArray & eventType, void * message, + long * result) Q_DECL_OVERRIDE; #endif //@} @@ -144,6 +146,8 @@ public: /// return a suitable monospaced font name. QString const typewriterFontName(); + QFont const typewriterSystemFont(); + /// void unregisterView(GuiView * gv); /// @@ -161,6 +165,9 @@ public: #endif } + /// return true if the key is part of a shortcut + bool queryKeySym(KeySymbol const & key, KeyModifier state) const; + /// void processKeySym(KeySymbol const & key, KeyModifier state); /// return the status bar state string docstring viewStatusMessage();