Exemplo n.º 1
0
CMakeBuilder::CMakeBuilder(QObject *parent, const QVariantList &)
    : KDevelop::IPlugin("kdevcmakebuilder", parent)
{
    KDEV_USE_EXTENSION_INTERFACE( KDevelop::IProjectBuilder )

    addBuilder("Makefile", QStringList("Unix Makefiles") << "NMake Makefiles", core()->pluginController()->pluginForExtension("org.kdevelop.IMakeBuilder"));
    addBuilder("build.ninja", QStringList("Ninja"), core()->pluginController()->pluginForExtension("org.kdevelop.IProjectBuilder", "KDevNinjaBuilder"));
}
Exemplo n.º 2
0
void CDMDialog::OnBnClickedBtnAdd()
{
	DMresult << "TP1" << DMendl;
	boost::lock_guard<boost::mutex> guard(*dialogmtx);
	DMresult << "TP2" << DMendl;
	boost::lock_guard<boost::mutex> lock(buildermtx);

	try
	{
		// need to catch if there is no front image :D
		DMImageGeneric front = DMImageGeneric();
		front.fromFront();
		DMresult << "TP3" << DMendl;
		addBuilder(front);
		DMresult << "TP4" << DMendl;
	}
	catch (const std::exception& ex)
	{
		DMresult << ex.what() << DMendl;
		return;
	}
}