#include <ListFileSystem.hpp>

Inheritance diagram for ewol::widget::ListFileSystem:
ewol::widget::List ewol::widget::WidgetScrolled ewol::Widget ewol::Object ememory::EnableSharedFromThis< Object > eproperty::Interface ememory::EnableSharedFromThisBase

Public Member Functions

 DECLARE_WIDGET_FACTORY (ListFileSystem, "ListFileSystem")
 
virtual void setSelect (const std::string &_data)
 
std::string getSelect () const
 
- Public Member Functions inherited from ewol::widget::List
void calculateMinMaxSize () override
 
void setLabel (std::string _newLabel)
 
void addOObject (ewol::Compositing *_newObject, int32_t _pos=-1)
 
void clearOObjectList ()
 
void onRegenerateDisplay () override
 
bool onEventInput (const ewol::event::Input &_event) override
 
- Public Member Functions inherited from ewol::widget::WidgetScrolled
void setSingleFinger (bool _status)
 
bool getSingleFinger ()
 
 DECLARE_WIDGET_FACTORY (WidgetScrolled, "WidgetScrolled")
 
virtual ~WidgetScrolled ()
 
void onRegenerateDisplay () override
 
bool onEventInput (const ewol::event::Input &_event) override
 
void systemDraw (const ewol::DrawProperty &_displayProp) override
 
- Public Member Functions inherited from ewol::Widget
virtual ~Widget ()
 
virtual vec2 relativePosition (const vec2 &_pos)
 
virtual void onChangeSize ()
 
virtual void calculateSize ()
 
virtual vec2 getSize ()
 
virtual void setSize (const vec2 &_value)
 
virtual vec2 getCalculateMinSize ()
 
virtual vec2 getCalculateMaxSize ()
 
virtual void setOffset (const vec2 &_newVal)
 
virtual const vec2getOffset ()
 
virtual void setZoom (float _newVal)
 
virtual float getZoom ()
 
virtual void changeZoom (float _range)
 
virtual void setOrigin (const vec2 &_pos)
 
virtual vec2 getOrigin ()
 
void setNoMinSize ()
 
virtual void checkMinSize ()
 
void setNoMaxSize ()
 
virtual void checkMaxSize ()
 
virtual bvec2 canExpand ()
 
const bvec2canFill ()
 
virtual bool getFocus ()
 
virtual bool setFocus ()
 
virtual bool rmFocus ()
 
virtual void keepFocus ()
 
virtual int32_t getMouseLimit ()
 
virtual void setMouseLimit (int32_t _numberState)
 
virtual bool getKeyboardRepeate ()
 
virtual ewol::WidgetShared getWidgetAtPos (const vec2 &_pos)
 
virtual bool systemEventInput (ewol::event::InputSystem &_event)
 
virtual bool systemEventEntry (ewol::event::EntrySystem &_event)
 
virtual void onEventClipboard (enum gale::context::clipBoard::clipboardListe _clipboardID)
 
virtual bool onEventShortCut (const gale::key::Special &_special, char32_t _unicodeValue, enum gale::key::keyboard _kbMove, bool _isDown)
 
virtual void grabCursor ()
 
virtual void unGrabCursor ()
 
virtual bool getGrabStatus ()
 
virtual void setCursor (enum gale::context::cursor _newCursor)
 
virtual enum gale::context::cursor getCursor ()
 
virtual bool loadXML (const exml::Element &_node) override
 
void requestUpdateSize ()
 
ewol::widget::ManagergetWidgetManager ()
 
ememory::SharedPtr< ewol::widget::WindowsgetWindows ()
 
void setAnnimationType (enum ewol::Widget::annimationMode _mode, const std::string &_type)
 
void setAnnimationTime (enum ewol::Widget::annimationMode _mode, float _time)
 
bool startAnnimation (enum ewol::Widget::annimationMode _mode)
 
bool stopAnnimation ()
 
- Public Member Functions inherited from ewol::Object
 DECLARE_FACTORY (Object)
 
virtual ~Object ()
 
bool objectHasBeenCorectlyInit ()
 
virtual void destroy ()
 
bool isDestroyed () const
 
virtual void setParent (const ewol::ObjectShared &_newParent)
 
virtual void removeParent ()
 
const char *const getObjectType () const
 
std::string getTypeDescription () const
 
bool isTypeCompatible (const std::string &_type) const
 
bool getStatic ()
 
int32_t getId ()
 
bool propertySetOnWidgetNamed (const std::string &_objectName, const std::string &_config, const std::string &_value)
 
virtual bool storeXML (exml::Element &_node) const
 
void setStatusResource (bool _val)
 
bool getStatusResource () const
 
virtual ewol::ObjectShared getSubObjectNamed (const std::string &_objectName)
 
- Public Member Functions inherited from ememory::EnableSharedFromThis< Object >
ememory::SharedPtr< EMEMORY_TYPE > sharedFromThis ()
 
