Blame view

build3/apps/shared/language_controller.h 913 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
29
30
31
32
33
  #ifndef SHARED_LANGUAGE_CONTROLLER_H
  #define SHARED_LANGUAGE_CONTROLLER_H
  
  #include <escher.h>
  #include "../i18n.h"
  
  namespace Shared {
  
  class LanguageController : public ViewController, public SimpleListViewDataSource, public SelectableTableViewDataSource {
  public:
    LanguageController(Responder * parentResponder, KDCoordinate topMargin);
    void resetSelection();
  
    View * view() override;
    const char * title() override;
    void didBecomeFirstResponder() override;
    void viewWillAppear() override;
    bool handleEvent(Ion::Events::Event event) override;
  
    int numberOfRows() override;
    KDCoordinate cellHeight() override;
    HighlightCell * reusableCell(int index) override;
    int reusableCellCount() override;
  
    void willDisplayCellForIndex(HighlightCell * cell, int index) override;
  private:
    SelectableTableView m_selectableTableView;
    MessageTableCell m_cells[I18n::NumberOfLanguages];
  };
  
  }
  
  #endif