ultimatepp/uppdev/FileSel/main.cpp
cxl 8282376b90 .uppdev
git-svn-id: svn://ultimatepp.org/upp/trunk@6706 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2013-12-31 16:19:41 +00:00

29 lines
434 B
C++

#include <CtrlLib/CtrlLib.h>
using namespace Upp;
GUI_APP_MAIN
{
SetDefaultCharset(CHARSET_UTF8);
FileSel fs;
String fn;
fs.Type("jpeg", "*.jpg");
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);
}
}