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
|
#ifndef LATEXEDITORVIEWCONFIG_H
#define LATEXEDITORVIEWCONFIG_H
//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 LatexEditorViewConfig
{
public:
bool parenmatch, parenComplete;
bool autoindent, weakindent;
bool indentWithSpaces;
bool showWhitespace;
int tabStop;
int showlinemultiples;
int cursorSurroundLines;
bool boldCursor;
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 mouseWheelZoom;
bool smoothScrolling;
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;
int maxImageTooltipWidth;
bool texdocHelpInInternalViewer;
bool silentReload;
bool autoInsertLRM, visualColumnMode;
bool overwriteOpeningBracketFollowedByPlaceholder;
bool overwriteClosingBracketFollowingPlaceholder;
int contextMenuSpellcheckingEntryLocation;
int contextMenuKeyboardModifiers; // actually this is a Qt::KeyboardModifiers flag (but we don't want to import the whole qt namespace here)
void settingsChanged();
private:
QString lastFontFamily;
int lastFontSize;
};
#endif
|