#include <widgetprofile.h>
Public Member Functions | |
| CWidgetProfile (QWidget *, CProfile *, QString, CWidgetProfileVert *) | |
Public Attributes | |
| QLabel * | lblLuff |
| QLabel * | lblDepth |
| QLabel * | lblPercent |
| QLabel * | lblLeech |
| QLabel * | lblLuffSlopeValue |
| QLabel * | lblLuffSlopeDegrees |
| QLabel * | lblMaxPosValue |
| QLabel * | lblMaxPosCord |
| QLabel * | lblLeechSlopeValue |
| QLabel * | lblLeechSlopeDegrees |
| QSpinBox * | spinLuff |
| QSpinBox * | spinDepth |
| QSpinBox * | spinLeech |
Protected Slots | |
| virtual void | languageChange () |
| void | slotChanged () |
Protected Attributes | |
| CLabelProfile * | lblDraw |
| CWidgetProfileVert * | widgetVert |
| CProfile * | profile |
| bool | active |
Definition at line 72 of file widgetprofile.h.
| CWidgetProfile::CWidgetProfile | ( | QWidget * | parent, | |
| CProfile * | ptr, | |||
| QString | caption, | |||
| CWidgetProfileVert * | vert | |||
| ) |
The constructor.
| parent | the parent dialog | |
| ptr | a pointer to the profile we are displaying / editing | |
| caption | caption for the profile view (e.g. top,middle..) QLabel* lblLeech; | |
| vert | the vertical repartition widget |
create the drawing area
Definition at line 122 of file widgetprofile.cpp.
References active, CProfile::getDepth(), CProfile::getLeech(), CProfile::getLuff(), languageChange(), lblDepth, lblDraw, lblLeech, lblLeechSlopeDegrees, lblLeechSlopeValue, lblLuff, lblLuffSlopeDegrees, lblLuffSlopeValue, lblMaxPosCord, lblMaxPosValue, lblPercent, profile, slotChanged(), spinDepth, spinLeech, and spinLuff.
| void CWidgetProfile::languageChange | ( | ) | [protected, virtual, slot] |
Sets the strings of the subwidgets using the current language.
Definition at line 241 of file widgetprofile.cpp.
References lblDepth, lblLeech, lblLeechSlopeDegrees, lblLuff, lblLuffSlopeDegrees, lblMaxPosCord, and lblPercent.
Referenced by CWidgetProfile().
| void CWidgetProfile::slotChanged | ( | ) | [protected, slot] |
Called when one of the spinboxes changes value.
Definition at line 256 of file widgetprofile.cpp.
References active, CProfile::getMaxPos(), lblDraw, lblLeechSlopeValue, lblLuffSlopeValue, lblMaxPosValue, profile, CProfile::slope(), spinDepth, spinLeech, spinLuff, CWidgetProfileVert::updateLabel(), and widgetVert.
Referenced by CWidgetProfile().
| QLabel* CWidgetProfile::lblLuff |
label for luff
Definition at line 86 of file widgetprofile.h.
Referenced by CWidgetProfile(), and languageChange().
| QLabel* CWidgetProfile::lblDepth |
label for depth
Definition at line 88 of file widgetprofile.h.
Referenced by CWidgetProfile(), and languageChange().
| QLabel* CWidgetProfile::lblPercent |
label for percent
Definition at line 90 of file widgetprofile.h.
Referenced by CWidgetProfile(), and languageChange().
| QLabel* CWidgetProfile::lblLeech |
label for leech
Definition at line 92 of file widgetprofile.h.
Referenced by CWidgetProfile(), and languageChange().
label for Luff slope value
Definition at line 95 of file widgetprofile.h.
Referenced by CWidgetProfile(), and slotChanged().
label for Luff slope 'degrees'
Definition at line 97 of file widgetprofile.h.
Referenced by CWidgetProfile(), and languageChange().
| QLabel* CWidgetProfile::lblMaxPosValue |
label for max depth position
Definition at line 99 of file widgetprofile.h.
Referenced by CWidgetProfile(), and slotChanged().
| QLabel* CWidgetProfile::lblMaxPosCord |
label for max depth 'cord'
Definition at line 101 of file widgetprofile.h.
Referenced by CWidgetProfile(), and languageChange().
label for leech slope value
Definition at line 103 of file widgetprofile.h.
Referenced by CWidgetProfile(), and slotChanged().
label for leech slope 'degrees'
Definition at line 105 of file widgetprofile.h.
Referenced by CWidgetProfile(), and languageChange().
| QSpinBox* CWidgetProfile::spinLuff |
spinbox for luff
Definition at line 108 of file widgetprofile.h.
Referenced by CWidgetProfile(), and slotChanged().
| QSpinBox* CWidgetProfile::spinDepth |
spinbox for depth
Definition at line 110 of file widgetprofile.h.
Referenced by CFormMould::CFormMould(), CWidgetProfile(), and slotChanged().
| QSpinBox* CWidgetProfile::spinLeech |
spinbox for leech
Definition at line 112 of file widgetprofile.h.
Referenced by CWidgetProfile(), and slotChanged().
CLabelProfile* CWidgetProfile::lblDraw [protected] |
drawing area for the profile
Definition at line 116 of file widgetprofile.h.
Referenced by CWidgetProfile(), and slotChanged().
CWidgetProfileVert* CWidgetProfile::widgetVert [protected] |
widget for the vertical repartition
Definition at line 118 of file widgetprofile.h.
Referenced by slotChanged().
CProfile* CWidgetProfile::profile [protected] |
the profile we are displaying
Definition at line 121 of file widgetprofile.h.
Referenced by CWidgetProfile(), and slotChanged().
bool CWidgetProfile::active [protected] |
active flag to disable slotChanged
Definition at line 123 of file widgetprofile.h.
Referenced by CWidgetProfile(), and slotChanged().
1.5.6