From 6a4d7a10f6f57d312d9a1ce15121a2d58b28efd2 Mon Sep 17 00:00:00 2001 From: cxl Date: Mon, 22 Feb 2016 09:52:59 +0000 Subject: [PATCH] .upptst git-svn-id: svn://ultimatepp.org/upp/trunk@9514 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- upptst/Assist/main.cpp | 12 ++++++++- upptst/SysPathInfo/SysPathInfo.cpp | 39 ++++++++++++++++++++++++++++++ upptst/SysPathInfo/SysPathInfo.upp | 9 +++++++ upptst/SysPathInfo/init | 4 +++ 4 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 upptst/SysPathInfo/SysPathInfo.cpp create mode 100644 upptst/SysPathInfo/SysPathInfo.upp create mode 100644 upptst/SysPathInfo/init diff --git a/upptst/Assist/main.cpp b/upptst/Assist/main.cpp index f9a1d3755..72673c1a3 100644 --- a/upptst/Assist/main.cpp +++ b/upptst/Assist/main.cpp @@ -78,6 +78,16 @@ void Autocomplete() x.SetFilter(Char } +void Autocomplete() +{ + Vector:: +} + +void Autocomplete() +{ + for(int i = 0; i < Font:: +} + void Autocomplete() { Point p; @@ -255,7 +265,7 @@ void Autocomplete() { VectorMap m; auto i = m.KeyBegin(); - i. + i-> } void Autocomplete() diff --git a/upptst/SysPathInfo/SysPathInfo.cpp b/upptst/SysPathInfo/SysPathInfo.cpp new file mode 100644 index 000000000..80b591959 --- /dev/null +++ b/upptst/SysPathInfo/SysPathInfo.cpp @@ -0,0 +1,39 @@ +#include + +using namespace Upp; + +CONSOLE_APP_MAIN +{ + DUMP(GetWindowsDirectory()); + DUMP(GetModuleFileName(LoadLibrary("kernel32"))); + DUMP(GetTempPath()); + DUMP(GetCurrentDirectory()); + + DUMP(GetComputerName()); + DUMP(GetUserName()); + DUMP(GetDesktopManager()); + + DUMP(GetDesktopFolder()); + DUMP(GetProgramsFolder()); +#ifdef PLATFORM_WIN32 + DUMP(GetProgramsFolderX86()); +#endif + DUMP(GetAppDataFolder()); + DUMP(GetMusicFolder()); + DUMP(GetPicturesFolder()); + DUMP(GetVideoFolder()); + DUMP(GetDocumentsFolder()); + DUMP(GetTemplatesFolder()); + DUMP(GetDownloadFolder()); + + String h = GetExeFilePath(); + + SetCurrentDirectory(GetFileFolder(h)); + DUMP(GetFullPath(GetFileName(h))); + + for(FindFile ff(GetFileFolder(h) + "/*.*"); ff; ff.Next()) { + DUMP(ff.GetPath()); + DUMP(ff.GetLength()); + DUMP(ff.IsFolder()); + } +} diff --git a/upptst/SysPathInfo/SysPathInfo.upp b/upptst/SysPathInfo/SysPathInfo.upp new file mode 100644 index 000000000..f468bfbbc --- /dev/null +++ b/upptst/SysPathInfo/SysPathInfo.upp @@ -0,0 +1,9 @@ +uses + Core; + +file + SysPathInfo.cpp; + +mainconfig + "" = ""; + diff --git a/upptst/SysPathInfo/init b/upptst/SysPathInfo/init new file mode 100644 index 000000000..e325c5865 --- /dev/null +++ b/upptst/SysPathInfo/init @@ -0,0 +1,4 @@ +#ifndef _SysPathInfo_icpp_init_stub +#define _SysPathInfo_icpp_init_stub +#include "Core/init" +#endif