Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::AxesCoordEdit Class Referencefinal

Widget for editing sf::Variable value types integer, floating point and single line string. More...

#include <AxesCoordEdit.h>

Inheritance diagram for sf::AxesCoordEdit:
[legend]
Collaboration diagram for sf::AxesCoordEdit:
[legend]

Public Types

enum  CoordStyle { csNormal , csFocus , csVector , csAngles }
 Style of a coordinate. More...

Public Member Functions

 AxesCoordEdit (QWidget *parent=nullptr)
 Constructor.
QSize sizeHint () const override
 Overridden from base class.
CoordStyle getCoordStyle () const
 Declares a typed getter and setter for the 'coordStyle' property.
void setCoordStyle (CoordStyle)
gmi::EAxisValueType getValueType () const
 Declares a typed getter and setter for the 'valueType' property.
void setValueType (gmi::EAxisValueType)
gmi::Controller * getController () const
 Declares a typed getter and setter for the controller. This is not a Qt property at all.
void setController (gmi::Controller *)
Q_SIGNAL void changed (AxesCoordEdit *widget)
 Signal for when a coordinate value has been changed.
gmi::AxesCoord getCoord () const
 Gets the current values as a coordinate.
gmi::AxesCoord getAccuracy () const
 Get the accuracy for this widget coord.
void setCoord (const gmi::AxesCoord &)
 Sets the current values from a coordinate.
Public Member Functions inherited from sf::VariableListView
 VariableListView (QWidget *parent=nullptr)
 Constructor.
bool isRequiredProperty (const QString &name) override
 Overridden from base class.
VariableListModel * getVariableListModel () const
 Gets the sf::VariableListModel attached to this instance.
int getNameLevel () const
 Gets the levels of names displayed of the variables in the list.
void setNameLevel (int level=-1) const
 Sets the levels of names displayed of the variables in the list.
void setRowCheckbox (bool enabled) const
 Enables the selection of rows. The sf::Variable::getData() returns true when selected.
bool hasRowCheckbox () const
 Gets if the row selection is enabled. By default, the row selection is enabled.
void setColumnResizeMode () const
 Sets the resize mode for the columns based column field assignment.
bool isReadOnly () const
 Gets the readonly status of the list.
void setReadOnly (bool flag)
 Sets the readonly status of the list.
Public Member Functions inherited from sf::ObjectExtension
virtual void addPropertyPages (PropertySheetDialog *sheet)
 Adds the pages specific for this object.
virtual bool getSaveChildren () const
 Gets if the children needs saving by the FormBuilder class.

Protected Member Functions

void handleClipboard (bool flag) override
 Overridden from base class.
int calculateRequiredHeight () const
 Calculate the minimum required height for the amount of rows.
Protected Member Functions inherited from sf::VariableListView
int editableColumn () const
 Gets the first editable column number.
bool editRow () const
 Edits the selected row when editable.
bool toggleRow ()
 Toggles the row check box in the view for the current selected row.
void keyPressEvent (QKeyEvent *event) override
 Overridden from base class.
void initSelection () const
 Initialize selection of the row.
Protected Member Functions inherited from sf::ObjectExtension
 ObjectExtension (QObject *object)
 Protected constructor only. Inlined so no external libs are need for designer.
virtual ~ObjectExtension ()=default
 Virtual destructor.

Properties

CoordStyle coordStyle
sf::gmi::EAxisValueType valueType
Properties inherited from sf::VariableListView
int nameLevel
bool rowCheckbox
bool readOnly

Additional Inherited Members

Static Public Member Functions inherited from sf::ObjectExtension
static bool inDesigner ()
 Gets the designer status.
static QObject * getExtensionParent (QObject *obj, bool first=true)
 Return if the passed object has this type as parent. It starts by testing the passed object itself.

Detailed Description

Widget for editing sf::Variable value types integer, floating point and single line string.

Member Enumeration Documentation

◆ CoordStyle

Style of a coordinate.

Enumerator
csNormal 

Normal viewing having check boxes.

csFocus 

Focus view is the 3D vector and 2 angles.

csVector 

3D space vector (xyz) only.

csAngles 

Angles only.

Constructor & Destructor Documentation

◆ AxesCoordEdit()

sf::AxesCoordEdit::AxesCoordEdit ( QWidget * parent = nullptr)
explicit

Constructor.

Member Function Documentation

◆ calculateRequiredHeight()

int sf::AxesCoordEdit::calculateRequiredHeight ( ) const
protected

Calculate the minimum required height for the amount of rows.

◆ changed()

Q_SIGNAL void sf::AxesCoordEdit::changed ( AxesCoordEdit * widget)

Signal for when a coordinate value has been changed.

◆ getAccuracy()

gmi::AxesCoord sf::AxesCoordEdit::getAccuracy ( ) const

Get the accuracy for this widget coord.

◆ getController()

gmi::Controller * sf::AxesCoordEdit::getController ( ) const
nodiscard

Declares a typed getter and setter for the controller. This is not a Qt property at all.

Sets the motion controller instance to for determining the actual axes.

◆ getCoord()

gmi::AxesCoord sf::AxesCoordEdit::getCoord ( ) const

Gets the current values as a coordinate.

◆ getCoordStyle()

CoordStyle sf::AxesCoordEdit::getCoordStyle ( ) const
nodiscard

Declares a typed getter and setter for the 'coordStyle' property.

◆ getValueType()

gmi::EAxisValueType sf::AxesCoordEdit::getValueType ( ) const
nodiscard

Declares a typed getter and setter for the 'valueType' property.

◆ handleClipboard()

void sf::AxesCoordEdit::handleClipboard ( bool flag)
overrideprotectedvirtual

Overridden from base class.

Parameters
flag

Reimplemented from sf::VariableListView.

◆ setController()

void sf::AxesCoordEdit::setController ( gmi::Controller * )

◆ setCoord()

void sf::AxesCoordEdit::setCoord ( const gmi::AxesCoord & )

Sets the current values from a coordinate.

◆ setCoordStyle()

void sf::AxesCoordEdit::setCoordStyle ( CoordStyle )

◆ setValueType()

void sf::AxesCoordEdit::setValueType ( gmi::EAxisValueType )

◆ sizeHint()

QSize sf::AxesCoordEdit::sizeHint ( ) const
override

Overridden from base class.

Property Documentation

◆ coordStyle

CoordStyle sf::AxesCoordEdit::coordStyle
readwrite

◆ valueType

sf::gmi::EAxisValueType sf::AxesCoordEdit::valueType
readwrite

The documentation for this class was generated from the following file: