+ /// Current ratio between physical pixels and device-independent pixels
+ double pixelRatio() const;
+
+ /// How to load image files
+ support::search_mode imageSearchMode() const {
+#if QT_VERSION >= 0x050000
+ return pixelRatio() > 1 ? support::check_hidpi : support::must_exist;
+#else
+ return support::must_exist;
+#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();
+
+ /// \name Methods to process FuncRequests
+ //@{
+ /// process the func request
+ void processFuncRequest(FuncRequest const &);
+ /// add a func request to the queue and process it asynchronously
+ /// \note As a side-effect this will also process the
+ /// func requests that were added to the queue before.
+ void processFuncRequestAsync(FuncRequest const &);
+ /// process the func requests in the queue
+ void processFuncRequestQueue();
+ /// process the func requests in the queue asynchronously
+ void processFuncRequestQueueAsync();
+ /// add a func request to the queue for later processing
+ void addToFuncRequestQueue(FuncRequest const &);
+ //@}
+
+ /// goto a bookmark
+ /// openFile: whether or not open a file if the file is not opened
+ /// switchToBuffer: whether or not switch to buffer if the buffer is
+ /// not the current buffer
+ void gotoBookmark(unsigned int idx, bool openFile, bool switchToBuffer);
+
+ /// Start a long operation with some cancel possibility (button or ESC)
+ void startLongOperation();
+ /// This needs to be periodically called to avoid freezing the GUI
+ bool longOperationCancelled();
+ /// Stop the long operation mode (i.e., release the GUI)
+ void stopLongOperation();
+ /// A started long operation is still in progress ?
+ bool longOperationStarted();