| 1 | #pragma once |
| 2 | |
| 3 | /**************************************************************************************** |
| 4 | ** GitQlient is an application to manage and operate one or several Git repositories. With |
| 5 | ** GitQlient you will be able to add commits, branches and manage all the options Git provides. |
| 6 | ** Copyright (C) 2021 Francesc Martinez |
| 7 | ** |
| 8 | ** LinkedIn: www.linkedin.com/in/cescmm/ |
| 9 | ** Web: www.francescmm.com |
| 10 | ** |
| 11 | ** This program is free software; you can redistribute it and/or |
| 12 | ** modify it under the terms of the GNU Lesser General Public |
| 13 | ** License as published by the Free Software Foundation; either |
| 14 | ** version 2 of the License, or (at your option) any later version. |
| 15 | ** |
| 16 | ** This program is distributed in the hope that it will be useful, |
| 17 | ** but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 | ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 19 | ** Lesser General Public License for more details. |
| 20 | ** |
| 21 | ** You should have received a copy of the GNU Lesser General Public |
| 22 | ** License along with this library; if not, write to the Free Software |
| 23 | ** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 24 | ***************************************************************************************/ |
| 25 | |
| 26 | #include <Issue.h> |
| 27 | #include <GitServerCache.h> |
| 28 | #include <document.h> |
| 29 | |
| 30 | #include <QFrame> |
| 31 | #include <QMutex> |
| 32 | |
| 33 | namespace GitServer |
| 34 | { |
| 35 | struct Issue; |
| 36 | struct PullRequest; |
| 37 | struct ; |
| 38 | struct Review; |
| 39 | struct CodeReview; |
| 40 | } |
| 41 | |
| 42 | class QLabel; |
| 43 | class QVBoxLayout; |
| 44 | class QNetworkAccessManager; |
| 45 | class QHBoxLayout; |
| 46 | class QScrollArea; |
| 47 | class QTextEdit; |
| 48 | |
| 49 | class HighlightningFrame : public QFrame |
| 50 | { |
| 51 | Q_OBJECT |
| 52 | Q_PROPERTY(QColor color READ color WRITE setColor) |
| 53 | |
| 54 | public: |
| 55 | explicit HighlightningFrame(QWidget *parent = nullptr); |
| 56 | |
| 57 | void setColor(QColor color); |
| 58 | QColor color(); |
| 59 | }; |
| 60 | |
| 61 | class : public QFrame |
| 62 | { |
| 63 | Q_OBJECT |
| 64 | |
| 65 | signals: |
| 66 | void (GitServer::PullRequest pr, const QMap<int, int> &links); |
| 67 | |
| 68 | public: |
| 69 | enum class |
| 70 | { |
| 71 | , |
| 72 | |
| 73 | }; |
| 74 | |
| 75 | explicit (const QSharedPointer<GitServerCache> &gitServerCache, QWidget *parent = nullptr); |
| 76 | (); |
| 77 | |
| 78 | void (Config config, int issueNumber); |
| 79 | void (int frameId); |
| 80 | void (); |
| 81 | |
| 82 | private: |
| 83 | QMutex ; |
| 84 | QSharedPointer<GitServerCache> = nullptr; |
| 85 | QNetworkAccessManager * = nullptr; |
| 86 | QFrame * = nullptr; |
| 87 | QVBoxLayout * = nullptr; |
| 88 | QFrame * = nullptr; |
| 89 | QFrame * = nullptr; |
| 90 | QTextEdit * = nullptr; |
| 91 | Config {}; |
| 92 | QScrollArea * = nullptr; |
| 93 | bool = false; |
| 94 | int = -1; |
| 95 | QMap<int, QFrame *> {}; |
| 96 | QMap<int, int> {}; |
| 97 | inline static int = 0; |
| 98 | Document ; |
| 99 | QVector<Document *> ; |
| 100 | |
| 101 | void (const GitServer::Issue &issue); |
| 102 | QLabel *(const QDateTime &dt, const QString &prefix = QString()); |
| 103 | void (); |
| 104 | QLayout *(const GitServer::Comment &); |
| 105 | QLayout *(const GitServer::Review &review); |
| 106 | QVector<QLayout *> (int reviewId, QVector<GitServer::CodeReview> &); |
| 107 | void (int , const QString &message); |
| 108 | }; |
| 109 | |