diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 114a878c64ce6f8223cfd22d76a20eb16d177e5e (patch) | |
tree | acaf47eb0fa12142d3896416a69e74cbf5a72242 /parts/astyle/astyle_adaptor.h | |
download | tdevelop-114a878c64ce6f8223cfd22d76a20eb16d177e5e.tar.gz tdevelop-114a878c64ce6f8223cfd22d76a20eb16d177e5e.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'parts/astyle/astyle_adaptor.h')
-rw-r--r-- | parts/astyle/astyle_adaptor.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/parts/astyle/astyle_adaptor.h b/parts/astyle/astyle_adaptor.h new file mode 100644 index 00000000..2367c4d7 --- /dev/null +++ b/parts/astyle/astyle_adaptor.h @@ -0,0 +1,55 @@ +#ifndef __ASTYLE_ADAPTOR_H__ +#define __ASTYLE_ADAPTOR_H__ + + +#include <qstring.h> +#include <qtextstream.h> +#include <qmap.h> +#include <qvariant.h> + +#include "astyle.h" + +#define GLOBALDOC_OPTIONS 1 +#define PROJECTDOC_OPTIONS 2 + + +class ASStringIterator : public astyle::ASSourceIterator +{ +public: + + ASStringIterator(const QString &string); + virtual ~ASStringIterator(); + + virtual bool hasMoreLines() const; + virtual string nextLine(); + + +private: + + QString _content; + QTextStream *_is; + +}; + +class AStyleWidget; + +class KDevFormatter : public astyle::ASFormatter +{ +public: + + KDevFormatter(const QMap<QString, QVariant>& options); + KDevFormatter( AStyleWidget * widget ); + QString indentString() const + { + return m_indentString; + } + +private: + bool predefinedStyle( const QString & style ); + +private: + QString m_indentString; +}; + + +#endif |