45 ito::RetVal startSortingAndFormatting(
const QString &importSortingCmd,
const QString &formattingCmd,
const QString &code, QWidget *dialogParent =
nullptr);
48 QProcess m_processFormatter;
49 QProcess m_processImportSort;
50 QString m_currentCode;
51 QString m_currentError;
52 QSharedPointer<QProgressDialog> m_progressDialog;
54 const QString m_importSortTempFileName;
55 QTemporaryDir m_importSortTempDir;
56 QString m_pythonExePath;
57 QString m_formattingCmd;
60 ito::RetVal startImportsSorting(
const QString& importSortingCmd,
const QString& code);
61 ito::RetVal startCodeFormatting(
const QString &formattingCmd,
const QString &code);
65 void formatterErrorOccurred(QProcess::ProcessError error);
66 void formatterFinished(
int exitCode, QProcess::ExitStatus exitStatus);
67 void formatterReadyReadStandardError();
68 void formatterReadyReadStandardOutput();
69 void formatterStarted();
71 void importSortErrorOccurred(QProcess::ProcessError error);
72 void importSortFinished(
int exitCode, QProcess::ExitStatus exitStatus);
73 void importSortReadyReadStandardError();
74 void importSortStarted();
76 void cancelRequested();
79 void formattingDone(
bool success, QString code);