1 /* 2 * Copyright (C) 1999-2002 Bernd Gehrmann 3 * bernd@mail.berlios.de 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18 */ 19 20 #ifndef CHECKOUTDIALOG_H 21 #define CHECKOUTDIALOG_H 22 23 #include <QDialog> 24 25 class QCheckBox; 26 class KComboBox; 27 class KConfig; 28 class KLineEdit; 29 class QLineEdit; 30 class OrgKdeCervisia5CvsserviceCvsserviceInterface; 31 32 class CheckoutDialog : public QDialog 33 { 34 Q_OBJECT 35 36 public: 37 enum ActionType { Checkout, Import }; 38 39 CheckoutDialog( KConfig& cfg, OrgKdeCervisia5CvsserviceCvsserviceInterface* service, ActionType action, 40 QWidget *parent=0); 41 42 QString workingDirectory() const; 43 QString repository() const; 44 QString module() const; 45 QString branch() const; 46 QString vendorTag() const; 47 QString releaseTag() const; 48 QString ignoreFiles() const; 49 QString comment() const; 50 QString alias() const; 51 bool importBinary() const; 52 bool useModificationTime() const; 53 bool exportOnly() const; 54 bool recursive() const; 55 56 protected slots: 57 void slotOk(); 58 59 private slots: 60 void slotHelp(); 61 void dirButtonClicked(); 62 void moduleButtonClicked(); 63 void branchButtonClicked(); 64 void branchTextChanged(); 65 66 private: 67 void saveUserInput(); 68 void restoreUserInput(); 69 70 KComboBox *repo_combo, *module_combo, *branchCombo; 71 KLineEdit *workdir_edit; 72 QLineEdit *module_edit, *comment_edit; 73 QLineEdit *vendortag_edit, *releasetag_edit, *ignore_edit, *alias_edit; 74 QCheckBox *binary_box, *export_box, *recursive_box; 75 QCheckBox* m_useModificationTimeBox; 76 ActionType act; 77 KConfig& partConfig; 78 QString helpTopic; 79 80 OrgKdeCervisia5CvsserviceCvsserviceInterface *cvsService; 81 }; 82 83 #endif // CHECKOUTDIALOG_H 84 85 // Local Variables: 86 // c-basic-offset: 4 87 // End: 88