Füge Unterstützung für LibreTranslate hinzu und verbessere die Benutzeroberfläche
This commit is contained in:
@@ -42,6 +42,9 @@ private slots:
|
||||
void on_deeplTranslateFrom_currentTextChanged(const QString &sourceLanguage);
|
||||
void on_autoTranslateButton_clicked();
|
||||
void on_bulkAutoTranslateButton_clicked();
|
||||
void on_checkDeeplUsageButton_clicked();
|
||||
void on_translationProviderCombo_currentIndexChanged(int index);
|
||||
void on_libreTranslateUrl_editingFinished();
|
||||
void on_searchButton_clicked();
|
||||
void on_searchNextButton_clicked();
|
||||
void on_deeplApiKey_editingFinished();
|
||||
@@ -83,7 +86,10 @@ private:
|
||||
QString findNewText(QTreeWidgetItem *fileItem, const QString &lineNumber, const QString &originalText, const QString &speaker);
|
||||
void loadDeeplTranslationPossibilities();
|
||||
void renderDeeplSources();
|
||||
void translationRequestFinished(QNetworkReply *reply);
|
||||
void translationRequestFinished(QNetworkReply *reply, bool isLibreTranslate = false);
|
||||
void loadLibreTranslateLanguages();
|
||||
bool isLibreTranslateProvider() const;
|
||||
QString libreTranslateUrl(const QString &path) const;
|
||||
void requestNextBulkTranslationBatch();
|
||||
void handleBulkTranslationReply(QNetworkReply *reply, int firstItem, int itemCount);
|
||||
void showBulkTranslationDialog();
|
||||
@@ -98,5 +104,6 @@ private:
|
||||
QString restorePlaceholdersFromDeepl(const QString &input);
|
||||
QVector<BulkTranslationItem> bulkTranslations;
|
||||
int nextBulkTranslationIndex{0};
|
||||
bool bulkUsesLibreTranslate{false};
|
||||
};
|
||||
#endif // MAINWINDOW_H
|
||||
|
||||
Reference in New Issue
Block a user