Guitar
FileHistoryWindow.h
Go to the documentation of this file.
1 #ifndef FILEHISTORYWINDOW_H
2 #define FILEHISTORYWINDOW_H
3 
4 #include <QDialog>
5 #include "Git.h"
6 #include "FileDiffWidget.h"
7 
8 namespace Ui {
10 }
11 
12 class QTableWidgetItem;
13 
14 class FileHistoryWindow : public QDialog {
15  Q_OBJECT
16 private:
17  Ui::FileHistoryWindow *ui;
18  struct Private;
20 
23  FileDiffWidget::DiffData const *diffdata() const;
24  int totalTextLines() const;
25  void collectFileHistory();
26  void updateDiffView();
27 public:
28  explicit FileHistoryWindow(MainWindow *parent);
29  ~FileHistoryWindow() override;
30 
31  void prepare(GitRunner g, QString const &path);
32 private slots:
33  void on_tableWidget_log_currentItemChanged(QTableWidgetItem *current, QTableWidgetItem *previous);
34  void on_tableWidget_log_customContextMenuRequested(const QPoint &pos);
35 };
36 
37 #endif // FILEHISTORYWINDOW_H
Definition: FileHistoryWindow.h:14
FileHistoryWindow(MainWindow *parent)
Definition: FileHistoryWindow.cpp:36
FileDiffWidget::DiffData * diffdata()
Definition: FileHistoryWindow.cpp:21
void updateDiffView()
Definition: FileHistoryWindow.cpp:135
int totalTextLines() const
Definition: FileHistoryWindow.cpp:31
void collectFileHistory()
Definition: FileHistoryWindow.cpp:88
MainWindow * mainwindow()
Definition: FileHistoryWindow.cpp:59
Ui::FileHistoryWindow * ui
Definition: FileHistoryWindow.h:17
void on_tableWidget_log_currentItemChanged(QTableWidgetItem *current, QTableWidgetItem *previous)
Definition: FileHistoryWindow.cpp:162
void on_tableWidget_log_customContextMenuRequested(const QPoint &pos)
Definition: FileHistoryWindow.cpp:167
void prepare(GitRunner g, QString const &path)
Definition: FileHistoryWindow.cpp:64
~FileHistoryWindow() override
Definition: FileHistoryWindow.cpp:53
Private * m
Definition: FileHistoryWindow.h:18
Definition: Git.h:739
Definition: MainWindow.h:85
Definition: AboutDialog.h:6
Definition: FileDiffWidget.h:44
Definition: FileHistoryWindow.cpp:14