File indexing completed on 2025-01-05 05:14:49

0001 /*
0002 SPDX-FileCopyrightText: 2021 Hamed Masafi <hamed.masfi@gmail.com>
0003 
0004 SPDX-License-Identifier: GPL-3.0-or-later
0005 */
0006 
0007 #include "mergeopenfilesdialog.h"
0008 
0009 #include <KLocalizedString>
0010 #include <QFileDialog>
0011 
0012 MergeOpenFilesDialog::MergeOpenFilesDialog(QWidget *parent)
0013     : AppDialog(parent)
0014 {
0015     setupUi(this);
0016     connect(buttonBox, &QDialogButtonBox::accepted, this, &MergeOpenFilesDialog::accept);
0017     connect(buttonBox, &QDialogButtonBox::rejected, this, &MergeOpenFilesDialog::reject);
0018 }
0019 
0020 QString MergeOpenFilesDialog::filePathLocal() const
0021 {
0022     return lineEditLocalFile->text();
0023 }
0024 
0025 void MergeOpenFilesDialog::setFilePathLocal(const QString &newFilePathLocal)
0026 {
0027     lineEditLocalFile->setText(newFilePathLocal);
0028 }
0029 
0030 QString MergeOpenFilesDialog::filePathRemote() const
0031 {
0032     return lineEditRemoteFile->text();
0033 }
0034 
0035 void MergeOpenFilesDialog::setFilePathRemote(const QString &newFilePathRemote)
0036 {
0037     lineEditRemoteFile->setText(newFilePathRemote);
0038 }
0039 
0040 QString MergeOpenFilesDialog::filePathBase() const
0041 {
0042     return lineEditBaseFile->text();
0043 }
0044 
0045 void MergeOpenFilesDialog::setFilePathBase(const QString &newFilePathBase)
0046 {
0047     lineEditBaseFile->setText(newFilePathBase);
0048 }
0049 
0050 #include "moc_mergeopenfilesdialog.cpp"