Blame view

epsilon-master/escher/src/selectable_table_view_data_source.cpp 618 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
21
22
23
24
25
26
27
28
  #include <escher/selectable_table_view_data_source.h>
  
  SelectableTableViewDataSource::SelectableTableViewDataSource() :
    m_selectedCellX(0),
    m_selectedCellY(-1)
  {
  }
  
  int SelectableTableViewDataSource::selectedRow() {
    return m_selectedCellY;
  }
  
  int SelectableTableViewDataSource::selectedColumn() {
    return m_selectedCellX;
  }
  
  void SelectableTableViewDataSource::selectRow(int j) {
    m_selectedCellY = j;
  }
  
  void SelectableTableViewDataSource::selectColumn(int i) {
    m_selectedCellX = i;
  }
  
  void SelectableTableViewDataSource::selectCellAtLocation(int i, int j) {
    m_selectedCellX = i;
    m_selectedCellY = j;
  }