1 /* 2 * Copyright (C) 2004 Christian Loose <christian.loose@kdemail.net> 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; either version 2 of the License, or 7 * (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 */ 18 19 #ifndef PATCHOPTIONDIALOG_H 20 #define PATCHOPTIONDIALOG_H 21 22 #include <QDialog> 23 24 class QCheckBox; 25 class QButtonGroup; 26 class QSpinBox; 27 28 namespace Cervisia 29 { 30 31 class PatchOptionDialog : public QDialog 32 { 33 Q_OBJECT 34 35 public: 36 explicit PatchOptionDialog(QWidget* parent = 0); 37 ~PatchOptionDialog() override; 38 39 QString diffOptions() const; 40 QString formatOption() const; 41 42 private slots: 43 void slotHelp(); 44 void formatChanged(int buttonId); 45 46 private: 47 QButtonGroup* m_formatBtnGroup; 48 QSpinBox* m_contextLines; 49 QCheckBox* m_blankLineChk; 50 QCheckBox* m_allSpaceChk; 51 QCheckBox* m_spaceChangeChk; 52 QCheckBox* m_caseChangesChk; 53 }; 54 55 } 56 57 #endif // PATCHOPTIONDIALOG_H 58