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 () | |
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.
Gui::LocationUi< Ui >::LocationUi | ( | QDialog * | dlg | ) |
References Gui::LocationUi< Ui >::retranslate().
Gui::LocationUi< Ui >::~LocationUi | ( | ) |
bool Gui::LocationUi< Ui >::directionActivated | ( | LocationDialog * | dlg, |
int | index | ||
) |
Base::Vector3d Gui::LocationUi< Ui >::getDirection | ( | ) | const |
Referenced by Gui::Dialog::Placement::getDirection(), and Gui::Dialog::Transform::getDirection().
Base::Vector3d Gui::LocationUi< Ui >::getPosition | ( | ) | const |
void Gui::LocationUi< Ui >::retranslate | ( | QDialog * | dlg | ) |
void Gui::LocationUi< Ui >::setDirection | ( | const Base::Vector3d & | dir | ) |
void Gui::LocationUi< Ui >::setPosition | ( | const Base::Vector3d & | v | ) |