From 114a878c64ce6f8223cfd22d76a20eb16d177e5e Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- parts/snippet/snippetconfig.h | 56 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 parts/snippet/snippetconfig.h (limited to 'parts/snippet/snippetconfig.h') diff --git a/parts/snippet/snippetconfig.h b/parts/snippet/snippetconfig.h new file mode 100644 index 00000000..89fe00e0 --- /dev/null +++ b/parts/snippet/snippetconfig.h @@ -0,0 +1,56 @@ +/* + * File : snippetconfig.h + * + * Author: Robert Gruber + * + * Copyright: See COPYING file that comes with this distribution + */ + +#ifndef SNIPPETCONFIG_H +#define SNIPPETCONFIG_H + +#include +#include + + +/** +This class stores the values that can be configured via the +KDevelop settings dialog +@author Robert Gruber +*/ +class SnippetConfig{ +public: + SnippetConfig(); + + ~SnippetConfig(); + + bool useToolTips() { return (bToolTip); }; + int getInputMethod() { return (iInputMethod); }; + QString getDelimiter() { return (strDelimiter); }; + QRect getSingleRect() { return (rSingle); }; + QRect getMultiRect() { return (rMulti); }; + int getAutoOpenGroups() { return iAutoOpenGroups; } + + void setToolTips(bool b) { bToolTip=b; }; + void setInputMethod(int i) { iInputMethod=i; }; + void setDelimiter(QString s) { strDelimiter=s; }; + void setSingleRect(QRect r) { + rSingle = (r.isValid())?r:QRect(); + } + void setMultiRect(QRect r) { + rMulti = (r.isValid())?r:QRect(); + } + void setAutoOpenGroups(int autoopen) { iAutoOpenGroups = autoopen; } + +protected: + bool bToolTip; + int iInputMethod; + QString strDelimiter; + QRect rSingle; + QRect rMulti; + int iMultiBasicHeight; + int iMultiCount; + int iAutoOpenGroups; +}; + +#endif -- cgit v1.2.1