const ememory::SharedPtr< EMEMORY_TYPE > sharedFromThis () const
 
ememory::WeakPtr< EMEMORY_TYPE > weakFromThis ()
 
const ememory::WeakPtr< EMEMORY_TYPE > weakFromThis () const
 

Public Attributes

esignal::Signal< std::string > signalFileSelect
 
esignal::Signal< std::string > signalFileValidate
 
esignal::Signal< std::string > signalFolderSelect
 
esignal::Signal< std::string > signalFolderValidate
 
eproperty::Value< std::string > propertyPath
 
eproperty::Value< std::string > propertyFile
 
eproperty::Value< bool > propertyShowFile
 
eproperty::Value< bool > propertyShowFolder
 
eproperty::Value< bool > propertyShowHidden
 
eproperty::Value< std::string > propertyFilter
 
- Public Attributes inherited from ewol::widget::WidgetScrolled
eproperty::Value< std::string > propertyShapeVert
 
eproperty::Value< std::string > propertyShapeHori
 
- Public Attributes inherited from ewol::Widget
eproperty::Value< gale::Dimension > propertyMinSize
 
eproperty::Value< gale::Dimension > propertyMaxSize
 
eproperty::Value< bvec2propertyExpand
 
eproperty::Value< bvec2propertyFill
 
eproperty::Value< bool > propertyHide
 
eproperty::List< enum ewol::gravitypropertyGravity
 
eproperty::Value< bool > propertyCanFocus
 
esignal::Signal< std::string > signalShortcut
 
esignal::Signal signalAnnimationStart
 
esignal::Signal< float > signalAnnimationRatio
 
esignal::Signal signalAnnimationStop
 
- Public Attributes inherited from ewol::Object
eproperty::Value< std::string > propertyName
 
- Public Attributes inherited from eproperty::Interface
eproperty::InterfaceData properties
 

Protected Member Functions

etk::Color getBasicBG () override
 
uint32_t getNuberOfColomn () override
 
bool getTitle (int32_t _colomn, std::string &_myTitle, etk::Color<> &_fg, etk::Color<> &_bg) override
 
uint32_t getNuberOfRaw () override
 
bool getElement (int32_t _colomn, int32_t _raw, std::string &_myTextToWrite, etk::Color<> &_fg, etk::Color<> &_bg) override
 
bool onItemEvent (int32_t _IdInput, enum gale::key::status _typeEvent, int32_t _colomn, int32_t _raw, float _x, float _y) override
 
void clearList ()
 
virtual void regenerateView ()
 
virtual void onChangePropertyPath ()
 
virtual void onChangePropertyFile ()
 
virtual void onChangePropertyShowFile ()
 
virtual void onChangePropertyShowFolder ()
 
virtual void onChangePropertyShowHidden ()
 
virtual void onChangePropertyFilter ()
 
- Protected Member Functions inherited from ewol::widget::List
void setRawVisible (int32_t _id)
 
void onGetFocus () override
 
void onLostFocus () override
 
void onDraw () override
 
- Protected Member Functions inherited from ewol::widget::WidgetScrolled
 WidgetScrolled ()
 
void init () override
 
void onDraw () override
 
void setScrollingSize (float _nbPixel)
 
void scroolingMode (enum scrollingMode _newMode)
 
void setMaxSize (const vec2 &_localSize)
 
void setScrollingPositionDynamic (vec2 _borderWidth, const vec2 &_currentPosition, bool _center=false)
 
void setLimitScrolling (float _poucentageLimit)
 
virtual void onChangePropertyShapeVert ()
 
virtual void onChangePropertyShapeHori ()
 
- Protected Member Functions inherited from ewol::Widget
 Widget ()
 
virtual void setKeyboardRepeate (bool _state)
 
virtual void showKeyboard ()
 
virtual void hideKeyboard ()
 
virtual bool onEventEntry (const ewol::event::Entry &_event)
 
virtual void shortCutAdd (const std::string &_descriptiveString, const std::string &_message="")
 
virtual void shortCutClean ()
 
virtual void shortCutRemove (const std::string &_message)
 
virtual void markToRedraw ()
 
virtual bool needRedraw ()
 
void addAnnimationType (enum ewol::Widget::annimationMode _mode, const char *_type)
 
virtual bool onStartAnnimation (enum ewol::Widget::annimationMode _mode)
 
virtual void onStopAnnimation ()
 
virtual void onChangePropertyCanFocus ()
 
virtual void onChangePropertyGravity ()
 
virtual void onChangePropertyHide ()
 
virtual void onChangePropertyFill ()
 
virtual void onChangePropertyExpand ()
 
virtual void onChangePropertyMaxSize ()
 
virtual void onChangePropertyMinSize ()
 
- Protected Member Functions inherited from ewol::Object
 Object ()
 
virtual void autoDestroy ()
 
