14#include <QResizeEvent>
17#include <klocalizedstring.h>
26#include <ksqueezedtextlabel.h>
32 m_lblName->setTextElideMode(Qt::ElideMiddle);
33 m_lblName->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Fixed);
47 QVBoxLayout *mainLayout =
new QVBoxLayout(
this);
48 mainLayout->setSizeConstraint(QLayout::SetMinAndMaxSize);
49 mainLayout->setContentsMargins(0, 0, 0, 0);
91 m_lblName->setText(QString(
"%1").arg(i18n(pattern->name().toUtf8().replace(
"_",
" "))));
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
void setPreviewOrientation(Qt::Orientation orientation)
determines whether the preview right or below the splitter
void setPreviewTiled(bool tiled)
determines whether the preview should tile the resource's image or not
void setCurrentResource(KoResourceSP resource)
Sets the item representing the resource as selected.
KoResourceSP currentResource
void setCurrentItem(int row)
void showTaggingBar(bool show)
void setSynced(bool sync)
void resourceSelected(KoResourceSP resource)
Emitted when a resource was selected.
~KisSeExprScriptChooser() override
KSqueezedTextLabel * m_lblName
void setCurrentItem(int row)
KisSeExprScriptChooser(QWidget *parent=0)
void setPreviewOrientation(Qt::Orientation orientation)
determines whether the preview right or below the splitter
KisResourceItemChooser * m_itemChooser
void update(KoResourceSP resource)
void setCurrentScript(KoResourceSP resource)
KoResourceSP currentResource()
int resourceCount() const
QSharedPointer< T > firstResource() const
Return the first resource available.
const QString SeExprScripts
static KoResourceServerProvider * instance()