Exemplo n.º 1
0
bool DebuggerEngineLibrary::init(const QString &path,
                                 QString *dbgEngDLL,
                                 QString *errorMessage)
{
    // Load the dependent help lib first
    const QString helpLibPath = libPath(QLatin1String(dbgHelpDllC), path);
    QLibrary helpLib(helpLibPath, 0);
    if (!helpLib.isLoaded() && !helpLib.load()) {
        *errorMessage = msgLibLoadFailed(helpLibPath, helpLib.errorString());
        return false;
    }
    // Load dbgeng lib
    const QString engineLibPath = libPath(QLatin1String(dbgEngineDllC), path);
    QLibrary lib(engineLibPath, 0);
    if (!lib.isLoaded() && !lib.load()) {
        *errorMessage = msgLibLoadFailed(engineLibPath, lib.errorString());
        return false;
    }
    *dbgEngDLL = engineLibPath;
    // Locate symbols
    void *createFunc = lib.resolve(debugCreateFuncC);
    if (!createFunc) {
        *errorMessage = QCoreApplication::translate("Debugger::Cdb", "Unable to resolve '%1' in the debugger engine library '%2'").
                        arg(QLatin1String(debugCreateFuncC), QLatin1String(dbgEngineDllC));
        return false;
    }
    m_debugCreate = static_cast<DebugCreateFunction>(createFunc);
    return true;
}
Exemplo n.º 2
0
QString AboutDialog::aboutPage()
{
    return
        "<html>"

        // CSS
        "<head><style type=\"text/css\">"
        "body{font-size:10pt;background:white;color:#333;margin:1.5em}"
        "p, li{white-space:pre-wrap;margin-left:1ex}"
        "a{text-decoration:none}"
        ".h1{font-size:26pt;color:#666;white-space:pre}"
        ".h1x{font-size:16pt;color:#888;white-space:pre}"
        ".h2{width:100%;font-size:16pt;margin-left:1ex;margin-top:0.2em}"
        ".h2x{font-size:12pt}"
        ".h3{font-size:9pt;color:#666}"
        ".links td{padding:0}"
        ".link{font-size:9pt}"
        ".pp{margin-left:4ex}"
        ".ppp{margin-left:4ex;font-size:9pt}"
        "table{border:0}"
        ".odd {background:#def}"
        "td{padding:0.1em}"
        "#keys{margin-left:4ex}"
        ".key{font-family:monospace;font-size:9pt;padding-left:0.5em}"
        ".logo{float:left}"
        ".info{font-size:9pt}"
        "</style></head>"

        "<body>"

        // logo
        "<img class='logo' src=':/images/logo.png' />"

        // title
        "<div class='h1'>CopyQ</div>"
        // subtitle
        "<div class=\"h1x\">" + escapeHtml(tr("Clipboard Manager"))
            + " " COPYQ_VERSION "</div>"

        "<p>"
        "<table class='links'>"
            + helpLink( tr("Author"), QString::fromUtf8("Lukáš Holeček") )
            + helpLink( tr("E-mail"), helpMail("*****@*****.**") )
            + helpLink( tr("Web"), helpUrl("https://hluk.github.io/CopyQ/") )
            + helpLink( tr("Wiki"), helpUrl("https://github.com/hluk/CopyQ/wiki") )
            + helpLink( tr("Donate"), helpUrl("https://www.bountysource.com/teams/copyq") )
            +
        "</table>"
        "</p>"

        // copyright
        "<p class='info'>Copyright (c) 2009 - 2016</p>"

        "<p></p>"

        + helpTitle(tr("Development"))
        + "<p class=\"pp\">"
            // developers
            + helpDeveloper("Adam Batkin", "*****@*****.**")
            + helpDeveloper("Giacomo Margarito", "*****@*****.**")
            + helpDeveloper("Greg Carp", "*****@*****.**")
            + helpDeveloper("Ilya Plenne", "*****@*****.**")
            + helpDeveloper("Jörg Thalheim", "*****@*****.**")
            + helpDeveloper("Kim Jzhone", "*****@*****.**")
            + helpDeveloper("Kos Ivantsov", "*****@*****.**")
            + helpDeveloper("lightonflux", "*****@*****.**")
            + helpDeveloper("Lukas Holecek", "*****@*****.**")
            + helpDeveloper("Marjolein Hoekstra", "http://twitter.com/cleverclogs")
            + helpDeveloper("Martin Lepadusch", "*****@*****.**")
            + helpDeveloper("Matt d'Entremont", "*****@*****.**")
            + helpDeveloper("Michal Čihař", "*****@*****.**")
            + helpDeveloper("Patricio M. Ros", "*****@*****.**")
            + helpDeveloper("Ryan Wooden", "*****@*****.**")
            + helpDeveloper("Scott Kostyshak", "*****@*****.**")
            + helpDeveloper("Sebastian Schuberth", "*****@*****.**")
            + helpDeveloper("Tomas Nilzon", "*****@*****.**")
            + helpDeveloper("Wilfried Caruel", "*****@*****.**")
            + helpDeveloper("x2357", "*****@*****.**")
            +
        "</p>"

            // libraries
            + helpLib("Qt", tr("Library used in the application", "Qt library description"),
                      "Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies)", "https://www.qt.io/")
            + helpLib("Weblate", tr("Free web-based translation management system", "Weblate description"),
                      "Copyright (c) 2012 - 2013 Michal &#268;iha&#345;", "https://weblate.org")
            + helpLib("Font Awesome", tr("Iconic font used in the application", "Font Awesome description"),
                      "Created & Maintained by Dave Gandy", "https://fortawesome.github.io/Font-Awesome/")
            + helpLib("LibQxt", tr("Library used in the application", "LibQxt library description"),
                      "Copyright (c) 2006 - 2011, the LibQxt project", "http://libqxt.org")
            + helpLib("Solarized", tr("Color palette used for themes", "Solarized palette/themes description"),
                      "Copyright (c) 2011 Ethan Schoonover", "http://ethanschoonover.com/solarized")

        // keyboard title
        + helpTitle(tr("Keyboard"))

        + helpParagraph(tr("Application shortcuts can be changed in Preferences dialog."))

#ifndef NO_GLOBAL_SHORTCUTS
        + helpParagraph(tr("Global shortcuts (system-wide shortcuts) can be set in Command dialog (default shortcut is F6)."))
#endif

        + helpParagraph(tr("Type any text to search the clipboard history."))

        // keyboard table
        + "<p><table id=\"keys\">"
            + helpKeys( tr("Item list navigation"), tr("Up/Down, Page Up/Down, Home/End") )
            + helpKeys( tr("Tab navigation"),
                        tr("Left, Right, %1, %2", "Keys for tab navigation (%1, %2 are the standard keys).")
                        .arg(QKeySequence(QKeySequence::NextChild).toString(QKeySequence::NativeText))
                        .arg(QKeySequence(QKeySequence::PreviousChild).toString(QKeySequence::NativeText))
                        )
            + helpKeys( tr("Move selected items"), tr("Ctrl+Up/Down, Ctrl+Home/End") )
            + helpKeys( tr("Reset search or hide window"), tr("Escape") )
            + helpKeys( tr("Delete item"), shortcutToRemove() )
            + helpKeys( tr("Put selected items into clipboard"), tr("Enter") )
            + helpKeys( tr("Change item display format"), tr("Ctrl+Left/Right") )
            + helpKeys( tr("Edit Item"), tr("F2") )
            +
        "</table></p>"

        + "<p></p>"

        "</body></html>";
}
Exemplo n.º 3
0
QString AboutDialog::aboutPage()
{
    return
        "<html>"

        "<head><style type='text/css'>"
        "body{font-size:10pt;background:white;color:#333;margin:1.0em}"
        "p,li{margin-left:4ex;white-space:pre-wrap;margin-left:1ex}"
        "a{text-decoration:none}"
        "table{border:0}"
        "td{padding:0.1em}"
        "#title{font-size:26pt;color:#666;white-space:pre;margin-bottom:0.2em}"
        "#subtitle{font-size:16pt;color:#888;white-space:pre;margin-bottom:0.2em}"
        "#version{font-size:12pt}"
        ".copyright{font-size:9pt;color:#666}"
        ".icon{font-family:" + iconFontFamily() + "}"
        ".help-icon{color:#999;padding-left:1em;padding-right:1em}"
        ".library{font-size:12pt}"
        ".info{color:#666}"
        "</style></head>"

        "<body>"

        "<table><tr valign='middle'>"
        "<td><img src=':/images/logo.png' width='128' /></td>"
        "<td>"
        "<div id='title'>CopyQ</div>"
        "<div id='subtitle'>" + escapeHtml(tr("Clipboard Manager")) + "</div>"
        "<div id='version'>" + COPYQ_VERSION "</div>"
        "</td>"
        "</tr></table>"

        "<p>"
        "<table class='links'>"
            + helpLink( tr("Author"), QString::fromUtf8("Lukáš Holeček"), IconUser )
            + helpLink( tr("E-mail"), helpMail("*****@*****.**"), IconEnvelope )
            + helpLink( tr("Web"), helpUrl("https://hluk.github.io/CopyQ/"), IconHome )
            + helpLink( tr("Donate"), helpUrl("https://www.bountysource.com/teams/copyq"), IconGift )
            +
        "</table>"
        "</p>"

        "<p class='copyright'>Copyright (c) 2009 - 2019</p>"

        "<p></p>"

        + "<p>"
            + helpDeveloper("Adam Batkin", "*****@*****.**")
            + helpDeveloper("Giacomo Margarito", "*****@*****.**")
            + helpDeveloper("Greg Carp", "*****@*****.**")
            + helpDeveloper("Ilya Plenne", "*****@*****.**")
            + helpDeveloper("Jörg Thalheim", "*****@*****.**")
            + helpDeveloper("Kim Jzhone", "*****@*****.**")
            + helpDeveloper("Kos Ivantsov", "*****@*****.**")
            + helpDeveloper("lightonflux", "*****@*****.**")
            + helpDeveloper("Lukas Holecek", "*****@*****.**")
            + helpDeveloper("Marjolein Hoekstra", "http://twitter.com/cleverclogs")
            + helpDeveloper("Martin Lepadusch", "*****@*****.**")
            + helpDeveloper("Matt d'Entremont", "*****@*****.**")
            + helpDeveloper("Michal Čihař", "*****@*****.**")
            + helpDeveloper("Patricio M. Ros", "*****@*****.**")
            + helpDeveloper("Robert Orzanna", "*****@*****.**")
            + helpDeveloper("Ryan Wooden", "*****@*****.**")
            + helpDeveloper("Scott Kostyshak", "*****@*****.**")
            + helpDeveloper("Sebastian Schuberth", "*****@*****.**")
            + helpDeveloper("Tomas Nilzon", "*****@*****.**")
            + helpDeveloper("Wilfried Caruel", "*****@*****.**")
            + helpDeveloper("x2357", "*****@*****.**")
            +
        "</p>"

            + helpLib("Qt Toolkit",
                      "Copyright (c) 2016 The Qt Company Ltd. and other contributors", "https://www.qt.io/")
            + helpLib("Weblate",
                      "Copyright (c) 2012 - 2017 Michal &#268;iha&#345;", "https://weblate.org")
            + helpLib("Font Awesome",
                      "Copyright (c) 2017 Fonticons, Inc.", "https://fontawesome.com")
            + helpLib("LibQxt",
                      "Copyright (c) 2006 - 2011, the LibQxt project", "http://libqxt.org")
            + helpLib("Solarized",
                      "Copyright (c) 2011 Ethan Schoonover", "http://ethanschoonover.com/solarized")

        + "<p></p>"

        "</body></html>";
}