Krita Source Code Documentation
Loading...
Searching...
No Matches
KisDetailsPane.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 SPDX-FileCopyrightText: 2005-2006 Peter Simonsson <psn@linux.se>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6#ifndef KISDETAILSPANE_H
7#define KISDETAILSPANE_H
8
9#include "ui_KisDetailsPaneBase.h"
10
11class QEvent;
12class QUrl;
13class QStandardItemModel;
14
16
17class KisDetailsPane : public QWidget, public Ui_KisDetailsPaneBase
18{
19 Q_OBJECT
20
21public:
22 KisDetailsPane(QWidget* parent, const QString& header);
23 ~KisDetailsPane() override;
24
25 bool eventFilter(QObject* watched, QEvent* e) override;
26
28 QStandardItemModel* model() const;
29
30Q_SIGNALS:
32 void openUrl(const QUrl&);
33
35 void splitterResized(KisDetailsPane* sender, const QList<int>& sizes);
36
37public Q_SLOTS:
39 void resizeSplitter(KisDetailsPane* sender, const QList<int>& sizes);
40
41protected Q_SLOTS:
43 virtual void selectionChanged(const QModelIndex& index) = 0;
44 virtual void openFile();
45 virtual void openFile(const QModelIndex& index) = 0;
46
47 void changePalette();
48
49protected:
50 enum Extents {
52 PreviewExtent = 128
53 };
54
55private:
57};
58
59#endif // KISDETAILSPANE_H
KisDetailsPane(QWidget *parent, const QString &header)
void resizeSplitter(KisDetailsPane *sender, const QList< int > &sizes)
This is used to keep all splitters in different details panes synced.
void openUrl(const QUrl &)
Emitted when a file is requested to be opened.
QStandardItemModel * model() const
~KisDetailsPane() override
bool eventFilter(QObject *watched, QEvent *e) override
virtual void selectionChanged(const QModelIndex &index)=0
This is called when the selection in the listview changed.
void splitterResized(KisDetailsPane *sender, const QList< int > &sizes)
This is used to keep all splitters in different details panes synced.
virtual void openFile()
virtual void openFile(const QModelIndex &index)=0
KisDetailsPanePrivate *const d