mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
.uppdev
git-svn-id: svn://ultimatepp.org/upp/trunk@6823 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
c5a5d11fb9
commit
1573cc53e5
5 changed files with 51 additions and 16 deletions
|
|
@ -17,16 +17,16 @@ and characters&]
|
||||||
[s0; &]
|
[s0; &]
|
||||||
[s0; [*@4 . , ; ! ? % ( ) / < > #]&]
|
[s0; [*@4 . , ; ! ? % ( ) / < > #]&]
|
||||||
[s0; &]
|
[s0; &]
|
||||||
[s0; and bytes [* greater] than 127 are guaranteed to be never used as
|
[s0; and bytes [* greater] than 127 are guaranteed to be never used
|
||||||
command characters (not even in future versions of QTF). Other
|
as command characters (not even in future versions of QTF). Other
|
||||||
characters should be prefixed with escape character `` (reverse
|
characters should be prefixed with escape character `` (reverse
|
||||||
apostrophe). Group of characters can be escaped using byte 1.
|
apostrophe). Group of characters can be escaped using byte 1.
|
||||||
Example:&]
|
Example:&]
|
||||||
[s0; &]
|
[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]&]
|
[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; Byte 0 represents the end of input sequence.&]
|
||||||
[s0; &]
|
[s0; &]
|
||||||
[s0; Dimension units of QTF are dots `- one dot is defined as 1/600
|
[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 LtCyan]]
|
||||||
:: [s0;%- [1 Yellow]]}}&]
|
:: [s0;%- [1 Yellow]]}}&]
|
||||||
[s0; &]
|
[s0; &]
|
||||||
|
[s0; ]]
|
||||||
|
|
@ -27,6 +27,8 @@ struct MyApp : TopWindow {
|
||||||
|
|
||||||
Image MyApp::CursorImage(Point p, dword keyflags)
|
Image MyApp::CursorImage(Point p, dword keyflags)
|
||||||
{
|
{
|
||||||
|
return Image::Arrow();
|
||||||
|
|
||||||
static Image img;
|
static Image img;
|
||||||
ONCELOCK {
|
ONCELOCK {
|
||||||
SImageDraw w(64, 64);
|
SImageDraw w(64, 64);
|
||||||
|
|
|
||||||
32
uppdev/UnZip/UnZip.cpp
Normal file
32
uppdev/UnZip/UnZip.cpp
Normal 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());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
uses
|
uses
|
||||||
Core,
|
Core,
|
||||||
plugin\zip;
|
plugin/zip;
|
||||||
|
|
||||||
file
|
file
|
||||||
main.cpp;
|
UnZip.cpp;
|
||||||
|
|
||||||
mainconfig
|
mainconfig
|
||||||
"" = "";
|
"" = "SSE2";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#ifndef _UnZip_icpp_init_stub
|
#ifndef _UnZip_icpp_init_stub
|
||||||
#define _UnZip_icpp_init_stub
|
#define _UnZip_icpp_init_stub
|
||||||
#include "Core/init"
|
#include "Core/init"
|
||||||
#include "plugin\zip/init"
|
#include "plugin/zip/init"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue