git-svn-id: svn://ultimatepp.org/upp/trunk@6823 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-01-27 19:25:25 +00:00
parent c5a5d11fb9
commit 1573cc53e5
5 changed files with 51 additions and 16 deletions

View file

@ -17,16 +17,16 @@ and characters&]
[s0; &]
[s0; [*@4 . , ; ! ? % ( ) / < > #]&]
[s0; &]
[s0; and bytes [* greater] than 127 are guaranteed to be never used as
command characters (not even in future versions of QTF). Other
[s0; and bytes [* greater] than 127 are guaranteed to be never used
as command characters (not even in future versions of QTF). Other
characters should be prefixed with escape character `` (reverse
apostrophe). Group of characters can be escaped using byte 1.
Example:&]
[s0; &]
[s1; `\"`\1a`[x`]`\1`[`* bold`]`\"&]
[s1; `\`"`\1a`[x`]`\1`[`* bold`]`\`"&]
[s0; Normal [* Bold] [/ Italic] [*/ Bold Italic] [_ Underline] [- Stroked]&]
[s0; Normal [* Bold] [/ Italic] [*/ Bold Italic] [_ Underline] [- Stroked]&]
[s0; Normal [* Bold] [/ Italic] [*/ Bold Italic] [_ Underline] [- Stroked]&]
[Rs0; Normal [* Bold] [/ Italic] [*/ Bold Italic] [_ Underline] [- Stroked]&]
[Cs0; Normal [* Bold] [/ Italic] [*/ Bold Italic] [_ Underline] [- Stroked]&]
[s0; Byte 0 represents the end of input sequence.&]
[s0; &]
[s0; Dimension units of QTF are dots `- one dot is defined as 1/600
@ -66,3 +66,4 @@ with meaning&]
:: [s0;%- [1 LtCyan]]
:: [s0;%- [1 Yellow]]}}&]
[s0; &]
[s0; ]]

View file

@ -27,6 +27,8 @@ struct MyApp : TopWindow {
Image MyApp::CursorImage(Point p, dword keyflags)
{
return Image::Arrow();
static Image img;
ONCELOCK {
SImageDraw w(64, 64);

32
uppdev/UnZip/UnZip.cpp Normal file
View file

@ -0,0 +1,32 @@
#include <Core/Core.h>
#include <plugin/zip/zip.h>
using namespace Upp;
CONSOLE_APP_MAIN
{
StdLogSetup(LOG_COUT|LOG_FILE);
FileIn in("/home/cxl/test.zip");
UnZip unzip(in);
for(int i = 0; i < unzip.GetCount(); i++)
DDUMP(unzip.GetPath(i));
String outdir = GetHomeDirFile("zipout.tst");
DeleteFolderDeep(outdir);
while(unzip) {
String path = AppendFileName(outdir, unzip.GetPath());
DDUMP(path);
if(unzip.IsFolder()) {
RealizeDirectory(path);
unzip.Skip();
}
else {
RealizePath(path);
SaveFile(path, unzip.ReadFile());
}
}
}

View file

@ -1,10 +1,10 @@
uses
Core,
plugin\zip;
file
main.cpp;
mainconfig
"" = "";
uses
Core,
plugin/zip;
file
UnZip.cpp;
mainconfig
"" = "SSE2";

View file

@ -1,5 +1,5 @@
#ifndef _UnZip_icpp_init_stub
#define _UnZip_icpp_init_stub
#include "Core/init"
#include "plugin\zip/init"
#include "plugin/zip/init"
#endif