Warning, file /sdk/cervisia/logdialog.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 * 0005 * This program is free software; you can redistribute it and/or modify 0006 * it under the terms of the GNU General Public License as published by 0007 * the Free Software Foundation; either version 2 of the License, or 0008 * (at your option) any later version. 0009 * 0010 * This program is distributed in the hope that it will be useful, 0011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0013 * GNU General Public License for more details. 0014 * 0015 * You should have received a copy of the GNU General Public License 0016 * along with this program; if not, write to the Free Software 0017 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 0018 */ 0019 0020 #ifndef LOGDIALOG_H 0021 #define LOGDIALOG_H 0022 0023 #include <QDialog> 0024 0025 #include "loginfo.h" 0026 0027 #include <qlist.h> 0028 0029 class LogListView; 0030 class LogTreeView; 0031 class LogPlainView; 0032 0033 class KComboBox; 0034 class QLabel; 0035 class QSplitter; 0036 class QTabWidget; 0037 class QPushButton; 0038 class QDialogButtonBox; 0039 class KTextEdit; 0040 class OrgKdeCervisia5CvsserviceCvsserviceInterface; 0041 class KConfig; 0042 0043 class LogDialogTagInfo 0044 { 0045 public: 0046 QString rev; 0047 QString tag; 0048 QString branchpoint; 0049 }; 0050 0051 class LogDialog : public QDialog 0052 { 0053 Q_OBJECT 0054 0055 public: 0056 explicit LogDialog(KConfig &cfg, QWidget *parent = nullptr); 0057 0058 ~LogDialog() override; 0059 0060 bool parseCvsLog(OrgKdeCervisia5CvsserviceCvsserviceInterface *service, const QString &fileName); 0061 0062 protected slots: 0063 void slotOk(); 0064 void slotPatch(); 0065 void slotHelp(); 0066 0067 private slots: 0068 void findClicked(); 0069 void diffClicked(); 0070 void annotateClicked(); 0071 void revisionSelected(QString rev, bool rmb); 0072 void tagASelected(int n); 0073 void tagBSelected(int n); 0074 void tabChanged(int index); 0075 0076 private: 0077 void tagSelected(LogDialogTagInfo *tag, bool rmb); 0078 void updateButtons(); 0079 0080 QSplitter *splitter; 0081 QString filename; 0082 QList<Cervisia::LogInfo *> items; 0083 QList<LogDialogTagInfo *> tags; 0084 QString selectionA; 0085 QString selectionB; 0086 LogTreeView *tree; 0087 LogListView *list; 0088 LogPlainView *plain; 0089 QTabWidget *tabWidget; 0090 QLabel *revbox[2]; 0091 QLabel *authorbox[2]; 0092 QLabel *datebox[2]; 0093 KTextEdit *commentbox[2]; 0094 KTextEdit *tagsbox[2]; 0095 KComboBox *tagcombo[2]; 0096 QPushButton *user1Button, *user2Button, *user3Button, *okButton; 0097 QDialogButtonBox *buttonBox; 0098 0099 OrgKdeCervisia5CvsserviceCvsserviceInterface *cvsService; 0100 KConfig &partConfig; 0101 }; 0102 0103 #endif // LOGDIALOG_H 0104 0105 // Local Variables: 0106 // c-basic-offset: 4 0107 // End: