Warning, file /sdk/cervisia/commitdialog.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) 2003-2008 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 COMMITDIALOG_H
0022 #define COMMITDIALOG_H
0023 
0024 #include <QDialog>
0025 #include <qstringlist.h>
0026 
0027 namespace Cervisia
0028 {
0029 class LogMessageEdit;
0030 }
0031 
0032 class QComboBox;
0033 class QCheckBox;
0034 class QListWidget;
0035 class QListWidgetItem;
0036 class OrgKdeCervisia5CvsserviceCvsserviceInterface;
0037 class KConfig;
0038 
0039 class CommitDialog : public QDialog
0040 {
0041     Q_OBJECT
0042 
0043 public:
0044     CommitDialog(KConfig &cfg, OrgKdeCervisia5CvsserviceCvsserviceInterface *service, QWidget *parent = nullptr);
0045     ~CommitDialog() override;
0046 
0047     void setFileList(const QStringList &list);
0048     QStringList fileList() const;
0049     void setLogMessage(const QString &msg);
0050     QString logMessage() const;
0051     void setLogHistory(const QStringList &list);
0052 
0053 private slots:
0054     void slotHelp();
0055     void comboActivated(int);
0056     void fileSelected(QListWidgetItem *item);
0057     void fileHighlighted();
0058     void diffClicked();
0059     void useTemplateClicked();
0060 
0061 private:
0062     void showDiffDialog(const QString &fileName);
0063     void checkForTemplateFile();
0064     void addTemplateText();
0065     void removeTemplateText();
0066 
0067     QListWidget *m_fileList;
0068     Cervisia::LogMessageEdit *edit;
0069     QComboBox *combo;
0070     QPushButton *user1Button;
0071     QStringList commits;
0072     int current_index;
0073     QString current_text;
0074     int highlightedFile;
0075 
0076     QCheckBox *m_useTemplateChk;
0077     QString m_templateText;
0078 
0079     KConfig &partConfig;
0080     OrgKdeCervisia5CvsserviceCvsserviceInterface *cvsService; // for diff dialog
0081 };
0082 
0083 #endif // COMMITDIALOG_H
0084 
0085 // Local Variables:
0086 // c-basic-offset: 4
0087 // End: