NDEVR
API Documentation
CustomerInfoSheet.h
1#pragma once
2#include "NDEVR/Headers/QTDesignObject.h"
3#include "Base/Headers/Pointer.hpp"
4#include "NDEVR/Headers/Editor.h"
5#include <QWidget>
6namespace Ui
7{
8 class CustomerInfoSheetUI;
9}
10namespace NDEVR
11{
12 class Customer;
19 {
20 Q_OBJECT
21 public:
27 CustomerInfoSheet(bool is_business, const DynamicPointer<QTDesignObject>& customer, QWidget* parent = nullptr);
31 virtual bool fullscreenTouch() const override { return true; }
36 protected:
40 QSize sizeHint() const override;
42 void updateValues() final override;
47 protected slots:
52 protected:
53 Ui::CustomerInfoSheetUI* ui;
54 };
55}
The equivelent of std::vector but with a bit more control.
Definition Buffer.hpp:58
Customer customer() const
Returns the Customer model for this editor.
void updateValues() final override
Updates the displayed values from the underlying design object.
Ui::CustomerInfoSheetUI * ui
The Qt Designer-generated UI.
virtual bool fullscreenTouch() const override
Returns whether this editor should display fullscreen on touch devices.
CustomerInfoSheet(bool is_business, const DynamicPointer< QTDesignObject > &customer, QWidget *parent=nullptr)
Constructs the customer info sheet editor.
void descriptionChangedSlot()
Handles changes to the description field.
QSize sizeHint() const override
Returns the recommended size for the editor.
void onAddressEditedSlot()
Handles changes to the address field.
Buffer< QWidget * > printableWidgets() override
Returns the list of widgets suitable for printing.
Model representing a customer entity with contact information, jobs, and devices.
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Definition Pointer.hpp:356
Editor(QWidget *parent=nullptr)
Constructs an Editor with no design object target.
The primary namespace for the NDEVR SDK.