Example #1
0
void AboutDialog::plugins_scan()
{
#ifdef HAVE_PLUGINS
    plugins_get_descriptions(plugins_add_description, ui->tbPlugins);
#endif

#ifdef HAVE_LUA
    wslua_plugins_get_descriptions(plugins_add_description, ui->tbPlugins);
#endif
}
Example #2
0
static void
plugins_scan(GtkWidget *list)
{
#ifdef HAVE_PLUGINS
    plugins_get_descriptions(plugins_add_description, list);
#endif

#ifdef HAVE_LUA
    wslua_plugins_get_descriptions(plugins_add_description, list);
#endif
}
Example #3
0
const QString AboutDialog::plugins_scan()
{
    QList<QStringList> plugin_data;
    QString plugin_table;

#ifdef HAVE_PLUGINS
    plugins_get_descriptions(plugins_add_description, &plugin_data);
#endif

#ifdef HAVE_LUA
    wslua_plugins_get_descriptions(plugins_add_description, &plugin_data);
#endif

    int one_em = fontMetrics().height();
    QString short_file;

    foreach (QStringList plugin_row, plugin_data) {
        short_file = fontMetrics().elidedText(plugin_row[3], Qt::ElideMiddle, one_em * 22); // Arbitrary
        plugin_table += QString("<tr><td>%1</td><td>%2</td><td>%3</td><td>%4</td></tr>\n")
                .arg(plugin_row[0]) // Name
                .arg(plugin_row[1]) // Version
                .arg(plugin_row[2]) // Type
                .arg(short_file);
    }