当前位置: 首页>>代码示例>>C++>>正文


C++ PluginManager::getPluginList方法代码示例

本文整理汇总了C++中PluginManager::getPluginList方法的典型用法代码示例。如果您正苦于以下问题:C++ PluginManager::getPluginList方法的具体用法?C++ PluginManager::getPluginList怎么用?C++ PluginManager::getPluginList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PluginManager的用法示例。


在下文中一共展示了PluginManager::getPluginList方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: main

int main(int argc, char **argv)
{

    try
    {
        osDebugLog& theDebugLog = osDebugLog::instance();
        theDebugLog.initialize(L"Compressonator.log");

        appQtApplication app(argc, argv);

        app.setWindowIcon(QIcon(":/CompressonatorGUI/Images/acompress-256.png"));


        m_thread = new MyThread();
    
        // register the memory allocation failure event handler.
        std::set_new_handler(appQtApplication::AppMemAllocFailureHandler);

        /// connect the Qt application to the slots that handle the out of memory signals:
        QObject::connect(qApp, SIGNAL(AppMemAllocFailureSignal()), qApp, SLOT(OnAppMemAllocFailureSignal()));

        QObject::connect(qApp, SIGNAL(ClientMemAllocFailureSignal()), qApp, SLOT(OnClientMemAllocFailureSignal()));

        //------------------------------------------------
        // Bug reporting
        //-------------------------------------------------
        // QPixmap iconPixMap;
        // acIconId iconID = AC_ICON_DEBUG_MODE;
        // Adding Exception Handle
        // acSetIconInPixmap(iconPixMap, iconID, AC_64x64_ICON);
    
        const QIcon iconPixMap(":/CompressonatorGUI/Images/compress.png");
        const QString ProductName = "Compressonator";
        acSendErrorReportDialog *m_pSendErrorReportDialog = new acSendErrorReportDialog(NULL, ProductName, iconPixMap);
        m_pSendErrorReportDialog->registerForRecievingDebuggedProcessEvents();
    
        //----------------------------------
        // Load plugin List for processing
        //----------------------------------
    
        g_pluginManager.registerStaticPlugin("IMAGE",  "ASTC",      make_Plugin_ASTC);
        g_pluginManager.registerStaticPlugin("IMAGE",  "DDS",       make_Plugin_DDS);
        g_pluginManager.registerStaticPlugin("IMAGE",  "EXR",       make_Plugin_EXR);
        g_pluginManager.registerStaticPlugin("IMAGE",  "KTX",       make_Plugin_KTX);
        g_pluginManager.registerStaticPlugin("FILTER", "BOXFILTER", make_Plugin_BoxFilter);
        g_pluginManager.registerStaticPlugin("IMAGE", "ANALYSIS",   make_Plugin_CAnalysis);
    
        g_pluginManager.getPluginList("/plugins");
        g_bAbortCompression = false;
    
        cpMainComponents mainComponents(NULL,NULL);

#ifdef MSG_HANDLER
        PrintStatusLine = &mainComponents.PrintStatus;
        qInstallMsgHandler(mainComponents.msgHandler);
#endif
        QDesktopWidget *desktop = new QDesktopWidget();
        mainComponents.resize(desktop->screenGeometry().width()*PERCENTAGE_OF_MONITOR_WIDTH_FOR_SCREEN, desktop->screenGeometry().height()*PERCENTAGE_OF_MONITOR_HEIGHT_FOR_SCREEN);
        mainComponents.show();
    
        app.setStyleSheet(SEPERATOR_STYLE);
        return app.exec();
    }
    catch (std::exception &e)
    {
        qDebug() << e.what();
    }
    catch (...)
    {
        qDebug() << "Unknown Error";
    }
    return(-1);
}
开发者ID:NoSuchProcess,项目名称:Compressonator,代码行数:73,代码来源:main.cpp


注:本文中的PluginManager::getPluginList方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。