Kstars

thumbnaileditor.h
1 /*
2  SPDX-FileCopyrightText: 2005 Jason Harris <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include <QMouseEvent>
10 #include <QPaintEvent>
11 
12 #include <QDialog>
13 
14 #include "ui_thumbnaileditor.h"
15 
16 class ThumbnailPicker;
17 
18 class ThumbnailEditorUI : public QFrame, public Ui::ThumbnailEditor
19 {
20  Q_OBJECT
21  public:
22  explicit ThumbnailEditorUI(QWidget *parent);
23 };
24 
25 class ThumbnailEditor : public QDialog
26 {
27  Q_OBJECT
28  public:
29  ThumbnailEditor(ThumbnailPicker *_tp, double _w, double _h);
30  ~ThumbnailEditor() override = default;
31  QPixmap thumbnail();
32 
33  private slots:
34  void slotUpdateCropLabel();
35 
36  private:
37  ThumbnailEditorUI *ui;
38  ThumbnailPicker *tp;
39  double w, h;
40 };
Q_OBJECTQ_OBJECT
Dialog for modifying an object's thumbnail image.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Mon Aug 15 2022 04:04:06 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.