本文整理汇总了C++中KisFilterSP::name方法的典型用法代码示例。如果您正苦于以下问题:C++ KisFilterSP::name方法的具体用法?C++ KisFilterSP::name怎么用?C++ KisFilterSP::name使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KisFilterSP
的用法示例。
在下文中一共展示了KisFilterSP::name方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: KisPaintOpOption
KisFilterOption::KisFilterOption()
: KisPaintOpOption(KisPaintOpOption::FILTER, true)
{
setObjectName("KisFilterOption");
m_checkable = false;
m_filterOptionWidget = new KisFilterOptionWidget();
m_filterOptionWidget->hide();
setConfigurationPage(m_filterOptionWidget);
m_layout = new QGridLayout(m_filterOptionWidget->grpFilterOptions);
// Check which filters support painting
QList<QString> l = KisFilterRegistry::instance()->keys();
QList<KoID> l2;
QList<QString>::iterator it;
for (it = l.begin(); it != l.end(); ++it) {
KisFilterSP f = KisFilterRegistry::instance()->value((*it));
if (f->supportsPainting()) {
l2.push_back(KoID(*it, f->name()));
}
}
m_filterOptionWidget->filtersList->setIDList(l2);
connect(m_filterOptionWidget->filtersList, SIGNAL(activated(const KoID &)), SLOT(setCurrentFilter(const KoID &)));
if (!l2.empty()) {
setCurrentFilter(l2.first());
}
connect(m_filterOptionWidget->checkBoxSmudgeMode, SIGNAL(stateChanged(int)), this, SLOT(emitSettingChanged()));
}
示例2: setFilter
void KisFilterDialog::setFilter(KisFilterSP f)
{
Q_ASSERT(f);
setWindowTitle(f->name());
d->currentFilter = f;
d->uiFilterDialog.filterSelection->setFilter(f);
updatePreview();
}
示例3: KisPainterBasedStrokeStrategy
KisFilterStrokeStrategy::KisFilterStrokeStrategy(KisFilterSP filter,
KisSafeFilterConfigurationSP filterConfig,
KisResourcesSnapshotSP resources)
: KisPainterBasedStrokeStrategy("FILTER_STROKE", filter->name(), resources,
QVector<PainterInfo*>()),
m_d(new Private())
{
m_d->filter = filter;
m_d->filterConfig = filterConfig;
m_d->node = resources->currentNode();
m_d->updatesFacade = resources->image().data();
m_d->cancelSilently = false;
m_d->secondaryTransaction = 0;
enableJob(KisSimpleStrokeStrategy::JOB_DOSTROKE);
}
示例4: setDialogTitle
void KisDlgFilter::setDialogTitle(KisFilterSP filter)
{
setWindowTitle(filter.isNull() ? i18nc("@title:window", "Filter") : i18nc("@title:window", "Filter: %1", filter->name()));
}