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:
Collaboration diagram for sf::AxesCoordEdit:

Public Types

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

Public Member Functions

 AxesCoordEdit (QWidget *parent=nullptr)
 Constructor.
 
Q_SIGNAL void changed (AxesCoordEdit *widget)
 Declares a typed getter and setter for the 'coordStyle' property.
 
gmi::AxesCoord getCoord () const
 Gets the current values as a coordinate.
 
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.
 
VariableListModelgetVariableListModel () 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.
 
- 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.
 
- 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
 

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

◆ changed()

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

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

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

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.

Signal for when a coordinate value has been changed.

◆ getCoord()

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

Gets the current values as a coordinate.

◆ handleClipboard()

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

Overridden from base class.

Parameters
flag

Reimplemented from sf::VariableListView.

◆ setCoord()

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

Sets the current values from a coordinate.

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: