ultimatepp/uppdev/FileSel/main.cpp
cxl 93bd395088 .uppdev
git-svn-id: svn://ultimatepp.org/upp/trunk@2190 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2010-03-08 00:03:07 +00:00

31 lines
819 B
C++

#include <CtrlLib/CtrlLib.h>
using namespace Upp;
GUI_APP_MAIN
{
DUMP(StdFont().Info().GetHeight());
DUMP(StdFont().Info().GetDescent());
DUMP(StdFont().Bold().Info().GetHeight());
DUMP(StdFont().Bold().Info().GetDescent());
SetDefaultCharset(CHARSET_UTF8);
FileSel fs;
String fn;
fs.AllFilesType()
.Type( t_("archive FIDE (txt)"), "*.txt") //type 1
.Type( t_("archive VEG (csv)"), "*.csv;*.veg") //type 2
.Type( t_("national archive with Fixed Length (txt)"), "*.txt") //type 3
.Type( t_("archive FSI Italy (csv)"), "*.csv"); //type 4
fs.DefaultExt("hhh");
// fs.NoMkDirOption();
fs.Multi();
// fs.ActiveDir("/usr/include");
// fs.NoEditFileName();
// fs.PreSelect("U:/file1.txt");
for(;;) {
if(!fs.ExecuteSaveAs())
break;
PromptOK(DeQtf(~fs));
}
}