virtual void requestDestroyFromChild (const ewol::ObjectShared &_child)
 
void addObjectType (const char *_type)
 

Protected Attributes

ememory::SharedPtr< ewol::resource::ColorFilem_colorProperty
 
int32_t m_colorIdText
 
int32_t m_colorIdBackground1
 
int32_t m_colorIdBackground2
 
int32_t m_colorIdBackgroundSelected
 
std::vector< etk::FSNode * > m_list
 
int32_t m_selectedLine
 
- Protected Attributes inherited from ewol::widget::WidgetScrolled
vec2 m_originScrooled
 
vec2 m_maxSize
 
float m_limitScrolling
 
- Protected Attributes inherited from ewol::Widget
vec2 m_size
 
vec2 m_minSize
 
vec2 m_maxSize
 
vec2 m_offset
 
float m_zoom
 
vec2 m_origin
 
bool m_needRegenerateDisplay
 
enum annimationMode m_annimationMode
 
float m_annimationratio
 
eproperty::List< int32_t > propertyAnnimationTypeStart
 
eproperty::Range< float > propertyAnnimationTimeStart
 
eproperty::List< int32_t > propertyAnnimationTypeStop
 
eproperty::Range< float > propertyAnnimationTimeStop
 
- Protected Attributes inherited from ewol::Object
ewol::ObjectWeak m_parent
 
bool m_destroy
 
bool m_static
 

Additional Inherited Members

- Public Types inherited from ewol::widget::WidgetScrolled
enum  scrollingMode { scroolModeNormal, scroolModeCenter, scroolModeGame }
 
- Static Public Member Functions inherited from ewol::Object
static ewol::object::ManagergetObjectManager ()
 
static ewol::ContextgetContext ()
 
static ewol::ObjectShared getObjectNamed (const std::string &_objectName)
 
- Protected Types inherited from ewol::Widget
enum  annimationMode { annimationModeEnableAdd, annimationModeEnableRemove, annimationModeDisable }
 

Detailed Description

Generic display folder class. This widget display the content of a single folder :

Member Function Documentation

§ clearList()

void ewol::widget::ListFileSystem::clearList ( )
protected

Clean the list of element.

§ getSelect()

std::string ewol::widget::ListFileSystem::getSelect ( ) const

Get the current selected file/folder/... in the list.

Returns
the String of the element selected.

§ regenerateView()

virtual void ewol::widget::ListFileSystem::regenerateView ( )
protectedvirtual

Regenerate the content of the view. this is actually not automation on the system update.

§ setSelect()

virtual void ewol::widget::ListFileSystem::setSelect ( const std::string &  _data)
virtual

Select a specific file in the path.

Parameters
[in]_dataFile to selested.

Member Data Documentation

§ m_colorIdBackground1

int32_t ewol::widget::ListFileSystem::m_colorIdBackground1
protected

Color of the Background.

§ m_colorIdBackground2

int32_t ewol::widget::ListFileSystem::m_colorIdBackground2
protected

Color of the Background 2.

§ m_colorIdBackgroundSelected

int32_t ewol::widget::ListFileSystem::m_colorIdBackgroundSelected
protected

Color of line selected.

§ m_colorIdText

int32_t ewol::widget::ListFileSystem::m_colorIdText
protected

Color of the text.

§ m_colorProperty

ememory::SharedPtr<ewol::resource::ColorFile> ewol::widget::ListFileSystem::m_colorProperty
protected

theme color property.

§ m_list

std::vector<etk::FSNode *> ewol::widget::ListFileSystem::m_list
protected

List of all element in the path. (they are filtered)

§ m_selectedLine

int32_t ewol::widget::ListFileSystem::m_selectedLine
protected

Current Line ID that is selected.

§ propertyFile

eproperty::Value<std::string> ewol::widget::ListFileSystem::propertyFile

current selected file

§ propertyFilter

eproperty::Value<std::string> ewol::widget::ListFileSystem::propertyFilter

Regular expression to filter the view (for temporary file:".*(~|.bck|.pyc)\e")

§ propertyPath

eproperty::Value<std::string> ewol::widget::ListFileSystem::propertyPath

Current folder that display point on.

§ propertyShowFile

eproperty::Value<bool> ewol::widget::ListFileSystem::propertyShowFile

Show files elements.

§ propertyShowFolder

eproperty::Value<bool> ewol::widget::ListFileSystem::propertyShowFolder

Display the folders elements.

§ propertyShowHidden

eproperty::Value<bool> ewol::widget::ListFileSystem::propertyShowHidden

Display hidden elements.

§ signalFileSelect

esignal::Signal<std::string> ewol::widget::ListFileSystem::signalFileSelect

"file-select" Generated when a file is selected.

§ signalFileValidate

esignal::Signal<std::string> ewol::widget::ListFileSystem::signalFileValidate

"file-validate" Generate when the user validate (return) or double click on the element


The documentation for this class was generated from the following file: