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


C++ setDescription函数代码示例

本文整理汇总了C++中setDescription函数的典型用法代码示例。如果您正苦于以下问题:C++ setDescription函数的具体用法?C++ setDescription怎么用?C++ setDescription使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: setDescriptorId

WaveletKSigmaFilter::WaveletKSigmaFilter()
{
   setDescriptorId("{28702D56-4634-4CCC-8840-C10F805C9870}");
   setName("Wavelet K-Sigma Filter ");
   setDescription("Remove noise for astronomical image");
   setCreator("Yiwei Zhang");
   setVersion("Sample");
   setCopyright("Copyright (C) 2008, Ball Aerospace & Technologies Corp.");
   setProductionStatus(false);
   setType("Sample");
   setSubtype("Denoise");
   setMenuLocation("[Astronomy]/Wavelet K-Sigma Filter");
   setAbortSupported(true);

   rowBlocks = BLOCK_ROWS;
   colBlocks = BLOCK_COLS;
   pBuffer = (double *)malloc(sizeof(double)*(10+rowBlocks)*(10+colBlocks));  
}
开发者ID:felipebetancur,项目名称:Astronomy-Image-Processing,代码行数:18,代码来源:WaveletKSigmaFilter.cpp

示例2: setDescription

UIDownloaderAdditions::UIDownloaderAdditions()
{
    /* Prepare instance: */
    if (!m_spInstance)
        m_spInstance = this;

    /* Set description: */
    setDescription(tr("VirtualBox Guest Additions"));

    /* Prepare source/target: */
    const QString &strName = QString("VBoxGuestAdditions_%1.iso").arg(vboxGlobal().vboxVersionStringNormalized());
    const QString &strSource = QString("http://download.virtualbox.org/virtualbox/%1/").arg(vboxGlobal().vboxVersionStringNormalized()) + strName;
    const QString &strTarget = QDir(vboxGlobal().virtualBox().GetHomeFolder()).absoluteFilePath(strName);

    /* Set source/target: */
    setSource(strSource);
    setTarget(strTarget);
}
开发者ID:eaas-framework,项目名称:virtualbox,代码行数:18,代码来源:UIDownloaderAdditions.cpp

示例3: mpInterpreter

IdlInterpreterManager::IdlInterpreterManager()
   : mpInterpreter(new IdlProxy())
{
   setName("IDL");
   setDescription("Provides command line utilities to execute IDL commands.");
   setDescriptorId("{09BBB1FD-D12A-43B8-AB09-95AA8028BFFE}");
   setCopyright(IDL_COPYRIGHT);
   setVersion(IDL_VERSION_NUMBER);
   setProductionStatus(IDL_IS_PRODUCTION_RELEASE);
   allowMultipleInstances(false);
   setWizardSupported(false);
   setFileExtensions("IDL Scripts (*.pro)");
   setInteractiveEnabled(IdlInterpreterOptions::getSettingInteractiveAvailable());
   addDependencyCopyright("IDL", "<pre>Copyright 2012 Exelis Visual Information Systems, Inc.\n"
      "* The user is permitted to use this software only together with Opticks, and for the sole purpose of calling a "
      "fully-licensed copy of IDL(R) software. Any other use is expressly prohibited.\n"
      "* The user shall not disassemble, decompile or reverse engineer this software.</pre>");
}
开发者ID:tclarke,项目名称:opticks-extras-IDL,代码行数:18,代码来源:IdlInterpreter.cpp

示例4: setWizardKind

ROSProjectWizard::ROSProjectWizard()
{
    setWizardKind(ProjectWizard);
    // TODO do something about the ugliness of standard icons in sizes different than 16, 32, 64, 128
    {
        QPixmap icon(22, 22);
        icon.fill(Qt::transparent);
        QPainter p(&icon);
        p.drawPixmap(3, 3, 16, 16, qApp->style()->standardIcon(QStyle::SP_DirIcon).pixmap(16));
        setIcon(icon);
    }
    setDisplayName(tr("Import ROS Workspace"));
    setId("Z.ROSIndustrial");
    setDescription(tr("Used to import ROS Workspace."));
    setCategory(QLatin1String(ProjectExplorer::Constants::IMPORT_WIZARD_CATEGORY));
    setDisplayCategory(QLatin1String(ProjectExplorer::Constants::IMPORT_WIZARD_CATEGORY_DISPLAY));
    setFlags(Core::IWizardFactory::PlatformIndependent);
}
开发者ID:130s,项目名称:ros_qtc_plugins,代码行数:18,代码来源:ros_project_wizard.cpp

