Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
/* This file is part of the KDE project
SPDX-FileCopyrightText: 2005-2006 Peter Simonsson <[email protected]>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#ifndef KISDETAILSPANE_H
#define KISDETAILSPANE_H
#include "ui_KisDetailsPaneBase.h"
class QEvent;
class QUrl;
class QStandardItemModel;
struct KisDetailsPanePrivate;
class KisDetailsPane : public QWidget, public Ui_KisDetailsPaneBase
{
Q_OBJECT
public:
KisDetailsPane(QWidget* parent, const QString& header);
~KisDetailsPane() override;
bool eventFilter(QObject* watched, QEvent* e) override;
/// @return the model used in the document list
QStandardItemModel* model() const;
Q_SIGNALS:
/// Emitted when a file is requested to be opened
void openUrl(const QUrl&);
/// This is used to keep all splitters in different details panes synced
void splitterResized(KisDetailsPane* sender, const QList<int>& sizes);
public Q_SLOTS:
/// This is used to keep all splitters in different details panes synced
void resizeSplitter(KisDetailsPane* sender, const QList<int>& sizes);
protected Q_SLOTS:
/// This is called when the selection in the listview changed
virtual void selectionChanged(const QModelIndex& index) = 0;
virtual void openFile();
virtual void openFile(const QModelIndex& index) = 0;
void changePalette();
protected:
enum Extents {
IconExtent = 64,
PreviewExtent = 128
};
private:
KisDetailsPanePrivate * const d;
};
#endif // KISDETAILSPANE_H