kmail

snippetconfig.h
1 /***************************************************************************
2  * snippet feature from tdevelop/plugins/snippet/ *
3  * *
4  * Copyright (C) 2007 by Robert Gruber *
5  * rgruber@users.sourceforge.net *
6  * *
7  * This program is free software; you can redistribute it and/or modify *
8  * it under the terms of the GNU General Public License as published by *
9  * the Free Software Foundation; either version 2 of the License, or *
10  * (at your option) any later version. *
11  * *
12  ***************************************************************************/
13 
14 #ifndef SNIPPETCONFIG_H
15 #define SNIPPETCONFIG_H
16 
17 #include <tqstring.h>
18 #include <tqrect.h>
19 
20 
27 public:
28  SnippetConfig();
29 
30  ~SnippetConfig();
31 
32  bool useToolTips() { return (bToolTip); };
33  int getInputMethod() { return (iInputMethod); };
34  TQString getDelimiter() { return (strDelimiter); };
35  TQRect getSingleRect() { return (rSingle); };
36  TQRect getMultiRect() { return (rMulti); };
37  int getAutoOpenGroups() { return iAutoOpenGroups; }
38 
39  void setToolTips(bool b) { bToolTip=b; };
40  void setInputMethod(int i) { iInputMethod=i; };
41  void setDelimiter(TQString s) { strDelimiter=s; };
42  void setSingleRect(TQRect r) {
43  rSingle = (r.isValid())?r:TQRect();
44  }
45  void setMultiRect(TQRect r) {
46  rMulti = (r.isValid())?r:TQRect();
47  }
48  void setAutoOpenGroups(int autoopen) { iAutoOpenGroups = autoopen; }
49 
50 protected:
51  bool bToolTip;
52  int iInputMethod;
53  TQString strDelimiter;
54  TQRect rSingle;
55  TQRect rMulti;
56  int iMultiBasicHeight;
57  int iMultiCount;
58  int iAutoOpenGroups;
59 };
60 
61 #endif
This class stores the values that can be configured via the KDevelop settings dialog.
Definition: snippetconfig.h:26