You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.3 KiB
57 lines
1.3 KiB
/*
|
|
* File : snippetconfig.h
|
|
*
|
|
* Author: Robert Gruber <rgruber@users.sourceforge.net>
|
|
*
|
|
* Copyright: See COPYING file that comes with this distribution
|
|
*/
|
|
|
|
#ifndef SNIPPETCONFIG_H
|
|
#define SNIPPETCONFIG_H
|
|
|
|
#include <tqstring.h>
|
|
#include <tqrect.h>
|
|
|
|
|
|
/**
|
|
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); };
|
|
TQString getDelimiter() { return (strDelimiter); };
|
|
TQRect getSingleRect() { return (rSingle); };
|
|
TQRect getMultiRect() { return (rMulti); };
|
|
int getAutoOpenGroups() { return iAutoOpenGroups; }
|
|
|
|
void setToolTips(bool b) { bToolTip=b; };
|
|
void setInputMethod(int i) { iInputMethod=i; };
|
|
void setDelimiter(TQString s) { strDelimiter=s; };
|
|
void setSingleRect(TQRect r) {
|
|
rSingle = (r.isValid())?r:TQRect();
|
|
}
|
|
void setMultiRect(TQRect r) {
|
|
rMulti = (r.isValid())?r:TQRect();
|
|
}
|
|
void setAutoOpenGroups(int autoopen) { iAutoOpenGroups = autoopen; }
|
|
|
|
protected:
|
|
bool bToolTip;
|
|
int iInputMethod;
|
|
TQString strDelimiter;
|
|
TQRect rSingle;
|
|
TQRect rMulti;
|
|
int iMultiBasicHeight;
|
|
int iMultiCount;
|
|
int iAutoOpenGroups;
|
|
};
|
|
|
|
#endif
|