Warning, file /sdk/cervisia/loglist.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 LOGLIST_H 0021 #define LOGLIST_H 0022 0023 #include <QKeyEvent> 0024 #include <QMouseEvent> 0025 #include <QTreeWidget> 0026 0027 class KConfig; 0028 0029 namespace Cervisia 0030 { 0031 struct LogInfo; 0032 } 0033 0034 class LogListView : public QTreeWidget 0035 { 0036 Q_OBJECT 0037 0038 public: 0039 explicit LogListView(KConfig &cfg, QWidget *parent); 0040 ~LogListView() override; 0041 0042 void addRevision(const Cervisia::LogInfo &logInfo); 0043 void setSelectedPair(const QString &selectionA, const QString &selectionB); 0044 0045 signals: 0046 void revisionClicked(QString rev, bool rmb); 0047 0048 protected: 0049 void mousePressEvent(QMouseEvent *e) override; 0050 void keyPressEvent(QKeyEvent *e) override; 0051 0052 private slots: 0053 0054 void slotQueryToolTip(const QPoint &, QRect &, QString &); 0055 0056 private: 0057 KConfig &partConfig; 0058 }; 0059 0060 #endif 0061 0062 // Local Variables: 0063 // c-basic-offset: 4 0064 // End: