kmail
snippetconfig.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 * snippet feature from kdevelop/plugins/snippet/ * 00003 * * 00004 * Copyright (C) 2007 by Robert Gruber * 00005 * rgruber@users.sourceforge.net * 00006 * * 00007 * This program is free software; you can redistribute it and/or modify * 00008 * it under the terms of the GNU General Public License as published by * 00009 * the Free Software Foundation; either version 2 of the License, or * 00010 * (at your option) any later version. * 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