pythonimport.h
00001 /*************************************************************************** 00002 * * 00003 * This program is free software; you can redistribute it and/or modify * 00004 * it under the terms of the GNU General Public License as published by * 00005 * the Free Software Foundation; either version 2 of the License, or * 00006 * (at your option) any later version. * 00007 * * 00008 * copyright (C) 2006 * 00009 * Umbrello UML Modeller Authors <uml-devel@uml.sf.net> * 00010 ***************************************************************************/ 00011 00012 #ifndef PYTHONIMPORT_H 00013 #define PYTHONIMPORT_H 00014 00015 #include "nativeimportbase.h" 00016 00022 class PythonImport : public NativeImportBase { 00023 public: 00024 PythonImport(); 00025 virtual ~PythonImport(); 00026 00027 protected: 00031 void initVars(); 00032 00036 bool parseStmt(); 00037 00041 void fillSource(const QString& line); 00042 00051 bool preprocess(QString& line); 00052 00056 void skipBody(); 00057 00062 int m_srcIndent[100]; 00063 00067 int m_srcIndentIndex; 00068 00072 bool m_braceWasOpened; 00073 }; 00074 00075 #endif 00076
