kmail

snippetconfig.h

00001 /*
00002  *  File : snippetconfig.h
00003  *
00004  *  Author: Robert Gruber <rgruber@users.sourceforge.net>
00005  *
00006  *  Copyright: See COPYING file that comes with this distribution
00007  */
00008 
00009 #ifndef SNIPPETCONFIG_H
00010 #define SNIPPETCONFIG_H
00011 
00012 #include <qstring.h>
00013 #include <qrect.h>
00014 
00015 
00021 class SnippetConfig{
00022 public:
00023     SnippetConfig();
00024 
00025     ~SnippetConfig();
00026 
00027   bool useToolTips() { return (bToolTip); };
00028   int getInputMethod() { return (iInputMethod); };
00029   QString getDelimiter() { return (strDelimiter); };
00030   QRect getSingleRect() { return (rSingle); };
00031   QRect getMultiRect() { return (rMulti); };
00032   int getAutoOpenGroups() { return iAutoOpenGroups; }
00033   
00034   void setToolTips(bool b) { bToolTip=b; };
00035   void setInputMethod(int i) { iInputMethod=i; };
00036   void setDelimiter(QString s) { strDelimiter=s; };
00037   void setSingleRect(QRect r) {
00038     rSingle = (r.isValid())?r:QRect();
00039   }
00040   void setMultiRect(QRect r) {
00041     rMulti = (r.isValid())?r:QRect();
00042   }
00043   void setAutoOpenGroups(int autoopen) { iAutoOpenGroups = autoopen; }
00044 
00045 protected:
00046     bool bToolTip;
00047     int iInputMethod;
00048     QString strDelimiter;
00049     QRect rSingle;
00050     QRect rMulti;
00051     int iMultiBasicHeight;
00052     int iMultiCount;
00053     int iAutoOpenGroups;
00054 };
00055 
00056 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys