AStylePart Class Reference
A plugin for formatting of sourcecode according to a specified set of rules. More...
#include <astyle_part.h>
Inheritance diagram for AStylePart:

Public Member Functions | |
AStylePart (QObject *parent, const char *name, const QStringList &) | |
~AStylePart () | |
QString | formatSource (const QString text) |
Private Slots | |
void | activePartChanged (KParts::Part *part) |
void | beautifySource () |
void | configWidget (KDialogBase *dlg) |
Private Member Functions | |
void | cursorPos (KParts::Part *part, uint *col, uint *line) |
void | setCursorPos (KParts::Part *part, uint col, uint line) |
Private Attributes | |
KAction * | _action |
Detailed Description
A plugin for formatting of sourcecode according to a specified set of rules.
- Feature(s):
- formats source code according to a specified set of rules
Definition at line 15 of file astyle_part.h.
Constructor & Destructor Documentation
|
|
|
Definition at line 51 of file astyle_part.cpp. |
Member Function Documentation
|
Definition at line 103 of file astyle_part.cpp. References _action, activePartChanged(), KURL::path(), KAction::setEnabled(), and KParts::ReadOnlyPart::url(). Referenced by activePartChanged(). |
|
|
Definition at line 95 of file astyle_part.cpp. References KDialogBase::addVBoxPage(), and configWidget(). Referenced by configWidget(). |
|
Definition at line 152 of file astyle_part.cpp. References cursorPos(), KTextEditor::ViewCursorInterface::cursorPositionReal(), and KParts::Part::widget(). Referenced by beautifySource(), and cursorPos(). |
|
Reimplemented from KDevSourceFormatter. Definition at line 136 of file astyle_part.cpp. References endl(), formatSource(), astyle::ASFormatter::hasMoreLines(), astyle::ASFormatter::init(), astyle::ASFormatter::nextLine(), and text(). Referenced by formatSource(). |
|
Definition at line 163 of file astyle_part.cpp. References setCursorPos(), KTextEditor::ViewCursorInterface::setCursorPositionReal(), and KParts::Part::widget(). Referenced by beautifySource(), and setCursorPos(). |
Member Data Documentation
|
Definition at line 42 of file astyle_part.h. Referenced by activePartChanged(). |
The documentation for this class was generated from the following files:
- parts/astyle/astyle_part.h
- parts/astyle/astyle_part.cpp