CSailViewerPanel Class Reference

#include <sailviewer-panel.h>

List of all members.

Public Slots

virtual void languageChange ()
virtual void slotAzimuth (real azimuth)
virtual void slotElevation (real azimuth)

Public Member Functions

 CSailViewerPanel (QWidget *parent, const enumViewMode viewMode, bool show_sliders, bool show_labeling=true)
void setObject (const CPanelGroup &obj)
void keyPressEvent (QKeyEvent *e)

Protected Attributes

QGroupBox * grpParams
QLabel * lblAzimuth
QLabel * lblElevation
QLabel * lblElevationStatic
QLabel * lblAzimuthStatic
QGroupBox * grpControls
QPushButton * btnResetView
QPushButton * btnLabeling
QPushButton * btnZoomIn
QPushButton * btnZoomOut
CSailViewersailDisp


Detailed Description

The main dialog of the Sailcut application.

Definition at line 33 of file sailviewer-panel.h.


Constructor & Destructor Documentation

CSailViewerPanel::CSailViewerPanel ( QWidget *  parent,
const enumViewMode  viewMode,
bool  show_sliders,
bool  show_labeling = true 
)

Constructs a CSailViewerPanel object.

Parameters:
parent The parent widget
viewMode The viewing mode (shaded or wireframe)
show_sliders Should the elevation and azimuth sliders be displayed?
show_labeling Should the "Labeling" button be displayed?

Definition at line 37 of file sailviewer-panel.cpp.

References btnLabeling, btnResetView, btnZoomIn, btnZoomOut, grpControls, grpParams, languageChange(), lblAzimuth, lblAzimuthStatic, lblElevation, lblElevationStatic, sailDisp, slotAzimuth(), and slotElevation().


Member Function Documentation

void CSailViewerPanel::setObject ( const CPanelGroup obj  ) 

Change the displayed object.

Parameters:
obj the new object to display

Definition at line 157 of file sailviewer-panel.cpp.

References sailDisp, and CSailViewer::setObject().

void CSailViewerPanel::keyPressEvent ( QKeyEvent *  e  ) 

We received a keypress, we pass it down to the CSailViewer.

Definition at line 124 of file sailviewer-panel.cpp.

References CSailViewer::keyPressEvent(), and sailDisp.

void CSailViewerPanel::languageChange (  )  [virtual, slot]

Sets the strings of the subwidgets using the current language.

Definition at line 133 of file sailviewer-panel.cpp.

References btnLabeling, btnResetView, btnZoomIn, btnZoomOut, grpControls, grpParams, lblAzimuthStatic, and lblElevationStatic.

Referenced by CSailViewerPanel().

void CSailViewerPanel::slotAzimuth ( real  azimuth  )  [virtual, slot]

The azimuth was changed, update the corresponding label.

Parameters:
azimuth 

Definition at line 168 of file sailviewer-panel.cpp.

References lblAzimuth.

Referenced by CSailViewerPanel().

void CSailViewerPanel::slotElevation ( real  elevation  )  [virtual, slot]

The elevation changed, update the corresponding label.

Parameters:
elevation 

Definition at line 182 of file sailviewer-panel.cpp.

References lblElevation.

Referenced by CSailViewerPanel().


Member Data Documentation

QGroupBox* CSailViewerPanel::grpParams [protected]

groupbox for parameters

Definition at line 52 of file sailviewer-panel.h.

Referenced by CSailViewerPanel(), and languageChange().

QLabel* CSailViewerPanel::lblAzimuth [protected]

label for current azimuth

Definition at line 54 of file sailviewer-panel.h.

Referenced by CSailViewerPanel(), and slotAzimuth().

QLabel* CSailViewerPanel::lblElevation [protected]

label for current elevation

Definition at line 56 of file sailviewer-panel.h.

Referenced by CSailViewerPanel(), and slotElevation().

static label saying "elevation"

Definition at line 58 of file sailviewer-panel.h.

Referenced by CSailViewerPanel(), and languageChange().

static label saying "azimuth"

Definition at line 60 of file sailviewer-panel.h.

Referenced by CSailViewerPanel(), and languageChange().

QGroupBox* CSailViewerPanel::grpControls [protected]

groupbox for the view controls

Definition at line 62 of file sailviewer-panel.h.

Referenced by CSailViewerPanel(), and languageChange().

QPushButton* CSailViewerPanel::btnResetView [protected]

Reset View button

Definition at line 64 of file sailviewer-panel.h.

Referenced by CSailViewerPanel(), and languageChange().

QPushButton* CSailViewerPanel::btnLabeling [protected]

Labeling button

Definition at line 66 of file sailviewer-panel.h.

Referenced by CSailViewerPanel(), and languageChange().

QPushButton* CSailViewerPanel::btnZoomIn [protected]

Zoom In button

Definition at line 68 of file sailviewer-panel.h.

Referenced by CSailViewerPanel(), and languageChange().

QPushButton* CSailViewerPanel::btnZoomOut [protected]

Zoom Out button

Definition at line 70 of file sailviewer-panel.h.

Referenced by CSailViewerPanel(), and languageChange().

display area for the 3d sail

Definition at line 73 of file sailviewer-panel.h.

Referenced by CSailViewerPanel(), keyPressEvent(), and setObject().


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