[DEV] reorder the list of files

This commit is contained in:
Edouard DUPIN 2012-11-08 22:40:17 +01:00
parent f2b754ddb7
commit 14f878bdd2
3 changed files with 14 additions and 16 deletions

View File

@ -352,11 +352,9 @@ static etk::UString SimplifyPathAbstractPath(etk::UString input)
}
static void SortElementList(etk::Vector<etk::FSNode *> &list)
void etk::FSNode::SortElementList(etk::Vector<etk::FSNode *> &list)
{
// TODO : ...
/*
etk::Vector<ewol::FSNode *> tmpList = list;
etk::Vector<etk::FSNode *> tmpList = list;
list.Clear();
for(int32_t iii=0; iii<tmpList.Size(); iii++) {
if (NULL != tmpList[iii]) {
@ -364,7 +362,7 @@ static void SortElementList(etk::Vector<etk::FSNode *> &list)
for(int32_t jjj=0; jjj<list.Size(); jjj++) {
//EWOL_DEBUG("compare : \""<<*tmpList[iii] << "\" and \"" << *m_listDirectory[jjj] << "\"");
if (list[jjj]!=NULL) {
if (tmpList[iii]->m_name > list[jjj]->m_name) {
if (tmpList[iii]->GetNameFile() > list[jjj]->GetNameFile()) {
findPos = jjj+1;
}
}
@ -373,7 +371,6 @@ static void SortElementList(etk::Vector<etk::FSNode *> &list)
list.Insert(findPos, tmpList[iii]);
}
}
*/
}

View File

@ -217,7 +217,8 @@ namespace etk
int32_t FileRead(void * data, int32_t blockSize, int32_t nbBlock);
int32_t FileWrite(void * data, int32_t blockSize, int32_t nbBlock);
bool FileSeek(long int offset, int origin);
private:
void SortElementList(etk::Vector<etk::FSNode *> &list);
};
etk::CCout& operator <<(etk::CCout &os, const etk::FSNode &obj);

View File

@ -82,17 +82,17 @@ namespace ewol {
private:
#ifdef __VIDEO__OPENGL_ES_2
// External theme config:
ewol::SimpleConfigFile* m_config;
int32_t m_confIdPaddingX;
int32_t m_confIdPaddingY;
int32_t m_confIdChangeTime;
ewol::SimpleConfigFile* m_config;
int32_t m_confIdPaddingX;
int32_t m_confIdPaddingY;
int32_t m_confIdChangeTime;
// OpenGL shaders programs:
ewol::Program* m_GLprogram;
int32_t m_GLPosition;
int32_t m_GLMatrix;
ewol::Program* m_GLprogram;
int32_t m_GLPosition;
int32_t m_GLMatrix;
// widget property
ewol::GLWidgetPosProperty m_GLwidgetProperty; // id of the uniform
ewol::WidgetPosProperty m_widgetProperty; // structure of this uniform
ewol::GLWidgetPosProperty m_GLwidgetProperty; // id of the uniform
ewol::WidgetPosProperty m_widgetProperty; // structure of this uniform
// state property
ewol::GLWidgetStateProperty m_GLstatus;
ewol::WidgetStateProperty m_status;