NDEVR
API Documentation
AddressWidget.h
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;
12 class NDEVR_API AddressWidget : public QWidget, public DesignObjectWidgetInterface
13 {
14 Q_OBJECT
15 public:
20 AddressWidget(QWidget* parent = nullptr);
24 void init();
29 void onTargetUpdated(UUID id) override;
33 void retranslate() const;
39 bool event(QEvent* event) override;
40 public slots:
44 void onAddressEditedSlot();
45 protected:
46 QCustomComboBox* m_state;
47 QCustomLineEdit* m_street;
48 QCustomLineEdit* m_city;
49 QCustomLineEdit* m_zip_code;
50 bool m_use_full_state_name = false;
51 };
52}
53#endif
A base class for interacting with one or more DesignObjects.
A compact way to present a list of options to the user.
A line edit allows users to enter and edit a single line of plain text with useful editing functions,...
The primary namespace for the NDEVR SDK.