Beispiel #1
0
bool DesignNetCorePlugin::initialize( const QStringList &arguments, QString *errorMessage /*= 0*/ )
{
	d->m_mode = new DesignNetMode(this);

	NormalPropertyWidgetFactory *normalPropertyWidgetFactory = new NormalPropertyWidgetFactory(this);
	NormalDataFactory* normalDataFactory = new NormalDataFactory(this);
	addAutoReleasedObject(normalPropertyWidgetFactory);
	addAutoReleasedObject(normalDataFactory);

	Core::BaseFileWizardParameters param;
	param.setIcon(QIcon(":/media/DesignNet.png"));
	param.setCategory(tr("DesignNet"));
	param.setDescription(tr("asdf"));
	param.setDisplayCategory(tr("nimeia"));
	param.setDisplayName(tr("miao"));
	addAutoReleasedObject(d->m_mode);
	addAutoReleasedObject(new ProcessorFactory(this));
	addAutoReleasedObject(new DesignNetSolutionWizard(param, this));
	addAutoReleasedObject(new DesignNetEditorFactory);
	// Core
	connect(ICore::instance(), SIGNAL(saveSettingsRequested()), this, SLOT(writeSettings()));
	d->m_designNetFormMgr = DesignNetFormManager::instance();
	d->m_designNetFormMgr->startInit();
	return true;
}
Core::BaseFileWizardParameters DesignNet::DesignNetSolutionWizard::parameters()
{
	Core::BaseFileWizardParameters param;
	param.setIcon(QIcon(":/media/DesignNet.png"));
	param.setCategory(tr("DesignNet"));
	param.setDescription(tr(""));
	param.setDisplayCategory(tr(""));
	param.setDisplayName(tr("miao"));
	return param;
}
bool ItemModelWizardPlugin::initialize(const QStringList& args, QString *errMsg)
{
    Q_UNUSED(args);
    Q_UNUSED(errMsg);
    Core::BaseFileWizardParameters params;
    params.setKind(Core::IWizard::ClassWizard);
    params.setIcon(qApp->windowIcon());
    params.setDescription("Generates an item-model class");
    params.setName("Item Model");
    params.setCategory("FooCompany");
    params.setTrCategory(tr("FooCompany"));
    addAutoReleasedObject(new ModelClassWizard(params, this));
    return true;

}
Beispiel #4
0
void QtQuickAppWizard::createInstances(ExtensionSystem::IPlugin *plugin)
{
    Core::BaseFileWizardParameters base = baseParameters();
    QList<Core::BaseFileWizardParameters> list;
    Core::BaseFileWizardParameters parameter;

    const QString basicDescription = tr("Creates a Qt Quick application project that can contain "
                                        "both QML and C++ code and includes a QDeclarativeView.\n\n");

    Core::FeatureSet basicFeatures;
    basicFeatures = Core::Feature(QtSupport::Constants::FEATURE_QT_QUICK_1_1);

    parameter = base;
    parameter.setDisplayName(tr("Qt Quick Application (Built-in elements)"));
    parameter.setDescription(basicDescription + tr("The built-in elements in the QtQuick namespace allow "
                                                   "you to write cross-platform applications with "
                                                   "a custom look and feel.\n\nRequires <b>Qt 4.7.4</b> or newer."));
    parameter.setRequiredFeatures(basicFeatures);
    list << parameter;

    parameter = base;
    parameter.setDisplayName(tr("Qt Quick Application for Symbian"));
    parameter.setDescription(basicDescription +  tr("The Qt Quick Components for Symbian are a set of "
                                                    "ready-made components that are designed with specific "
                                                    "native appearance for the Symbian platform.\n\nRequires "
                                                    "<b>Qt 4.7.4</b> or newer, and the component set installed for "
                                                    "your Qt version."));
    parameter.setRequiredFeatures(basicFeatures | Core::Feature(QtSupport::Constants::FEATURE_QTQUICK_COMPONENTS_SYMBIAN));
    list << parameter;

    parameter = base;
    parameter.setDisplayName(tr("Qt Quick Application for MeeGo/Harmattan"));
    parameter.setDescription(basicDescription +  tr("The Qt Quick Components for MeeGo/Harmattan are "
                                                    "a set of ready-made components that are designed "
                                                    "with specific native appearance for the MeeGo/Harmattan "
                                                    "platform.\n\nRequires <b>Qt 4.7.4</b> or newer, and the "
                                                    "component set installed for your Qt version."));
    parameter.setRequiredFeatures(basicFeatures | Core::Feature(QtSupport::Constants::FEATURE_QTQUICK_COMPONENTS_MEEGO));
    list << parameter;

    parameter = base;
    parameter.setDisplayName(tr("Qt Quick Application (from existing .qml file)"));
    parameter.setDescription(basicDescription +  tr("Creates a deployable Qt Quick application from "
                                                    "existing QML files. All files and directories that "
                                                    "reside in the same directory as the main QML file "
                                                    "are deployed. You can modify the contents of the "
                                                    "directory any time before deploying.\n\nRequires <b>Qt 4.7.0</b> or newer."));
    parameter.setRequiredFeatures(Core::Feature(QtSupport::Constants::FEATURE_QT_QUICK));
    list << parameter;

    QList<QtQuickAppWizard*> wizardList = Core::createMultipleBaseFileWizardInstances<QtQuickAppWizard>(list, plugin);

    Q_ASSERT(wizardList.count() == 4);

    for (int i = 0; i < wizardList.count(); i++) {
        wizardList.at(i)->setQtQuickKind(Kind(i));
    }
}