[DEBUG] correct heritage
This commit is contained in:
parent
18ca91a514
commit
47c144910f
@ -178,11 +178,6 @@ etk::Color<> BufferView::getBasicBG() {
|
||||
return (*m_paintingProperties)[m_colorBackground1].getForeground();
|
||||
}
|
||||
|
||||
bool BufferView::getTitle(int32_t _colomn, etk::String &_myTitle, etk::Color<> &_fg, etk::Color<> &_bg) {
|
||||
_myTitle = "Buffers : ";
|
||||
return true;
|
||||
}
|
||||
|
||||
ivec2 BufferView::getMatrixSize() const {
|
||||
return ivec2(1,m_list.size());
|
||||
}
|
||||
@ -211,9 +206,10 @@ fluorine::Variant BufferView::getData(int32_t _role, const ivec2& _pos) {
|
||||
}
|
||||
|
||||
|
||||
bool BufferView::onItemEvent(int32_t _IdInput, enum gale::key::status _typeEvent, const ivec2& _pos, const vec2& _mousePosition) {
|
||||
if (1 == _IdInput && _typeEvent == gale::key::status::pressSingle) {
|
||||
APPL_INFO("Event on List : IdInput=" << _IdInput << " pos=" << _pos );
|
||||
bool BufferView::onItemEvent(const ewol::event::Input& _event, const ivec2& _pos, const vec2& _mousePosition) {
|
||||
if ( _event.getId() == 1
|
||||
&& _event.getStatus() == gale::key::status::pressSingle) {
|
||||
APPL_INFO("Event on List: " << _event << " pos=" << _pos );
|
||||
if( _pos.y() >= 0
|
||||
&& _pos.y() < (int64_t)m_list.size()) {
|
||||
if (m_list[_pos.y()].m_buffer != null) {
|
||||
|
@ -64,10 +64,9 @@ class BufferView : public ewol::widget::List {
|
||||
etk::Color<> getBasicBG() override;
|
||||
void removeAllElement();
|
||||
// Derived function
|
||||
bool getTitle(int32_t _colomn, etk::String& _myTitle, etk::Color<>& _fg, etk::Color<>& _bg) override;
|
||||
ivec2 getMatrixSize() const override;
|
||||
fluorine::Variant getData(int32_t _role, const ivec2& _pos) override;
|
||||
bool onItemEvent(int32_t _IdInput, enum gale::key::status _typeEvent, const ivec2& _pos, const vec2& _mousePosition) override;
|
||||
bool onItemEvent(const ewol::event::Input& _event, const ivec2& _pos, const vec2& _mousePosition) override;
|
||||
private: //callback function:
|
||||
void onCallbackChangeName();
|
||||
void onCallbackIsSave();
|
||||
|
@ -37,11 +37,6 @@ etk::Color<> appl::TagFileList::getBasicBG() {
|
||||
return 0x00000010;
|
||||
}
|
||||
|
||||
bool appl::TagFileList::getTitle(int32_t _colomn, etk::String& _myTitle, etk::Color<>& _fg, etk::Color<>& _bg) {
|
||||
_myTitle = "title";
|
||||
return true;
|
||||
}
|
||||
|
||||
ivec2 appl::TagFileList::getMatrixSize() const {
|
||||
return ivec2(2,m_list.size());
|
||||
}
|
||||
@ -73,10 +68,10 @@ fluorine::Variant appl::TagFileList::getData(int32_t _role, const ivec2& _pos) {
|
||||
}
|
||||
|
||||
|
||||
bool appl::TagFileList::onItemEvent(int32_t _IdInput, enum gale::key::status _typeEvent, const ivec2& _pos, const vec2& _mousePosition) {
|
||||
if (_typeEvent == gale::key::status::pressSingle) {
|
||||
EWOL_INFO("Event on List : IdInput=" << _IdInput << " pos=" << _pos );
|
||||
if (_IdInput == 1) {
|
||||
bool appl::TagFileList::onItemEvent(const ewol::event::Input& _event, const ivec2& _pos, const vec2& _mousePosition) {
|
||||
if (_event.getStatus() == gale::key::status::pressSingle) {
|
||||
EWOL_INFO("Event on List: " << _event << " pos=" << _pos );
|
||||
if (_event.getId() == 1) {
|
||||
int32_t previousRaw = m_selectedLine;
|
||||
if (_pos.y() > (int64_t)m_list.size() ) {
|
||||
m_selectedLine = -1;
|
||||
|
@ -44,10 +44,9 @@ namespace appl {
|
||||
virtual ~TagFileList();
|
||||
// display API :
|
||||
etk::Color<> getBasicBG() override;
|
||||
bool getTitle(int32_t _colomn, etk::String& _myTitle, etk::Color<>& _fg, etk::Color<>& _bg) override;
|
||||
ivec2 getMatrixSize() const override;
|
||||
fluorine::Variant getData(int32_t _role, const ivec2& _pos) override;
|
||||
bool onItemEvent(int32_t _IdInput, enum gale::key::status _typeEvent, const ivec2& _pos, const vec2& _mousePosition) override;
|
||||
bool onItemEvent(const ewol::event::Input& _event, const ivec2& _pos, const vec2& _mousePosition) override;
|
||||
public:
|
||||
/**
|
||||
* @brief add a Ctags item on the curent list
|
||||
|
Loading…
x
Reference in New Issue
Block a user