cppcodecompletionconfig.h
Go to the documentation of this file.00001 // 00002 // 00003 // C++ Interface: $MODULE$ 00004 // 00005 // Description: 00006 // 00007 // 00008 // Author: Roberto Raggi <robertol@kdevelop.org>, (C) 2003 00009 // 00010 // Copyright: See COPYING file that comes with this distribution 00011 // 00012 // 00013 #ifndef CPPCODECOMPLETIONCONFIG_H 00014 #define CPPCODECOMPLETIONCONFIG_H 00015 00016 #include <qobject.h> 00017 00018 class CppSupportPart; 00019 class QDomDocument; 00020 00024 class CppCodeCompletionConfig : public QObject 00025 { 00026 Q_OBJECT 00027 public: 00028 CppCodeCompletionConfig( CppSupportPart* part, QDomDocument* dom ); 00029 virtual ~CppCodeCompletionConfig(); 00030 00031 bool includeGlobalFunctions() const 00032 { 00033 return m_includeGlobalFunctions; 00034 } 00035 00036 void setIncludeGlobalFunctions( bool b ); 00037 00038 bool includeTypes() const 00039 { 00040 return m_includeTypes; 00041 } 00042 00043 void setIncludeTypes( bool b ); 00044 00045 bool includeEnums() const 00046 { 00047 return m_includeEnums; 00048 } 00049 00050 void setIncludeEnums( bool b ); 00051 00052 bool includeTypedefs() const 00053 { 00054 return m_includeTypedefs; 00055 } 00056 00057 void setIncludeTypedefs( bool b ); 00058 00059 bool automaticCodeCompletion() const 00060 { 00061 return m_automaticCodeCompletion; 00062 } 00063 00064 void setAutomaticCodeCompletion( bool b ); 00065 00066 bool automaticArgumentsHint() const 00067 { 00068 return m_automaticArgumentsHint; 00069 } 00070 00071 void setAutomaticArgumentsHint( bool b ); 00072 00073 bool automaticHeaderCompletion() const 00074 { 00075 return m_automaticHeaderCompletion; 00076 } 00077 00078 void setAutomaticHeaderCompletion( bool b ); 00079 00080 int codeCompletionDelay() const 00081 { 00082 return m_codeCompletionDelay; 00083 } 00084 00085 void setCodeCompletionDelay( int delay ); 00086 00087 int argumentsHintDelay() const 00088 { 00089 return m_argumentsHintDelay; 00090 } 00091 00092 void setArgumentsHintDelay( int delay ); 00093 00094 int headerCompletionDelay() const 00095 { 00096 return m_headerCompletionDelay; 00097 } 00098 00099 void setHeaderCompletionDelay( int delay ); 00100 00101 public slots: 00102 void store(); 00103 00104 signals: 00105 void stored(); 00106 00107 private: 00108 void init(); 00109 00110 private: 00111 CppSupportPart* m_part; 00112 QDomDocument* m_dom; 00113 bool m_includeGlobalFunctions; 00114 bool m_includeTypes; 00115 bool m_includeEnums; 00116 bool m_includeTypedefs; 00117 bool m_automaticCodeCompletion; 00118 bool m_automaticArgumentsHint; 00119 bool m_automaticHeaderCompletion; 00120 int m_codeCompletionDelay; 00121 int m_argumentsHintDelay; 00122 int m_headerCompletionDelay; 00123 00124 static QString defaultPath; 00125 }; 00126 00127 #endif