ultimatepp/uppdev/FileSel/main.cpp
cxl d38f130c4f .uppdev
git-svn-id: svn://ultimatepp.org/upp/trunk@8275 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2015-03-17 07:58:45 +00:00

33 lines
488 B
C++

#include <CtrlLib/CtrlLib.h>
using namespace Upp;
GUI_APP_MAIN
{
SetDefaultCharset(CHARSET_UTF8);
FileSel fs;
String fn;
fs.AllFilesType();
fs.Type("jpeg", "*.jpg");
fs.ExecuteOpen();
return;
for(;0;) {
if(!fs.ExecuteSaveAs())
break;
PromptOK(DeQtf(~fs));
}
fs.Multi();
for(;;) {
if(!fs.ExecuteOpen())
break;
String h;
for(int i = 0; i < fs.GetCount(); i++) {
if(i)
h << '&';
h << fs[i];
}
PromptOK(h);
}
}