itom
Loading...
Searching...
No Matches
ito::PyCodeFormatter Class Reference
Inheritance diagram for ito::PyCodeFormatter:

Signals

void formattingDone (bool success, QString code)
 

Public Member Functions

 PyCodeFormatter (QObject *parent=nullptr)
 
ito::RetVal startSortingAndFormatting (const QString &importSortingCmd, const QString &formattingCmd, const QString &code, QWidget *dialogParent=nullptr)
 

Private Slots

void formatterErrorOccurred (QProcess::ProcessError error)
 
void formatterFinished (int exitCode, QProcess::ExitStatus exitStatus)
 
void formatterReadyReadStandardError ()
 
void formatterReadyReadStandardOutput ()
 
void formatterStarted ()
 
void importSortErrorOccurred (QProcess::ProcessError error)
 
void importSortFinished (int exitCode, QProcess::ExitStatus exitStatus)
 
void importSortReadyReadStandardError ()
 
void importSortStarted ()
 
void cancelRequested ()
 

Private Member Functions

ito::RetVal getPythonPath (QString &path) const
 
ito::RetVal startImportsSorting (const QString &importSortingCmd, const QString &code)
 
ito::RetVal startCodeFormatting (const QString &formattingCmd, const QString &code)
 

Private Attributes

QProcess m_processFormatter
 
QProcess m_processImportSort
 
QString m_currentCode
 
QString m_currentError
 
QSharedPointer< QProgressDialog > m_progressDialog
 
bool m_isCancelling
 
const QString m_importSortTempFileName
 
QTemporaryDir m_importSortTempDir
 
QString m_pythonExePath
 
QString m_formattingCmd
 

The documentation for this class was generated from the following files: