#include <boatdef-panel.h>
Public Slots | |
| virtual void | languageChange () |
| virtual void | slotRemove () |
| virtual void | slotUpdate (const CBoatElement &newelement) |
Signals | |
| void | signalUpdate (const CBoatDef &newdef) |
Public Member Functions | |
| CBoatDefPanel (QWidget *parent) | |
| void | setDef (const CBoatDef &newdef) |
Protected Attributes | |
| QTabWidget * | tabs |
| vector< CBoatElementWidget * > | elementwidget |
| CBoatDef | def |
Definition at line 111 of file boatdef-panel.h.
| CBoatDefPanel::CBoatDefPanel | ( | QWidget * | parent | ) |
The constructor.
| parent | the parent widget |
Definition at line 226 of file boatdef-panel.cpp.
References tabs.
| void CBoatDefPanel::setDef | ( | const CBoatDef & | newdef | ) |
We were passed a new boat definition, update the widgets.
| newdef | The new boat definition |
Definition at line 250 of file boatdef-panel.cpp.
References def, elementwidget, signalUpdate(), slotRemove(), slotUpdate(), and tabs.
Referenced by CFormBoat::setDef().
| void CBoatDefPanel::languageChange | ( | ) | [virtual, slot] |
Sets the strings of the subwidgets using the current language.
Definition at line 238 of file boatdef-panel.cpp.
References elementwidget.
Referenced by CFormBoat::languageChange().
| void CBoatDefPanel::slotRemove | ( | ) | [virtual, slot] |
The user requested the removal of the current boat element.
Definition at line 282 of file boatdef-panel.cpp.
References def, elementwidget, signalUpdate(), and tabs.
Referenced by setDef().
| void CBoatDefPanel::slotUpdate | ( | const CBoatElement & | newelement | ) | [virtual, slot] |
The user updated the current boat element.
| newelement | The new boat element |
Definition at line 299 of file boatdef-panel.cpp.
References def, signalUpdate(), and tabs.
Referenced by setDef().
| void CBoatDefPanel::signalUpdate | ( | const CBoatDef & | newdef | ) | [signal] |
Signals that the boat definition was modified.
Referenced by setDef(), slotRemove(), and slotUpdate().
QTabWidget* CBoatDefPanel::tabs [protected] |
the tabbed widget, with one tab per boat element
Definition at line 131 of file boatdef-panel.h.
Referenced by CBoatDefPanel(), setDef(), slotRemove(), and slotUpdate().
vector<CBoatElementWidget*> CBoatDefPanel::elementwidget [protected] |
the widgets for the boat element parameters
Definition at line 134 of file boatdef-panel.h.
Referenced by languageChange(), setDef(), and slotRemove().
CBoatDef CBoatDefPanel::def [protected] |
the boat definition we are operating one
Definition at line 137 of file boatdef-panel.h.
Referenced by setDef(), slotRemove(), and slotUpdate().
1.5.6