Changeset View
Changeset View
Standalone View
Standalone View
krita/ui/kis_filter_manager.cc
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Line(s) | |||||
92 | 92 | | |||
93 | 93 | | |||
94 | void KisFilterManager::setup(KActionCollection * ac, KisActionManager *actionManager) | 94 | void KisFilterManager::setup(KActionCollection * ac, KisActionManager *actionManager) | ||
95 | { | 95 | { | ||
96 | d->actionCollection = ac; | 96 | d->actionCollection = ac; | ||
97 | d->actionManager = actionManager; | 97 | d->actionManager = actionManager; | ||
98 | 98 | | |||
99 | // Setup reapply action | 99 | // Setup reapply action | ||
100 | d->reapplyAction = new KisAction(i18n("Apply Filter Again"), this); | 100 | d->reapplyAction = d->actionManager->createAction("filter_apply_again"); | ||
101 | d->reapplyAction->setDefaultShortcut(QKeySequence(Qt::CTRL + Qt::Key_F)); | | |||
102 | d->actionManager->addAction("filter_apply_again", d->reapplyAction); | | |||
103 | | ||||
104 | d->reapplyAction->setEnabled(false); | 101 | d->reapplyAction->setEnabled(false); | ||
105 | connect(d->reapplyAction, SIGNAL(triggered()), SLOT(reapplyLastFilter())); | 102 | connect(d->reapplyAction, SIGNAL(triggered()), SLOT(reapplyLastFilter())); | ||
106 | 103 | | |||
107 | connect(&d->actionsMapper, SIGNAL(mapped(const QString&)), SLOT(showFilterDialog(const QString&))); | 104 | connect(&d->actionsMapper, SIGNAL(mapped(const QString&)), SLOT(showFilterDialog(const QString&))); | ||
108 | 105 | | |||
109 | // Setup list of filters | 106 | // Setup list of filters | ||
110 | foreach (const QString &filterName, KisFilterRegistry::instance()->keys()) { | 107 | foreach (const QString &filterName, KisFilterRegistry::instance()->keys()) { | ||
111 | insertFilter(filterName); | 108 | insertFilter(filterName); | ||
▲ Show 20 Lines • Show All 232 Lines • Show Last 20 Lines |