Quark  0.1
DiffMapView.h++
Go to the documentation of this file.
1 #ifndef __libquark_diff_DiffMapView_hxx
2 #define __libquark_diff_DiffMapView_hxx
3 
4 #include <QWidget>
5 
6 #include <quark/DiffTypes.h++>
7 
8 namespace quark {
9 namespace diff {
10 
11 class DiffModel;
12 class DiffColorModel;
13 
14 class DiffMapView : public QWidget
15 {
16  public:
17 
18  DiffMapView(QWidget* parent = NULL);
19  virtual ~DiffMapView();
20 
21  void setModel(DiffModel* model, DiffRole diffRole, DiffDirection diffDir);
22  void setDiffDirection(DiffDirection diffDir);
23 
24  void setColorModel(DiffColorModel* colorModel);
25 
26  protected:
27 
28  virtual void paintEvent(QPaintEvent* event);
29 
30  private:
31 
32  DiffModel* _model;
33  DiffColorModel* _colorModel;
34  DiffRole _diffRole;
35  DiffDirection _diffDir;
36 };
37 
38 } // namespace diff
39 } // namespace quark
40 
41 #endif // __libquark_diff_DiffMapView_hxx
Definition: DiffMapView.h++:14
DiffMapView(QWidget *parent=NULL)
Definition: DiffColorModel.h++:13
virtual void paintEvent(QPaintEvent *event)
Definition: BarChartView.h++:6
TODO: rewrite doc A data model representing a 2-way or 3-way diff.
Definition: DiffModel.h++:23
DiffDirection
Definition: DiffTypes.h++:29
void setDiffDirection(DiffDirection diffDir)
void setModel(DiffModel *model, DiffRole diffRole, DiffDirection diffDir)
void setColorModel(DiffColorModel *colorModel)
DiffRole
Definition: DiffTypes.h++:11