CBoatDefPanel Class Reference

#include <boatdef-panel.h>

List of all members.

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


Detailed Description

A panel displaying one tab per element of a given boat definition.

Definition at line 111 of file boatdef-panel.h.


Constructor & Destructor Documentation

CBoatDefPanel::CBoatDefPanel ( QWidget *  parent  ) 

The constructor.

Parameters:
parent the parent widget

Definition at line 226 of file boatdef-panel.cpp.

References tabs.


Member Function Documentation

void CBoatDefPanel::setDef ( const CBoatDef newdef  ) 

We were passed a new boat definition, update the widgets.

Parameters:
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.

Parameters:
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().


Member Data Documentation

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().

the widgets for the boat element parameters

Definition at line 134 of file boatdef-panel.h.

Referenced by languageChange(), setDef(), and slotRemove().

the boat definition we are operating one

Definition at line 137 of file boatdef-panel.h.

Referenced by setDef(), slotRemove(), and slotUpdate().


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

Generated on Sun Mar 22 21:38:32 2009 for Sailcut CAD by  doxygen 1.5.6