Quark  0.1
DiffColorModel.h++
Go to the documentation of this file.
1 
2 #ifndef __libquark_diff_DiffColorModel_hxx
3 #define __libquark_diff_DiffColorModel_hxx
4 
5 #include <QColor>
6 
7 #include <quark/Quark.h++>
9 
10 namespace quark {
11 namespace diff {
12 
14  Q_OBJECT;
15 
16  public:
17 
19  virtual ~DiffColorModel();
20 
21  inline QColor insertColor() const
22  { return(_insertColor); }
23 
24  inline QColor deleteColor() const
25  { return(_deleteColor); }
26 
27  QColor changeColor() const
28  { return(_changeColor); }
29 
30  QColor conflictColor() const
31  { return(_conflictColor); }
32 
33  public slots:
34 
35  void setInsertColor(const QColor& insertColor);
36  void setDeleteColor(const QColor& deleteColor);
37  void setChangeColor(const QColor& changeColor);
38  void setConflictColor(const QColor& conflictColor);
39 
40  private:
41 
42  QColor _insertColor;
43  QColor _deleteColor;
44  QColor _changeColor;
45  QColor _conflictColor;
46 
47  Q_DISABLE_COPY(DiffColorModel);
48 };
49 
50 } // namespace diff
51 } // namespace quark
52 
53 #endif // __libquark_diff_DiffColorModel_hxx
54 
void setInsertColor(const QColor &insertColor)
A base class for objects that can emit a signal when their internal state changes in some way...
Definition: MutableObject.h++:17
void setChangeColor(const QColor &changeColor)
QColor deleteColor() const
Definition: DiffColorModel.h++:24
Definition: DiffColorModel.h++:13
void setDeleteColor(const QColor &deleteColor)
void setConflictColor(const QColor &conflictColor)
Definition: BarChartView.h++:6
QColor conflictColor() const
Definition: DiffColorModel.h++:30
QColor changeColor() const
Definition: DiffColorModel.h++:27
QColor insertColor() const
Definition: DiffColorModel.h++:21