Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_seexpr_script_chooser.h
Go to the documentation of this file.
1/*
2 * This file is part of Krita
3 *
4 * SPDX-FileCopyrightText: 2020 L. E. Segovia <amy@amyspark.me>
5 *
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
8
9#ifndef KIS_SEEXPR_SCRIPT_CHOOSER_H_
10#define KIS_SEEXPR_SCRIPT_CHOOSER_H_
11
12#include <QFrame>
13#include <kritaui_export.h>
14#include <KSqueezedTextLabel>
16
17class KRITAUI_EXPORT KisSeExprScriptChooser : public QFrame
18{
19
20 Q_OBJECT
21
22public:
23 KisSeExprScriptChooser(QWidget *parent = 0);
24 ~KisSeExprScriptChooser() override;
25
28 KoResourceSP currentResource();
29 void setCurrentScript(KoResourceSP resource);
30 void setCurrentItem(int row);
32 void setPreviewOrientation(Qt::Orientation orientation);
33
34Q_SIGNALS:
35
39
40private Q_SLOTS:
41
42 void update(KoResourceSP resource);
43
44private:
45
46 KSqueezedTextLabel *m_lblName;
48};
49
50#endif // KIS_SEEXPR_SCRIPT_CHOOSER_H_
51
void resourceSelected(KoResourceSP resource)
Emitted when a resource was selected.
KisResourceItemChooser * m_itemChooser