示例5: QString

/*!
    Construct a new CpSettingFormEntryItemData with the given type, text, description, icon name, and parent.
*/
CpSettingFormEntryItemData::CpSettingFormEntryItemData(
         EntryItemType type,
         CpItemDataHelper &itemDataHelper,
         const QString &text /*= QString()*/,
         const QString &description /*= QString()*/,
         const QString &iconName /*= QString()*/,
         const HbDataFormModelItem *parent /*= 0*/) :
         CpSettingFormItemData(HbDataFormModelItem::CustomItemBase,QString(),parent),
         d_ptr(new CpSettingFormEntryItemDataPrivate(&itemDataHelper))
{
    setType ( static_cast<HbDataFormModelItem::DataItemType> (type) );
    
    d_ptr->init(this);
    
    setText(text);
    setDescription(description);
    setIcon(iconName);
}
开发者ID:kuailexs,项目名称:symbiandump-mw1,代码行数:21,代码来源:cpsettingformentryitemdata.cpp

示例6: qInfo

Commands::CommandResult *Commands::CombinedEditCommand::execute(const Commands::CommandManager *commandManager) const {
    qInfo() << "Combined edit command: flags=" << m_EditFlags << "artworks count =" << m_ArtItemInfos.length();
    QVector<int> indicesToUpdate;
    QVector<UndoRedo::ArtworkMetadataBackup*> artworksBackups;
    QVector<SpellCheck::ISpellCheckable*> itemsToCheck;

    int size = m_ArtItemInfos.length();
    indicesToUpdate.reserve(size);
    artworksBackups.reserve(size);
    itemsToCheck.reserve(size);

    bool needToClear = Common::HasFlag(m_EditFlags, Common::Clear);

    for (int i = 0; i < size; ++i) {
        Models::ArtItemInfo* info = m_ArtItemInfos[i];
        Models::ArtworkMetadata *metadata = info->getOrigin();

        UndoRedo::ArtworkMetadataBackup *backup = new UndoRedo::ArtworkMetadataBackup(metadata);
        artworksBackups.append(backup);
        indicesToUpdate.append(info->getOriginalIndex());

        setKeywords(metadata);
        setDescription(metadata);
        setTitle(metadata);

        // do not save if Сlear flag present
        // to be able to restore from .xpks
        if (!needToClear) {
            commandManager->saveMetadata(metadata);
        }

        itemsToCheck.append(metadata);
    }

    commandManager->submitForSpellCheck(itemsToCheck);

    UndoRedo::ModifyArtworksHistoryItem *modifyArtworksItem =
            new UndoRedo::ModifyArtworksHistoryItem(artworksBackups, indicesToUpdate,
                                                    UndoRedo::CombinedEditModificationType);
    commandManager->recordHistoryItem(modifyArtworksItem);

    CombinedEditCommandResult *result = new CombinedEditCommandResult(indicesToUpdate);
    return result;
}
开发者ID:snikolau,项目名称:xpiks,代码行数:44,代码来源:combinededitcommand.cpp

示例7: UAVDataObject

/**
 * Constructor
 */
