added: Export plugin (not finished yet)
added: ThreadManager
all threads are connected to the ThreadManager
they are started/stopped by the manager
changed: FunctionParser
now we are parsing directly what is in URI
(we were using GetParser beforehand)
we are able to recognize ordinary URI scheme (with '?' and '#' characters)
sample:
http://domain.com/dir1/dir2/item/function?par1=val2&par2=val2#htmlanchor
is the same as:
http://domain.com/dir1/dir2/item/function/par1:val2/par2:val2#htmlanchor
'htmlanchor' is put in Request::anchor field,
and the default function can be used like this:
http://domain.com/dir1/dir2/item?par1=val2&par2=val2#htmlanchor
but there is not an equivalent in winix form
e.g. http://domain.com/dir1/dir2/item/par1:val2/par2:val2#htmlanchor
because 'par1:val2' would be treated as a function name
removed: GetParser
now we don't have Request::get_tab structure
removed: CKEditorGetParser
it is not needed now
git-svn-id: svn://ttmath.org/publicrep/winix/trunk@752 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -923,6 +923,15 @@ int SelectFileType(const wchar_t * file_name)
|
||||
EqualNoCase(ext, L"odt") )
|
||||
return WINIX_ITEM_FILETYPE_DOCUMENT;
|
||||
|
||||
if( EqualNoCase(ext, L"avi") ||
|
||||
EqualNoCase(ext, L"mp4") ||
|
||||
EqualNoCase(ext, L"flv") ||
|
||||
EqualNoCase(ext, L"mpg") ||
|
||||
EqualNoCase(ext, L"mpeg") ||
|
||||
EqualNoCase(ext, L"mkv") ||
|
||||
EqualNoCase(ext, L"wmv") )
|
||||
return WINIX_ITEM_FILETYPE_VIDEO;
|
||||
|
||||
return WINIX_ITEM_FILETYPE_UNKNOWN;
|
||||
}
|
||||
|
||||
@@ -987,6 +996,7 @@ char buffer[10];
|
||||
if( clear_out )
|
||||
out.clear();
|
||||
|
||||
// !! we should not use such characters here: '/' '#'
|
||||
for(size_t i=0 ; i<in.size() ; ++i)
|
||||
{
|
||||
if( (in[i] >= 'a' && in[i] <= 'z') ||
|
||||
@@ -1003,7 +1013,7 @@ char buffer[10];
|
||||
out += '%';
|
||||
|
||||
if( buffer[1] == 0 )
|
||||
out += '0'; // there is only one characters in the buffer
|
||||
out += '0'; // there is only one character in the buffer
|
||||
|
||||
out += buffer;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user