Gui::LocationUi< Ui > Class Template Reference
This template class does basically the same as LocationDialogUi unless that it doesn inherit from a widget but only from the UI_-generated class. More...
#include <InputVector.h>
Public Member Functions | |
bool | directionActivated (LocationDialog *dlg, int index) |
Base::Vector3d | getDirection () const |
Base::Vector3d | getPosition () const |
LocationUi (QDialog *dlg) | |
void | retranslate (QDialog *dlg) |
void | setDirection (const Base::Vector3d &dir) |
void | setPosition (const Base::Vector3d &v) |
~LocationUi () | |
Detailed Description
template<class Ui>
class Gui::LocationUi< Ui >
This template class does basically the same as LocationDialogUi unless that it doesn inherit from a widget but only from the UI_-generated class.
Thus, this class can be used as composition in dialog-based classes without including the ui_-generated header file. The Ui_-class can simply be forward declared, then.
Constructor & Destructor Documentation
◆ LocationUi()
template<class Ui >
Gui::LocationUi< Ui >::LocationUi | ( | QDialog * | dlg | ) |
References Gui::LocationUi< Ui >::retranslate().
◆ ~LocationUi()
template<class Ui >
Gui::LocationUi< Ui >::~LocationUi | ( | ) |
Member Function Documentation
◆ directionActivated()
template<class Ui >
bool Gui::LocationUi< Ui >::directionActivated | ( | LocationDialog * | dlg, |
int | index | ||
) |
◆ getDirection()
template<class Ui >
Base::Vector3d Gui::LocationUi< Ui >::getDirection | ( | ) | const |
Referenced by Gui::Dialog::Placement::getDirection(), and Gui::Dialog::Transform::getDirection().
◆ getPosition()
template<class Ui >
Base::Vector3d Gui::LocationUi< Ui >::getPosition | ( | ) | const |
◆ retranslate()
template<class Ui >
void Gui::LocationUi< Ui >::retranslate | ( | QDialog * | dlg | ) |
◆ setDirection()
template<class Ui >
void Gui::LocationUi< Ui >::setDirection | ( | const Base::Vector3d & | dir | ) |
◆ setPosition()
template<class Ui >
void Gui::LocationUi< Ui >::setPosition | ( | const Base::Vector3d & | v | ) |
The documentation for this class was generated from the following file:
- src/Gui/InputVector.h