• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdesdk
  • Sitemap
  • Contact Us
 

umbrello/umbrello

PythonImport Class Reference

#include <pythonimport.h>

Inheritance diagram for PythonImport:

Inheritance graph
[legend]

List of all members.


Detailed Description

Python code import.

Author:
Oliver Kellogg Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org

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]

Skip ahead to outermost closing brace.

Definition at line 116 of file pythonimport.cpp.


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]

Auxiliary flag denoting the opening of a block.

Definition at line 72 of file pythonimport.h.


The documentation for this class was generated from the following files:
  • pythonimport.h
  • pythonimport.cpp

umbrello/umbrello

Skip menu "umbrello/umbrello"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdesdk

Skip menu "kdesdk"
  • kate
  •     kate
  • umbrello
  •   umbrello
Generated for kdesdk by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal