Geometrize  1.0
An application for geometrizing images into geometric primitives
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
openurldialog.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <QDialog>
4 
5 class QEvent;
6 
7 namespace Ui
8 {
9 class OpenUrlDialog;
10 }
11 
12 namespace geometrize
13 {
14 
15 namespace dialog
16 {
17 
21 class OpenUrlDialog : public QDialog
22 {
23  Q_OBJECT
24 
25 public:
26  explicit OpenUrlDialog(QWidget* parent = nullptr);
27  virtual ~OpenUrlDialog();
28 
33  QUrl getUrl() const;
34 
35 protected:
36  void changeEvent(QEvent*) override;
37 
38 private slots:
39  void on_buttonBox_accepted();
40  void on_buttonBox_rejected();
41 
42 private:
43  void populateUi();
44 
45  Ui::OpenUrlDialog* ui;
46 };
47 
48 }
49 
50 }
QUrl getUrl() const
getUrl Gets the URL the user entered into the dialog.
Definition: openurldialog.cpp:29
Ui::OpenUrlDialog * ui
Definition: openurldialog.h:45
OpenUrlDialog(QWidget *parent=nullptr)
Definition: openurldialog.cpp:15
virtual ~OpenUrlDialog()
Definition: openurldialog.cpp:24
The OpenUrlDialog class models the UI for the dialog box users can enter URLs into to open remote ima...
Definition: openurldialog.h:21
void populateUi()
Definition: openurldialog.cpp:60
void on_buttonBox_rejected()
Definition: openurldialog.cpp:46
void on_buttonBox_accepted()
Definition: openurldialog.cpp:41
void changeEvent(QEvent *) override
Definition: openurldialog.cpp:51