VPTissue Reference Manual
BackgroundDialog.h
Go to the documentation of this file.
1 #ifndef SIMPT_EDITOR_BACKGROUND_DIALOG_H_INCLUDED
2 #define SIMPT_EDITOR_BACKGROUND_DIALOG_H_INCLUDED
3 /*
4  * Copyright 2011-2016 Universiteit Antwerpen
5  *
6  * Licensed under the EUPL, Version 1.1 or as soon they will be approved by
7  * the European Commission - subsequent versions of the EUPL (the "Licence");
8  * You may not use this work except in compliance with the Licence.
9  * You may obtain a copy of the Licence at: http://ec.europa.eu/idabc/eupl5
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the Licence is distributed on an "AS IS" basis,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the Licence for the specific language governing
15  * permissions and limitations under the Licence.
16  */
22 #include <QDialog>
23 #include <QPixmap>
24 
25 class QCheckBox;
26 class QGraphicsPixmapItem;
27 class QLineEdit;
28 
29 namespace SimPT_Editor {
30 
31 class TransformationWidget;
32 
36 class BackgroundDialog : public QDialog
37 {
38  Q_OBJECT
39 public:
46  BackgroundDialog(QGraphicsPixmapItem *item, QWidget *parent = nullptr);
47 
51  virtual ~BackgroundDialog();
52 
53 private slots:
54  void BrowseImage();
55  void UpdateVisibility(bool visible);
56  void UpdateTransformation();
57 
58 private:
59  void SetupGui();
60 
61 private:
62  QGraphicsPixmapItem* m_item;
63  QPixmap m_pixmap;
64 
65  QLineEdit* m_file_path;
66  QCheckBox* m_visible;
67  TransformationWidget* m_transformation;
68 };
69 
70 } // namespace
71 
72 #endif // end-of-include-guard
Dialog for setting the background image.
Namespace for SimPT tissue editor package.
Definition: Cell.h:32
BackgroundDialog(QGraphicsPixmapItem *item, QWidget *parent=nullptr)
Constructor.
Qt GUI to enter a transformation of an item.
virtual ~BackgroundDialog()
Destructor.
see the online Qt documentation
see the online Qt documentation