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.
tdevelop/parts/astyle/astyle_adaptor.h

56 lines
858 B

#ifndef __ASTYLE_ADAPTOR_H__
#define __ASTYLE_ADAPTOR_H__
#include <tqstring.h>
#include <tqtextstream.h>
#include <tqmap.h>
#include <tqvariant.h>
#include "astyle.h"
#define GLOBALDOC_OPTIONS 1
#define PROJECTDOC_OPTIONS 2
class ASStringIterator : public astyle::ASSourceIterator
{
public:
ASStringIterator(const TQString &string);
virtual ~ASStringIterator();
virtual bool hasMoreLines() const;
virtual string nextLine();
private:
TQString _content;
TQTextStream *_is;
};
class AStyleWidget;
class KDevFormatter : public astyle::ASFormatter
{
public:
KDevFormatter(const TQMap<TQString, TQVariant>& options);
KDevFormatter( AStyleWidget * widget );
TQString indentString() const
{
return m_indentString;
}
private:
bool predefinedStyle( const TQString & style );
private:
TQString m_indentString;
};
#endif