umbrello/umbrello
PythonImport Class Reference
#include <pythonimport.h>

Detailed Description
Python code import.
Definition at line 22 of file pythonimport.h.
Public Member Functions | |
| PythonImport () | |
| virtual | ~PythonImport () |
Protected Member Functions | |
| void | initVars () |
| bool | parseStmt () |
| void | fillSource (const QString &line) |
| bool | preprocess (QString &line) |
| void | skipBody () |
Protected Attributes | |
| int | m_srcIndent [100] |
| int | m_srcIndentIndex |
| bool | m_braceWasOpened |
Constructor & Destructor Documentation
| PythonImport::PythonImport | ( | ) |
Definition at line 30 of file pythonimport.cpp.
| PythonImport::~PythonImport | ( | ) | [virtual] |
Definition at line 35 of file pythonimport.cpp.
Member Function Documentation
| void PythonImport::initVars | ( | ) | [protected, virtual] |
Reimplement operation from NativeImportBase.
Reimplemented from NativeImportBase.
Definition at line 38 of file pythonimport.cpp.
| bool PythonImport::parseStmt | ( | ) | [protected, virtual] |
Implement abstract operation from NativeImportBase.
Implements NativeImportBase.
Definition at line 132 of file pythonimport.cpp.
| void PythonImport::fillSource | ( | const QString & | line | ) | [protected, virtual] |
Implement abstract operation from NativeImportBase.
Implements NativeImportBase.
Definition at line 93 of file pythonimport.cpp.
| bool PythonImport::preprocess | ( | QString & | line | ) | [protected, virtual] |
Reimplement operation from NativeImportBase.
In addition to handling multiline comments, this method transforms changes in leading indentation into braces (opening brace for increase in indentation, closing brace for decrease in indentation) in m_source. Removal of Python's indentation sensitivity simplifies subsequent processing using Umbrello's native import framework.
Reimplemented from NativeImportBase.
Definition at line 44 of file pythonimport.cpp.
| void PythonImport::skipBody | ( | ) | [protected] |
Member Data Documentation
int PythonImport::m_srcIndent[100] [protected] |
Buffer for number of indentation characters (whitespace, i.e.
tabs or spaces) at beginning of input line.
Definition at line 62 of file pythonimport.h.
int PythonImport::m_srcIndentIndex [protected] |
Index for m_srcIndent[].
Index 0 is reserved and contains 0.
Definition at line 67 of file pythonimport.h.
bool PythonImport::m_braceWasOpened [protected] |
The documentation for this class was generated from the following files:
KDE 4.0 API Reference