-
大小: 25.13MB文件类型: .zip金币: 1下载: 0 次发布日期: 2023-07-15
- 语言: 其他
- 标签:
资源简介
支持qss编辑 支持自动补全 跨平台 支持linux window mac
代码片段和文件信息
/*
Copyright (c) 2010 Ariya Hidayat
Copyright (c) 2009 Einar Lielmanis
Copyright (c) 2010 Nicolas Ferrero
Permission is hereby granted free of charge to any person
obtaining a copy of this software and associated documentation
files (the “Software“) to deal in the Software without
restriction including without limitation the rights to use
copy modify merge publish distribute sublicense and/or sell
copies of the Software and to permit persons to whom the
Software is furnished to do so subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS“ WITHOUT WARRANTY OF ANY KIND
EXPRESS OR IMPLIED INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM DAMAGES OR OTHER LIABILITY
WHETHER IN AN ACTION OF CONTRACT TORT OR OTHERWISE ARISING
FROM OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
*/
#include ript>
#include
static QString readFile(const QString &fileName)
{
QFile file;
file.setFileName(fileName);
if (!file.open(QFile::ReadOnly)) {
return QString();
}
QString content = file.readAll();
file.close();
return content;
}
static void usage(char *progname)
{
std::cerr << “Usage: “ << progname << “ [options] source-file\n“;
std::cerr << “[options]\n“;
std::cerr << “ --indent-size or -s: Indentation size. (default 4)\n“;
std::cerr << “ --indent-char or -c: Character to indent with. (default space)\n“;
std::cerr << “ --disable-preserve-newlines or -d: Do not preserve existing line breaks.\n“;
std::cerr << “ --indent-level or -l: Initial indentation level you probably won‘t need this ever. (default 0)\n“;
std::cerr << “ --space-after-anon-function or -f: Space is added between \“function ()\“ otherwise the common \“function()\“ output is used.\n“;
std::cerr << “ --braces-on-own-line or -b: ANSI / Allman brace style each opening/closing brace gets its own line.\n“;
std::cerr << “ --keep-array-indentation or -k: Keep array indentation.\n“;
std::cerr << “ --help or -h: Prints this help statement.\n“;
}
int main(int argc char **argv)
{
QCoreApplication app(argc argv);
QscriptEngine engine;
QscriptValue options = engine.newobject();
QString source;
for (int argpos = 1; argpos < app.argc(); ++argpos) {
if (app.argv()[argpos][0] != ‘-‘) {
source = readFile(QString::fromLocal8Bit(app.argv()[argpos]));
} else if (strcmp(app.argv()[argpos] “--indent-si
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2013-09-15 18:19 KineticWing\
文件 99328 2013-09-15 18:19 KineticWing\libEGL.dll
目录 0 2013-09-15 18:19 KineticWing\iconengines\
文件 56832 2013-09-15 18:19 KineticWing\iconengines\qsvgicon.dll
文件 553472 2013-09-15 18:19 KineticWing\Qt5sc
文件 4279808 2013-09-15 18:19 KineticWing\Qt5Core.dll
文件 2106216 2013-09-15 18:19 KineticWing\D3DCompiler_43.dll
文件 975360 2013-09-15 18:19 KineticWing\Qt5CLucene.dll
文件 273920 2013-09-15 18:19 KineticWing\Qt5PrintSupport.dll
目录 0 2013-09-15 18:19 KineticWing\flavours\
文件 117 2013-05-05 14:04 KineticWing\flavours\config
目录 0 2013-05-05 14:04 KineticWing\flavours\vkBeautify\
目录 0 2013-05-05 14:04 KineticWing\flavours\vkBeautify\js\
文件 959 2013-05-05 14:04 KineticWing\flavours\vkBeautify\js\interface.js
文件 10111 2013-05-05 14:04 KineticWing\flavours\vkBeautify\js\vkbeautify.js
文件 5610 2013-05-05 14:04 KineticWing\flavours\vkBeautify\js\main.js
文件 132 2013-05-05 14:04 KineticWing\flavours\vkBeautify\VkBeautify.qrc
文件 5112 2013-05-05 14:04 KineticWing\flavours\vkBeautify\index.html
文件 1142 2013-05-05 14:04 KineticWing\flavours\vkBeautify\VkBeautifyInterface.cpp
文件 785 2013-05-05 14:04 KineticWing\flavours\vkBeautify\Actions.Json
文件 633 2013-05-05 14:04 KineticWing\flavours\vkBeautify\VkBeautifyInterface.h
目录 0 2013-05-05 14:04 KineticWing\flavours\vkBeautify\html\
文件 1692 2013-05-05 14:04 KineticWing\flavours\vkBeautify\html\basicsql.html
文件 346 2013-05-05 14:04 KineticWing\flavours\vkBeautify\html\collapsewsjson.html
文件 313 2013-05-05 14:04 KineticWing\flavours\vkBeautify\html\collapsews.html
文件 336 2013-05-05 14:04 KineticWing\flavours\vkBeautify\html\comment.html
文件 283 2013-05-05 14:04 KineticWing\flavours\vkBeautify\html\alltogether.html
文件 1279 2013-05-05 14:04 KineticWing\flavours\vkBeautify\html\basic.html
文件 2927 2013-05-05 14:04 KineticWing\flavours\vkBeautify\html\doc.html
文件 223 2013-05-05 14:04 KineticWing\flavours\vkBeautify\html\basicjson.html
文件 909 2013-05-05 14:04 KineticWing\flavours\vkBeautify\html\overview.html
............此处省略137个文件信息
评论
共有 条评论