-
Notifications
You must be signed in to change notification settings - Fork 351
/
Copy pathlatexeditorview_config.h
72 lines (61 loc) · 2.31 KB
/
latexeditorview_config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#ifndef Header_Latex_Editor_View_Config
#define Header_Latex_Editor_View_Config
//having the configuration in a single file allows to change it,
//without having a relationship between completer and configmanager
//so modifying one doesn't lead to a recompilation of the other
class QString;
class LatexEditorViewConfig
{
public:
bool parenmatch, parenComplete;
bool autoindent, weakindent;
bool replaceIndentTabs;
bool replaceTextTabs;
bool removeTrailingWsOnSave;
bool showWhitespace;
int tabStop;
int showlinemultiples;
int cursorSurroundLines;
bool boldCursor;
bool centerDocumentInEditor;
bool folding, showlinestate, showcursorstate, realtimeChecking;
bool inlineSpellChecking, inlineCitationChecking, inlineReferenceChecking, inlineSyntaxChecking, inlineGrammarChecking, inlinePackageChecking;
bool inlineCheckNonTeXFiles;
bool hideNonTextSpellingErrors, hideNonTextGrammarErrors;
QString fontFamily;
int fontSize;
int lineSpacingPercent;
int lineWidth;
bool closeSearchAndReplace;
bool useLineForSearch, searchOnlyInSelection;
static QString translateEditOperation(int key);
static QList<int> possibleEditOperations();
bool allowDragAndDrop;
bool mouseWheelZoom, smoothScrolling, verticalOverScroll;
bool hackAutoChoose, hackDisableFixedPitch, hackDisableWidthCache, hackDisableLineCache, hackDisableAccentWorkaround;
int hackRenderingMode; //0: normal, 1: qt (missing), 2: single letter
bool showPlaceholders;
int wordwrap; // 0 off, 1 soft wrap, 2 soft wrap fixed line width, 3 hard wrap fixed line width
bool toolTipPreview;
bool toolTipHelp;
bool imageToolTip;
int maxImageTooltipWidth;
bool texdocHelpInInternalViewer;
bool monitorFilesForExternalChanges;
bool silentReload;
bool useQSaveFile;
bool autoInsertLRM, visualColumnMode, switchLanguagesDirection, switchLanguagesMath;
bool overwriteOpeningBracketFollowedByPlaceholder;
bool overwriteClosingBracketFollowingPlaceholder;
bool doubleClickSelectionIncludeLeadingBackslash;
int tripleClickSelectionIndex;
int contextMenuSpellcheckingEntryLocation;
int contextMenuKeyboardModifiers; // actually this is a Qt::KeyboardModifiers flag (but we don't want to import the whole qt namespace here)
bool fullCompilePreview;
QString regExpTodoComment;
void settingsChanged();
private:
QString lastFontFamily;
int lastFontSize;
};
#endif