kmail
snippetconfig.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef SNIPPETCONFIG_H
00015 #define SNIPPETCONFIG_H
00016
00017 #include <qstring.h>
00018 #include <qrect.h>
00019
00020
00026 class SnippetConfig{
00027 public:
00028 SnippetConfig();
00029
00030 ~SnippetConfig();
00031
00032 bool useToolTips() { return (bToolTip); };
00033 int getInputMethod() { return (iInputMethod); };
00034 QString getDelimiter() { return (strDelimiter); };
00035 QRect getSingleRect() { return (rSingle); };
00036 QRect getMultiRect() { return (rMulti); };
00037 int getAutoOpenGroups() { return iAutoOpenGroups; }
00038
00039 void setToolTips(bool b) { bToolTip=b; };
00040 void setInputMethod(int i) { iInputMethod=i; };
00041 void setDelimiter(QString s) { strDelimiter=s; };
00042 void setSingleRect(QRect r) {
00043 rSingle = (r.isValid())?r:QRect();
00044 }
00045 void setMultiRect(QRect r) {
00046 rMulti = (r.isValid())?r:QRect();
00047 }
00048 void setAutoOpenGroups(int autoopen) { iAutoOpenGroups = autoopen; }
00049
00050 protected:
00051 bool bToolTip;
00052 int iInputMethod;
00053 QString strDelimiter;
00054 QRect rSingle;
00055 QRect rMulti;
00056 int iMultiBasicHeight;
00057 int iMultiCount;
00058 int iAutoOpenGroups;
00059 };
00060
00061 #endif
|