81 QWidgetAction *action =
new QWidgetAction(
this);
82 action->setText(i18n(
"&Patterns"));
85 connect(action, SIGNAL(triggered()),
m_patternWidget, SLOT(showPopupWidget()));
88 action =
new QWidgetAction(
this);
89 action->setText(i18n(
"&Gradients"));
92 connect(action, SIGNAL(triggered()),
m_gradientWidget, SLOT(showPopupWidget()));
100 KisDisplayColorConverter::dumbConverterInstance()->displayRendererInterface();
104 action =
new QWidgetAction(
this);
105 action->setText(i18n(
"&Choose foreground and background colors"));
108 action->setDefaultWidget(
m_dual);
113 m_dual->setFixedSize(28, 28);
122 action =
new QWidgetAction(
this);
123 action->setText(i18n(
"&Choose foreground colour"));
132 connect(action, SIGNAL(triggered()),
m_foreground, SLOT(openForegroundDialog()));
141 action =
new QWidgetAction(
this);
142 action->setText(i18n(
"&Choose background colour"));
151 connect(action, SIGNAL(triggered()),
m_background, SLOT(openBackgroundDialog()));
160 action =
new QWidgetAction(
this);
161 action->setText(i18n(
"&Swap Foreground and Background Colors"));
164 action->setDefaultWidget(
m_swap);
169 m_swap->setFixedSize(28, 28);
170 connect(action, SIGNAL(triggered()),
m_swap, SLOT(swapColours()));
179 action =
new QWidgetAction(
this);
180 action->setText(i18n(
"&reset Foreground and Background Colors"));
183 action->setDefaultWidget(
m_reset);
187 connect(action, SIGNAL(triggered()),
m_reset, SLOT(ResetColours()));
195 action =
new QWidgetAction(
this);
196 action->setText(i18n(
"&Painter's Tools"));
256 l2->setObjectName(
"patternpopuplayout");
264 m_patternChooser->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
266 QHBoxLayout *patternChooserPageLayout =
new QHBoxLayout(patternChooserPage);
272 m_patternsTab->addTab(customPatterns, i18n(
"Custom Pattern"));
277 connect(customPatterns, SIGNAL(activatedResource(
KoResourceSP )),
308 l2->setObjectName(
"gradientpopuplayout");
318 QHBoxLayout *gradientChooserPageLayout =
new QHBoxLayout(gradientChooserPage);
320 m_gradientTab->addTab(gradientChooserPage, i18n(
"Gradients"));
335 if (resources.size() > 0) {
348 KConfigGroup grp = KSharedConfig::openConfig()->group(
"krita").group(
"Toolbar BrushesAndStuff");
349 int iconsize = grp.readEntry(
"IconSize", 22);
351 int buttonsize = grp.readEntry(
"ButtonSize", 32);
376 QWidgetAction* action =
new QWidgetAction(
this);