Gui::LocationDialogUi< Ui > Class Template Reference

This is the template class that implements the interface of LocationDialog. More...

#include <InputVector.h>

Public Member Functions

Base::Vector3d getDirection () const
 
Base::Vector3d getPosition () const
 
 LocationDialogUi (QWidget *parent=nullptr, Qt::WindowFlags fl=Qt::WindowFlags())
 
void retranslate ()
 
void setPosition (const Base::Vector3d &v)
 
virtual ~LocationDialogUi ()
 
- Public Member Functions inherited from Gui::LocationDialog
virtual Base::Vector3d getDirection () const =0
 
Base::Vector3d getUserDirection (bool *ok=nullptr) const
 

Protected Member Functions

void changeEvent (QEvent *e)
 
- Protected Member Functions inherited from Gui::LocationDialog
virtual void changeEvent (QEvent *e)=0
 
 LocationDialog (QWidget *parent=nullptr, Qt::WindowFlags fl=Qt::WindowFlags())
 
virtual ~LocationDialog ()
 

Detailed Description

template<class Ui>
class Gui::LocationDialogUi< Ui >

This is the template class that implements the interface of LocationDialog.

The template argument can be the Ui interface class built by uic out of a .ui file. This class might be very useful for dialogs where a combo box is used to define a direction vector by the user. For such classes the programmer doesn't have to write a subclass to implement the appropriate signals/slots. Instead it's possible to omit this further class and use LocationDialogUi parametrized with the generated Ui class.

Author
Werner Mayer

Constructor & Destructor Documentation

◆ LocationDialogUi()

template<class Ui >
Gui::LocationDialogUi< Ui >::LocationDialogUi ( QWidget parent = nullptr,
Qt::WindowFlags  fl = Qt::WindowFlags() 
)

◆ ~LocationDialogUi()

template<class Ui >
virtual Gui::LocationDialogUi< Ui >::~LocationDialogUi ( )
virtual

Member Function Documentation

◆ changeEvent()

template<class Ui >
void Gui::LocationDialogUi< Ui >::changeEvent ( QEvent e)
protectedvirtual

◆ getDirection()

template<class Ui >
Base::Vector3d Gui::LocationDialogUi< Ui >::getDirection ( ) const
virtual

Implements Gui::LocationDialog.

◆ getPosition()

template<class Ui >
Base::Vector3d Gui::LocationDialogUi< Ui >::getPosition ( ) const

◆ retranslate()

◆ setPosition()

template<class Ui >
void Gui::LocationDialogUi< Ui >::setPosition ( const Base::Vector3d v)

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