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 () |
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.
Gui::LocationDialogUi< Ui >::LocationDialogUi | ( | QWidget * | parent = nullptr , |
Qt::WindowFlags | fl = Qt::WindowFlags() |
||
) |
References Gui::LocationDialogUi< Ui >::retranslate().
|
virtual |
|
protectedvirtual |
Implements Gui::LocationDialog.
References Gui::LocationDialogUi< Ui >::retranslate().
|
virtual |
Implements Gui::LocationDialog.
Base::Vector3d Gui::LocationDialogUi< Ui >::getPosition | ( | ) | const |
void Gui::LocationDialogUi< Ui >::retranslate | ( | ) |
References draftguitools.gui_setstyle::translate.
Referenced by Gui::LocationDialogUi< Ui >::changeEvent(), and Gui::LocationDialogUi< Ui >::LocationDialogUi().
void Gui::LocationDialogUi< Ui >::setPosition | ( | const Base::Vector3d & | v | ) |