Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_workspace_chooser.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2011 Sven Langkamp <sven.langkamp@gmail.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7
8#ifndef KIS_WORKSPACE_CHOOSER_H
9#define KIS_WORKSPACE_CHOOSER_H
10
11#include <QWidget>
12#include <KoResource.h>
13
14class QLineEdit;
15class QPushButton;
16class QGridLayout;
18class KisViewManager;
19
20class KisWorkspaceChooser : public QWidget
21{
22 Q_OBJECT
23public:
24 KisWorkspaceChooser(KisViewManager * view, QWidget* parent = 0);
25 ~KisWorkspaceChooser() override;
26
27private Q_SLOTS:
28 void slotSaveWorkspace();
30 void workspaceSelected( KoResourceSP resource );
31
34 void windowLayoutSelected( KoResourceSP resource );
35
36 void showEvent(QShowEvent*) override;
37
38private:
40 {
42 QLineEdit *nameEdit;
43 QPushButton *saveButton;
44 };
45
47
48 QGridLayout* m_layout;
51
52 ChooserWidgets createChooserWidgets(const QString &resourceType, const QString &title);
53};
54
55#endif // KIS_WORKSPACE_CHOOSER_H
ChooserWidgets m_workspaceWidgets
ChooserWidgets m_windowLayoutWidgets
ChooserWidgets createChooserWidgets(const QString &resourceType, const QString &title)
void showEvent(QShowEvent *) override
KisWorkspaceChooser(KisViewManager *view, QWidget *parent=0)
void workspaceSelected(KoResourceSP resource)
void windowLayoutSelected(KoResourceSP resource)