Blame view

build1/epsilon-master/apps/sequence/graph/banner_view.cpp 473 Bytes
6663b6c9   adorian   projet complet av...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  #include "banner_view.h"
  
  namespace Sequence {
  
  BannerView::BannerView() :
    m_abscissaView(KDText::FontSize::Small, 0.5f, 0.5f, KDColorBlack, Palette::GreyMiddle),
    m_sequenceView(KDText::FontSize::Small, 0.5f, 0.5f, KDColorBlack, Palette::GreyMiddle)
  {
  }
  
  int BannerView::numberOfSubviews() const {
    return 2;
  }
  
  TextView * BannerView::textViewAtIndex(int i) const {
    const TextView * views[2] = {&m_abscissaView, &m_sequenceView};
    return (TextView *)views[i];
  }
  
  }