API Documentation
Loading...
Searching...
No Matches
AddressWidget.h
Go to the documentation of this file.
1#pragma once
2#include <NDEVR/DesignObjectWidgetInterface.h>
3#if NDEVR_CONTACT_INFO
4#include <QWidget>
5namespace NDEVR
6{
7 class QCustomComboBox;
8 class QCustomLineEdit;
9 /**--------------------------------------------------------------------------------------------------
10 \brief Allows the user to enter in or view an Address
11 **/
12 class NDEVR_API AddressWidget : public QWidget, public DesignObjectWidgetInterface
13 {
14 Q_OBJECT
15 public:
16 AddressWidget(QWidget* parent = nullptr);
17 void init();
18 void onTargetUpdated(UUID id) override;
19 void retranslate() const;
20 bool event(QEvent* event) override;
21 public slots:
22 void onAddressEditedSlot();
23 protected:
24 QCustomComboBox* m_state;
25 QCustomLineEdit* m_street;
26 QCustomLineEdit* m_city;
27 QCustomLineEdit* m_zip_code;
28 bool m_use_full_state_name = false;
29 };
30}
31#endif
#define NDEVR_API
Definition DLLInfo.h:50
Definition ACIColor.h:37