KineticWing for window 支持qss编辑 支持自动补全


支持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
“;
    std::cerr << “[options]
“;
    std::cerr << “ --indent-size                or -s: Indentation size. (default 4)
“;
    std::cerr << “ --indent-char                or -c: Character to indent with. (default space)
“;
    std::cerr << “ --disable-preserve-newlines  or -d: Do not preserve existing line breaks.
“;
    std::cerr << “ --indent-level               or -l: Initial indentation level you probably won‘t need this ever. (default 0)
“;
    std::cerr << “ --space-after-anon-function  or -f: Space is added between “function ()“ otherwise the common “function()“ output is used.
“;
    std::cerr << “ --braces-on-own-line         or -b: ANSI / Allman brace style each opening/closing brace gets its own line.
“;
    std::cerr << “ --keep-array-indentation     or -k: Keep array indentation.
“;
    std::cerr << “ --help                       or -h: Prints this help statement.
“;
}

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  KineticWinglibEGL.dll
     目录           0  2013-09-15 18:19  KineticWingiconengines
     文件       56832  2013-09-15 18:19  KineticWingiconenginesqsvgicon.dll
     文件      553472  2013-09-15 18:19  KineticWingQt5scriptTools.dll
     文件     4279808  2013-09-15 18:19  KineticWingQt5Core.dll
     文件     2106216  2013-09-15 18:19  KineticWingD3DCompiler_43.dll
     文件      975360  2013-09-15 18:19  KineticWingQt5CLucene.dll
     文件      273920  2013-09-15 18:19  KineticWingQt5PrintSupport.dll
     目录           0  2013-09-15 18:19  KineticWingflavours
     文件         117  2013-05-05 14:04  KineticWingflavoursconfig
     目录           0  2013-05-05 14:04  KineticWingflavoursvkBeautify
     目录           0  2013-05-05 14:04  KineticWingflavoursvkBeautifyjs
     文件         959  2013-05-05 14:04  KineticWingflavoursvkBeautifyjsinterface.js
     文件       10111  2013-05-05 14:04  KineticWingflavoursvkBeautifyjsvkbeautify.js
     文件        5610  2013-05-05 14:04  KineticWingflavoursvkBeautifyjsmain.js
     文件         132  2013-05-05 14:04  KineticWingflavoursvkBeautifyVkBeautify.qrc
     文件        5112  2013-05-05 14:04  KineticWingflavoursvkBeautifyindex.html
     文件        1142  2013-05-05 14:04  KineticWingflavoursvkBeautifyVkBeautifyInterface.cpp
     文件         785  2013-05-05 14:04  KineticWingflavoursvkBeautifyActions.Json
     文件         633  2013-05-05 14:04  KineticWingflavoursvkBeautifyVkBeautifyInterface.h
     目录           0  2013-05-05 14:04  KineticWingflavoursvkBeautifyhtml
     文件        1692  2013-05-05 14:04  KineticWingflavoursvkBeautifyhtmlasicsql.html
     文件         346  2013-05-05 14:04  KineticWingflavoursvkBeautifyhtmlcollapsewsjson.html
     文件         313  2013-05-05 14:04  KineticWingflavoursvkBeautifyhtmlcollapsews.html
     文件         336  2013-05-05 14:04  KineticWingflavoursvkBeautifyhtmlcomment.html
     文件         283  2013-05-05 14:04  KineticWingflavoursvkBeautifyhtmlalltogether.html
     文件        1279  2013-05-05 14:04  KineticWingflavoursvkBeautifyhtmlasic.html
     文件        2927  2013-05-05 14:04  KineticWingflavoursvkBeautifyhtmldoc.html
     文件         223  2013-05-05 14:04  KineticWingflavoursvkBeautifyhtmlasicjson.html
     文件         909  2013-05-05 14:04  KineticWingflavoursvkBeautifyhtmloverview.html
............此处省略137个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)