update
This commit is contained in:
parent
8806c99613
commit
92b55c43f6
83
data/GUI-Search.egi
Normal file
83
data/GUI-Search.egi
Normal file
@ -0,0 +1,83 @@
|
||||
sizer {
|
||||
mode: "hori"
|
||||
expand: "true,false"
|
||||
fill: true
|
||||
lock: true
|
||||
button {
|
||||
name: "[{ID}]SEARCH:close"
|
||||
image {
|
||||
src: "THEME_GUI:///Remove.svg"
|
||||
fill: true
|
||||
size: "7,7mm"
|
||||
hover: "_T(Close search bar)"
|
||||
}
|
||||
}
|
||||
entry {
|
||||
name: "[{ID}]SEARCH:search-entry"
|
||||
expand: true
|
||||
fill: true
|
||||
}
|
||||
button {
|
||||
name: "[{ID}]SEARCH:search"
|
||||
image {
|
||||
src: "THEME_GUI:///Search.svg"
|
||||
fill: true
|
||||
size: "7,7mm"
|
||||
}
|
||||
}
|
||||
entry {
|
||||
name: "[{ID}]SEARCH:replace-entry"
|
||||
expand: true
|
||||
fill: true
|
||||
}
|
||||
button {
|
||||
name: "[{ID}]SEARCH:replace"
|
||||
image {
|
||||
src: "THEME_GUI:///Replace.svg?lib=ewol"
|
||||
fill: true
|
||||
size: "7,7mm"
|
||||
}
|
||||
}
|
||||
button {
|
||||
name: "[{ID}]SEARCH:case"
|
||||
toggle: true
|
||||
image {
|
||||
src: "THEME_GUI:///CaseSensitive.svg?lib=ewol"
|
||||
fill: true
|
||||
size: "7,7mm"
|
||||
}
|
||||
image {
|
||||
src: "THEME_GUI:///CaseSensitive.svg?lib=ewol"
|
||||
fill: true
|
||||
size: "7,7mm"
|
||||
}
|
||||
}
|
||||
button {
|
||||
name: "[{ID}]SEARCH:wrap"
|
||||
toggle: true
|
||||
image {
|
||||
src: "THEME_GUI:///WrapAround.svg?lib=ewol"
|
||||
fill: true
|
||||
size: "7,7mm"
|
||||
}
|
||||
image {
|
||||
src: "THEME_GUI:///WrapAround.svg?lib=ewol"
|
||||
fill: true
|
||||
size: "7,7mm"
|
||||
}
|
||||
}
|
||||
button {
|
||||
name: "[{ID}]SEARCH:up-down"
|
||||
toggle: true
|
||||
image {
|
||||
src: "THEME_GUI:///Up.svg?lib=ewol"
|
||||
fill: true
|
||||
size: "7,7mm"
|
||||
}
|
||||
image {
|
||||
src: "THEME_GUI:///Down.svg?lib=ewol"
|
||||
fill: true
|
||||
size: "7,7mm"
|
||||
}
|
||||
}
|
||||
}
|
@ -6,6 +6,7 @@
|
||||
#include <etk/types.hpp>
|
||||
#include <etk/stdTools.hpp>
|
||||
#include <etk/system.hpp>
|
||||
#include <etk/Vector.hpp>
|
||||
#include <etk/path/fileSystem.hpp>
|
||||
|
||||
#include <appl/Buffer.hpp>
|
||||
@ -171,7 +172,7 @@ bool appl::Buffer::storeFile() {
|
||||
if (m_data.dumpIn(m_fileName) == true) {
|
||||
APPL_INFO("saving file : " << m_fileName);
|
||||
etk::String extention = m_fileName.getExtention();
|
||||
if (etk::isIn(extention, {"cpp", "hpp", "h", "hpp"}) {
|
||||
if (etk::isIn(extention, etk::Vector<etk::String>{"cpp", "hpp", "h", "hpp"})) {
|
||||
etk::Path clangFile = etk::path::findInParent(m_fileName, ".clang-format");
|
||||
if (etk::path::isFile(clangFile) == true) {
|
||||
etk::String output = etk::exec("clang-format " + m_fileName.getAbsolute());// + " -assume-filename=" + clangFile.getAbsolute() + "
|
||||
@ -190,7 +191,7 @@ bool appl::Buffer::storeFile() {
|
||||
APPL_ERROR(" ==> data is differents");
|
||||
m_fileIsModify = true;
|
||||
setModification(true);
|
||||
signalFileIsModify();
|
||||
signalFileIsModify.emit();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user