Warning, file /sdk/cervisia/addrepositorydialog.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 * Copyright (C) 1999-2002 Bernd Gehrmann 0003 * bernd@mail.berlios.de 0004 * Copyright (c) 2002-2007 Christian Loose <christian.loose@kdemail.net> 0005 * 0006 * This program is free software; you can redistribute it and/or modify 0007 * it under the terms of the GNU General Public License as published by 0008 * the Free Software Foundation; either version 2 of the License, or 0009 * (at your option) any later version. 0010 * 0011 * This program is distributed in the hope that it will be useful, 0012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0014 * GNU General Public License for more details. 0015 * 0016 * You should have received a copy of the GNU General Public License 0017 * along with this program; if not, write to the Free Software 0018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 0019 */ 0020 0021 #ifndef ADDREPOSITORYDIALOG_H 0022 #define ADDREPOSITORYDIALOG_H 0023 0024 #include <QDialog> 0025 0026 class QCheckBox; 0027 class KConfig; 0028 class QSpinBox; 0029 class QLineEdit; 0030 0031 class AddRepositoryDialog : public QDialog 0032 { 0033 Q_OBJECT 0034 0035 public: 0036 AddRepositoryDialog(KConfig &cfg, const QString &repo, QWidget *parent = nullptr); 0037 ~AddRepositoryDialog() override; 0038 0039 void setRepository(const QString &repo); 0040 void setRsh(const QString &rsh); 0041 void setServer(const QString &server); 0042 void setCompression(int compression); 0043 void setRetrieveCvsignoreFile(bool enabled); 0044 0045 QString repository() const; 0046 QString rsh() const; 0047 QString server() const; 0048 int compression() const; 0049 bool retrieveCvsignoreFile() const; 0050 0051 private slots: 0052 void repoChanged(); 0053 void compressionToggled(bool checked); 0054 0055 private: 0056 QLineEdit *repo_edit; 0057 QLineEdit *rsh_edit; 0058 QLineEdit *server_edit; 0059 QCheckBox *m_useDifferentCompression; 0060 QCheckBox *m_retrieveCvsignoreFile; 0061 QSpinBox *m_compressionLevel; 0062 KConfig &partConfig; 0063 }; 0064 0065 #endif // ADDREPOSITORYDIALOG_H 0066 0067 // Local Variables: 0068 // c-basic-offset: 4 0069 // End: