X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLyXRC.h;h=db7c539a06a39c29b5e9cdf093e54a2380aba1ea;hb=6c22e32cee2eafcf6fed6cbd72478f36f5accd75;hp=3ebecb7c197ecc2abfda7dbf92e49dd09093703d;hpb=7f1b1729b4ccdb16e35e6d5052890103f13bd747;p=lyx.git diff --git a/src/LyXRC.h b/src/LyXRC.h index 3ebecb7c19..db7c539a06 100644 --- a/src/LyXRC.h +++ b/src/LyXRC.h @@ -51,6 +51,7 @@ public: RC_BIBTEX_ALTERNATIVES, RC_BIBTEX_COMMAND, RC_BINDFILE, + RC_BOOKMARKS_VISIBILITY, RC_CHECKLASTFILES, RC_CHKTEX_COMMAND, RC_CITATION_SEARCH, @@ -89,13 +90,13 @@ public: RC_FILEFORMAT, RC_FORWARD_SEARCH_DVI, RC_FORWARD_SEARCH_PDF, - RC_FULL_SCREEN_LIMIT, + RC_SCREEN_LIMIT, RC_FULL_SCREEN_SCROLLBAR, RC_FULL_SCREEN_STATUSBAR, RC_FULL_SCREEN_TABBAR, RC_FULL_SCREEN_MENUBAR, RC_FULL_SCREEN_TOOLBARS, - RC_FULL_SCREEN_WIDTH, + RC_SCREEN_WIDTH, RC_GEOMETRY_SESSION, RC_GROUP_LAYOUTS, RC_GUI_LANGUAGE, @@ -188,13 +189,14 @@ public: RC_VIEWER_ALTERNATIVES, RC_VISUAL_CURSOR, RC_CLOSE_BUFFER_WITH_LAST_VIEW, + RC_DRAW_STRATEGY, RC_LAST }; /// LyXRC() : user_name(support::user_name()), user_email(support::user_email()) // always empty - {}; + {} /// \param check_format: whether to try to convert the file format, /// if it is not current. this should only be true, really, for the @@ -318,6 +320,7 @@ public: int defaultZoom = 150; /// Actual zoom factor for screen fonts /// (default zoom plus buffer zoom factor) + /// Do not set directly. Use GuiView::setCurrentZoom() int currentZoom = 150; /// Screen font sizes in points for each font size std::string font_sizes[10] = { "5.0", "7.0", "8.0", "9.0", "10.0", @@ -370,11 +373,9 @@ public: /// Accept compound words in spellchecker? bool spellchecker_accept_compound = false; /// spellcheck continuously? - bool spellcheck_continuously = false; + bool spellcheck_continuously = true; /// spellcheck notes and comments? bool spellcheck_notes = true; - /// minimum length of words to complete - unsigned int completion_minlength = 6; /// bool use_kbmap = false; /// @@ -510,9 +511,9 @@ public: /// Toggle statusbar in fullscreen mode? bool full_screen_statusbar = true; /// Limit the text width? - bool full_screen_limit = false; - /// Width of limited screen (in pixels) in fullscreen mode - int full_screen_width = 700; + bool screen_limit = false; + /// Width of limited screen width + Length screen_width = Length(7, Length::IN); /// bool completion_cursor_text = true; /// @@ -523,6 +524,8 @@ public: bool completion_inline_text = false; /// int completion_inline_dots = -1; + /// minimum length of words to complete + unsigned int completion_minlength = 6; /// double completion_popup_delay = 2.0; /// @@ -560,9 +563,28 @@ public: ScrollWheelZoom scroll_wheel_zoom = SCROLL_WHEEL_ZOOM_CTRL; // FIXME: should be caret_width /// - int cursor_width = 1; + int cursor_width = 0; /// One of: yes, no, ask std::string close_buffer_with_last_view = "yes"; + enum BookmarksVisibility { + BMK_NONE, + BMK_MARGIN, + BMK_INLINE + }; + + /// + BookmarksVisibility bookmarks_visibility = BMK_NONE; + + enum DrawStrategy { + // draw all (not implemented yet) + // FS_FULL, + // draw only what has changed + DS_PARTIAL, + // draw in backing store (only what has changed) + DS_BACKINGSTORE + }; + /// + DrawStrategy draw_strategy = DS_PARTIAL; };