Guitar
FileHistoryWindow.h
Go to the documentation of this file.
1 #ifndef FILEHISTORYWINDOW_H
2 #define FILEHISTORYWINDOW_H
3 
4 #include <QDialog>
5 #include "FileDiffWidget.h"
6 
7 namespace Ui {
9 }
10 
11 class QTableWidgetItem;
12 
13 class FileHistoryWindow : public QDialog {
14  Q_OBJECT
15 private:
16  Ui::FileHistoryWindow *ui;
17  struct Private;
19 
22  FileDiffWidget::DiffData const *diffdata() const;
23  int totalTextLines() const;
24  void collectFileHistory();
25  void updateDiffView();
26 public:
27  explicit FileHistoryWindow(MainWindow *parent);
28  ~FileHistoryWindow() override;
29 
30  void prepare(GitRunner g, QString const &path);
31 private slots:
32  void on_tableWidget_log_currentItemChanged(QTableWidgetItem *current, QTableWidgetItem *previous);
33  void on_tableWidget_log_customContextMenuRequested(const QPoint &pos);
34 };
35 
36 #endif // FILEHISTORYWINDOW_H
Definition: FileHistoryWindow.h:13
FileHistoryWindow(MainWindow *parent)
Definition: FileHistoryWindow.cpp:35
FileDiffWidget::DiffData * diffdata()
Definition: FileHistoryWindow.cpp:20
void updateDiffView()
Definition: FileHistoryWindow.cpp:136
int totalTextLines() const
Definition: FileHistoryWindow.cpp:30
void collectFileHistory()
Definition: FileHistoryWindow.cpp:87
MainWindow * mainwindow()
Definition: FileHistoryWindow.cpp:58
Ui::FileHistoryWindow * ui
Definition: FileHistoryWindow.h:16
void on_tableWidget_log_currentItemChanged(QTableWidgetItem *current, QTableWidgetItem *previous)
Definition: FileHistoryWindow.cpp:166
void on_tableWidget_log_customContextMenuRequested(const QPoint &pos)
Definition: FileHistoryWindow.cpp:171
void prepare(GitRunner g, QString const &path)
Definition: FileHistoryWindow.cpp:63
~FileHistoryWindow() override
Definition: FileHistoryWindow.cpp:52
Private * m
Definition: FileHistoryWindow.h:17
Definition: GitRunner.h:21
Definition: MainWindow.h:49
Definition: AboutDialog.h:6
Definition: FileDiffWidget.h:45
Definition: FileHistoryWindow.cpp:13