2 Author: Marco Costalba (C) 2005-2007
4 Copyright: See COPYING file that comes with this distribution
10 #include "ui_fileview.h" // needed by moc_* file to understand tab() function
18 class FileView
: public Domain
{
22 FileView(MainImpl
* m
, Git
* git
);
24 virtual void clear(bool complete
= true);
25 void append(SCRef data
);
27 void updateHistViewer(SCRef revSha
, SCRef fileName
, bool fromUpstream
= true);
29 Ui_TabFile
* tab() { return fileTab
; }
32 void on_toolButtonCopy_clicked();
33 void on_toolButtonShowAnnotate_toggled(bool);
34 void on_toolButtonFindAnnotate_toggled(bool);
35 void on_toolButtonGoNext_clicked();
36 void on_toolButtonGoPrev_clicked();
37 void on_toolButtonRangeFilter_toggled(bool);
38 void on_toolButtonPin_toggled(bool);
39 void on_toolButtonHighlightText_toggled(bool);
40 void on_spinBoxRevision_valueChanged(int);
41 void on_loadCompleted(const FileHistory
*, const QString
&);
42 void on_annotationAvailable(bool);
43 void on_fileAvailable(bool);
44 void on_revIdSelected(int);
47 virtual bool doUpdate(bool force
);
48 virtual bool isMatch(SCRef sha
);
49 virtual bool eventFilter(QObject
*obj
, QEvent
*e
);
52 friend class MainImpl
;
53 friend class FileHighlighter
;
55 void showAnnotation();
56 bool goToCurrentAnnotation(int direction
= 0);
57 void filterOnRange(bool b
);
58 void updateSpinBoxValue();
59 void updateEnabledButtons();