Mpu6000Settings::Mpu6000Settings(): UAVDataObject(OBJID, ISSINGLEINST, ISSETTINGS, NAME)
{
    // Create fields
    QList<UAVObjectField *> fields;
    QStringList GyroScaleElemNames;
    GyroScaleElemNames.append("0");
    QStringList GyroScaleEnumOptions;
    GyroScaleEnumOptions.append("Scale_250");
    GyroScaleEnumOptions.append("Scale_500");
    GyroScaleEnumOptions.append("Scale_1000");
    GyroScaleEnumOptions.append("Scale_2000");
    fields.append( new UAVObjectField(QString("GyroScale"), QString("deg/s"), UAVObjectField::ENUM, GyroScaleElemNames, GyroScaleEnumOptions, QString("")));
    QStringList AccelScaleElemNames;
    AccelScaleElemNames.append("0");
    QStringList AccelScaleEnumOptions;
    AccelScaleEnumOptions.append("Scale_2g");
    AccelScaleEnumOptions.append("Scale_4g");
    AccelScaleEnumOptions.append("Scale_8g");
    AccelScaleEnumOptions.append("Scale_16g");
    fields.append( new UAVObjectField(QString("AccelScale"), QString("g"), UAVObjectField::ENUM, AccelScaleElemNames, AccelScaleEnumOptions, QString("")));
    QStringList FilterSettingElemNames;
    FilterSettingElemNames.append("0");
    QStringList FilterSettingEnumOptions;
    FilterSettingEnumOptions.append("Lowpass_256_Hz");
    FilterSettingEnumOptions.append("Lowpass_188_Hz");
    FilterSettingEnumOptions.append("Lowpass_98_Hz");
    FilterSettingEnumOptions.append("Lowpass_42_Hz");
    FilterSettingEnumOptions.append("Lowpass_20_Hz");
    FilterSettingEnumOptions.append("Lowpass_10_Hz");
    FilterSettingEnumOptions.append("Lowpass_5_Hz");
    fields.append( new UAVObjectField(QString("FilterSetting"), QString("Hz"), UAVObjectField::ENUM, FilterSettingElemNames, FilterSettingEnumOptions, QString("")));

    // Initialize object
    initializeFields(fields, (quint8 *)&data, NUMBYTES);
    // Set the default field values
    setDefaultFieldValues();
    // Set the object description
    setDescription(DESCRIPTION);

    // Set the Category of this object type
    setCategory(CATEGORY);

    connect(this, SIGNAL(objectUpdated(UAVObject *)), SLOT(emitNotifications()));
}
开发者ID:nongxiaoming,项目名称:QGroundStation,代码行数:47,代码来源:mpu6000settings.cpp

示例8: setTitle

bool CToggleViewBasicTest::init()
{
	CToggleViewTestSceneBase::init();
	setTitle("CToggleViewBasicTest");
	setDescription("toggle button");
	
	CToggleView* pToggle = CToggleView::create("toggle1_2.png", "toggle1_1.png");
	pToggle->setOnClickListener(this, ccw_click_selector(CToggleViewBasicTest::onClick));
	pToggle->setPosition(Vec2(480, 320));
	m_pWindow->addChild(pToggle);

	m_pText = CLabel::createWithSystemFont("none","",35);
	m_pText->setAnchorPoint(Vec2(0, 0.5));
	m_pText->setPosition(Vec2(380, 400));
	m_pText->setString("none");
	m_pWindow->addChild(m_pText);

	return true;
}
开发者ID:110440,项目名称:Tui-x,代码行数:19,代码来源:ToggleViewTest.cpp

示例9: disconnect

