1 #ifndef Header_Latex_Completer_Config
2 #define Header_Latex_Completer_Config
3 
4 //having the configuration in a single file allows to change it,
5 //without having a relationship between completer and configmanager
6 //so modifying one doesn't lead to a recompilation of the other
7 
8 #include "modifiedQObject.h"
9 
10 #include "usermacro.h"
11 #include "codesnippet.h"
12 
13 
14 class LatexCompleterConfig
15 {
16 public:
17 	bool enabled; //auto completion enabled (manual completion e.g ctrl+space can always be used)
18 	enum CaseSensitive {CCS_CASE_INSENSITIVE, CCS_CASE_SENSITIVE, CCS_FIRST_CHARACTER_CASE_SENSITIVE};
19 	CaseSensitive caseSensitive;
20 	bool completeCommonPrefix; //auto tab press
21 	bool eowCompletes; //if a EOW character key is pressed, the current word is completed and the character added
22 	bool tooltipHelp; // enable ToolTip-Help during completion
23 	bool tooltipPreview; // enable ToolTip-Preview during completion
24 	bool usePlaceholders;
25 	int tabRelFontSizePercent;
26     bool autoInsertMathDelimiters;
27     QString startMathDelimiter,stopMathDelimiter;
28     enum PreferedCompletionTab {CPC_TYPICAL, CPC_MOSTUSED, CPC_FUZZY, CPC_ALL};
29 	PreferedCompletionTab preferedCompletionTab;
30 	CodeSnippetList words;
31 	QMultiMap<uint, QPair<int, int> > usage;
32 	QSet<QString> specialCompletionKeys;
33 
34 	QList<Macro> userMacros;
35 
36 	void setFiles(const QStringList &newFiles);
37 	const QStringList &getLoadedFiles() const;
38 
39 	QString importedCwlBaseDir;
40 
41 private:
42 	QStringList files;
43 };
44 // implemented in latexcompleter.cpp
45 
46 
47 #endif // LATEXCOMPLETERCONFIG_H
48