KDevelop API Documentation

astyle_part.h

Go to the documentation of this file.
00001 /*
00002  *  Copyright (C) 2001 Matthias Hölzer-Klüpfel <mhk@caldera.de>
00003  */
00004 
00005 
00006 #ifndef __KDEVPART_ASTYLE_H__
00007 #define __KDEVPART_ASTYLE_H__
00008 
00009 class KDialogBase;
00010 #include <kaction.h>
00011 #include <kparts/part.h>
00012 #include <kdevsourceformatter.h>
00013 
00014 
00015 class AStylePart : public KDevSourceFormatter
00016 {
00017   Q_OBJECT
00018 
00019 public:
00020 
00021   AStylePart(QObject *parent, const char *name, const QStringList &);
00022   ~AStylePart();
00023 
00024   QString formatSource( const QString text );
00025 
00026 
00027 private slots:
00028 
00029   void activePartChanged(KParts::Part *part);
00030 
00031   void beautifySource();
00032 
00033   void configWidget(KDialogBase *dlg);
00034 
00035 
00036 
00037 private:
00038 
00039   void cursorPos( KParts::Part *part, uint * col, uint * line );
00040   void setCursorPos( KParts::Part *part, uint col, uint line );
00041 
00042   KAction *_action;
00043 
00044 };
00045 
00046 
00047 #endif
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 22 09:22:37 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003