void AMNormalizationAB::setInputSources()
{
	if (data_){

		disconnect(data_->signalSource(), SIGNAL(valuesChanged(AMnDIndex,AMnDIndex)), this, SLOT(onInputSourceValuesChanged(AMnDIndex,AMnDIndex)));
		disconnect(data_->signalSource(), SIGNAL(sizeChanged(int)), this, SLOT(onInputSourceSizeChanged()));
		disconnect(data_->signalSource(), SIGNAL(stateChanged(int)), this, SLOT(onInputSourceStateChanged()));
		data_ = 0;
	}

	if (normalizer_){

		disconnect(normalizer_->signalSource(), SIGNAL(valuesChanged(AMnDIndex,AMnDIndex)), this, SLOT(onInputSourceValuesChanged(AMnDIndex,AMnDIndex)));
		disconnect(normalizer_->signalSource(), SIGNAL(sizeChanged(int)), this, SLOT(onInputSourceSizeChanged()));
		disconnect(normalizer_->signalSource(), SIGNAL(stateChanged(int)), this, SLOT(onInputSourceStateChanged()));
		normalizer_ = 0;
	}

	int dataIndex = indexOfInputSource(dataName_);
	int normalizationIndex = indexOfInputSource(normalizationName_);

	if (dataIndex >= 0 && normalizationIndex >= 0){

		data_ = inputDataSourceAt(dataIndex);
		normalizer_ = inputDataSourceAt(normalizationIndex);
		canAnalyze_ = true;

		axes_.clear();
		for (int i = 0, size = sources_.at(0)->rank(); i < size; i++)
			axes_ << sources_.at(0)->axisInfoAt(i);

		cacheUpdateRequired_ = true;
		cachedData_ = QVector<double>(size().product());

		setDescription(QString("Normalized %1").arg(data_->name()));

		connect(data_->signalSource(), SIGNAL(valuesChanged(AMnDIndex,AMnDIndex)), this, SLOT(onInputSourceValuesChanged(AMnDIndex,AMnDIndex)));
		connect(data_->signalSource(), SIGNAL(sizeChanged(int)), this, SLOT(onInputSourceSizeChanged()));
		connect(data_->signalSource(), SIGNAL(stateChanged(int)), this, SLOT(onInputSourceStateChanged()));
		connect(normalizer_->signalSource(), SIGNAL(valuesChanged(AMnDIndex,AMnDIndex)), this, SLOT(onInputSourceValuesChanged(AMnDIndex,AMnDIndex)));
		connect(normalizer_->signalSource(), SIGNAL(sizeChanged(int)), this, SLOT(onInputSourceSizeChanged()));
		connect(normalizer_->signalSource(), SIGNAL(stateChanged(int)), this, SLOT(onInputSourceStateChanged()));
	}
开发者ID:acquaman,项目名称:acquaman,代码行数:43,代码来源:AMNormalizationAB.cpp

示例10: setWizardKind

GenericProjectWizard::GenericProjectWizard()
{
    setWizardKind(ProjectWizard);
    // TODO do something about the ugliness of standard icons in sizes different than 16, 32, 64, 128
    {
        QPixmap icon(22, 22);
        icon.fill(Qt::transparent);
        QPainter p(&icon);
        p.drawPixmap(3, 3, 16, 16, qApp->style()->standardIcon(QStyle::SP_DirIcon).pixmap(16));
        setIcon(icon);
    }
    setDisplayName(tr("Import Existing Project"));
    setId("Z.Makefile");
    setDescription(tr("Imports existing projects that do not use qmake, CMake or Autotools. "
                      "This allows you to use Qt Creator as a code editor."));
    setCategory(QLatin1String(ProjectExplorer::Constants::IMPORT_WIZARD_CATEGORY));
    setDisplayCategory(QLatin1String(ProjectExplorer::Constants::IMPORT_WIZARD_CATEGORY_DISPLAY));
    setFlags(Core::IWizardFactory::PlatformIndependent);
}
开发者ID:mbenelli,项目名称:qt-creator,代码行数:19,代码来源:genericprojectwizard.cpp

示例11: setTitle

bool CCheckBoxExclusionTest::init()
{
	CCheckBoxTestSceneBase::init();
	setTitle("CCheckBoxExclusionTest");
	setDescription("checkbox exclusion test");

	CREATE_CHECKBOX(pCheckBox1, CCPoint(480, 490));
	pCheckBox1->setTag(1);
	pCheckBox1->setExclusion(1);
	pCheckBox1->setChecked(true);
	pCheckBox1->setEnabled(false);
	m_pWindow->addChild(pCheckBox1);

	CREATE_CHECKBOX(pCheckBox2, CCPoint(480, 425));
	pCheckBox2->setExclusion(1);
	m_pWindow->addChild(pCheckBox2);
	
	CREATE_CHECKBOX(pCheckBox3, CCPoint(480, 360));
	pCheckBox3->setExclusion(1);
	m_pWindow->addChild(pCheckBox3);

	CREATE_CHECKBOX(pCheckBox4, CCPoint(480, 295));
	pCheckBox4->setExclusion(1);
	m_pWindow->addChild(pCheckBox4);

	CREATE_CHECKBOX(pCheckBox5, CCPoint(480, 230));
	pCheckBox5->setExclusion(1);
	m_pWindow->addChild(pCheckBox5);

	CREATE_CHECKBOX(pCheckBox6, CCPoint(480, 165));
	pCheckBox6->setExclusion(1);
	m_pWindow->addChild(pCheckBox6);

	CButton* pButton = CButton::createWith9Sprite(CCSize(280, 60),
		"sprite9_btn1.png", "sprite9_btn2.png");
	pButton->setPosition(CCPoint(200, 450));
	pButton->setUserTag(1);
	pButton->setOnClickListener(this, ccw_click_selector(CCheckBoxExclusionTest::onClick));
	pButton->initText("set true for first", "", 30);
	m_pWindow->addChild(pButton);

	return true;
}
开发者ID:Coolxiaoo,项目名称:CocosWidget,代码行数:43,代码来源:CheckBoxTest.cpp

示例12: setClassName

void IPLIFFT::init()
{
    // init
    _result     = NULL;

    // basic settings
    setClassName("IPLIFFT");
    setTitle("Inverse FFT");
    setCategory(IPLProcess::CATEGORY_FOURIER);
    setDescription("Inverse Fast Fourier Transform.");
	setKeywords("IFFT");

    // inputs and outputs
    addInput("Complex Image", IPL_IMAGE_COMPLEX);
    addOutput("Grayscale Image", IPL_IMAGE_GRAYSCALE);

    // properties
    //addProcessPropertyInt("mode", "Windowing Function:None|Hanning|Hamming|Blackman|Border", "", IPL_INT_RADIOBUTTONS, 0);
}
开发者ID:MazharLakhani,项目名称:ImagePlay,代码行数:19,代码来源:IPLIFFT.cpp

示例13: ossimSharedLibraryInitialize

   /* Note symbols need to be exported on windoze... */ 
   OSSIM_PLUGINS_DLL void ossimSharedLibraryInitialize(
      ossimSharedObjectInfo** info, const char* /*options*/)
   {
      Aws::SDKOptions options;
      Aws::InitAPI(options);

      myInfo.getDescription = getDescription;
      myInfo.getNumberOfClassNames = getNumberOfClassNames;
      myInfo.getClassName = getClassName;
      
      *info = &myInfo;
      
      ossim::S3StreamDefaults::loadDefaults();
      /* Register our stream factory... */
      ossim::StreamFactoryRegistry::instance()->
         registerFactory( ossim::AwsStreamFactory::instance() );

      setDescription(theDescription);
  }
开发者ID:ossimlabs,项目名称:ossim-plugins,代码行数:20,代码来源:ossimAwsPluginInit.cpp

示例14: setDescription

void VMIFile::loadHeader(vmi_hdr_t *header) {
	DreamcastFile *df;
	uint16 year;

	df=getDCFile();
	setDescription(header->description);
	setCopyright(header->copyright);
	setResourceName(header->resource_name);
	df->setSize(header->filesize);
	df->setName(header->filename);
	df->setGameFile(header->filemode & VMI_VMUGAME);
	df->setCopyProtected(header->filemode & VMI_NOCOPY);
	memcpy(&year, &header->timestamp.cent, 2);
	header->timestamp.cent=year / 100;
	header->timestamp.year=year % 100;
	header->timestamp.dow=(header->timestamp.dow == 0) ? 6 : header->timestamp.dow-1;
	df->timeToBCD(&header->timestamp);
	df->setTime(header->timestamp);
}
开发者ID:bucanero,项目名称:dci4vmi,代码行数:19,代码来源:dcvmu.cpp

示例15: ossimSharedLibraryInitialize

   /* Note symbols need to be exported on windoze... */ 
   OSSIM_PLUGINS_DLL void ossimSharedLibraryInitialize(
      ossimSharedObjectInfo** info)
   {    
      myInfo.getDescription = getDescription;
      myInfo.getNumberOfClassNames = getNumberOfClassNames;
      myInfo.getClassName = getClassName;
      
      *info = &myInfo;

      /* Register the readers... */
      // ossimImageHandlerRegistry::instance()->
      //    registerFactory(ossimKmlSuperOverlayReaderFactory::instance());
      
      /* Register the writers... */
      ossimImageWriterFactoryRegistry::instance()->
         registerFactory(ossimKmlSuperOverlayWriterFactory::instance());
      
      setDescription(theDescription);
   }
开发者ID:ICODE-MDA,项目名称:AutomatedSARShipDetection,代码行数:20,代码来源:ossimKmlSuperOverlayPluginInit.cpp


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