BuildHelpDlg Class Reference

BuildHelpDlg is the design sidebar widget displayed next to BuildGLWidget. More...

#include <BuildHelpDlg.h>

Inherits SizedWidget.

Inheritance diagram for BuildHelpDlg:

Inheritance graph
[legend]
Collaboration diagram for BuildHelpDlg:

Collaboration graph
[legend]
List of all members.

Public Slots

void changeAction (bool remove)
void setTilesCount (int count)
void setPieceCount (int count)
void completePicsWidgets ()
 called when the pieces XML is done downloading and it is ok to create the piece familiy selection widgets.
void updateZoom (int v)
 the zoom was externllu changed probably by the mouse wheel.

Signals

void changedAction (bool remove)
void changedPiecesSelect ()
void changedFamBox (int data, int count)
void switchToPicsTab (int family=-1)
void zoomChanged (int d)

Public Member Functions

 BuildHelpDlg (QWidget *parent, MainWindow *main, CubeDoc *doc)
virtual ~BuildHelpDlg ()
virtual QSize minimumSizeHint () const

Private Slots

void actionPressed (int id)
void statsUpdate (int hint, int data)

Private Member Functions

void updateFamCount ()
void updateWarnMsgs ()
 display the most appropriate message in the message widget choose an icon and set the tooltip text called from statsUpdate()
void updatePieceCount ()
void enableEditWidgets (bool v)
 edit widgets are disabled when the solution engine is running.
void setActionLabel (bool enabled)

Private Attributes

CubeDocm_doc
MainWindowm_main
QSlider * m_zoomSlider
QPushButton * m_addBot
QPushButton * m_removeBot
QButtonGroup * m_buildBots
QLabel * m_actHelpLabel
QLabel * m_buildTilesLabel
QLabel * m_selPieces
QLabel * m_warnLabel
QGroupBox * m_picSel
QMovie * m_cubeAnim
QLabel * m_animLabel
ActionPushButtonm_goBot
QFont m_boldf
QString m_picText
QString m_picPre
QString m_tilesText
QList< FamCtrlm_fams
int m_curPressedId

Classes

struct  FamCtrl
 FamCtrl aggragates the widgets of a single piece family in BuildHelpDlg. More...

Detailed Description

BuildHelpDlg is the design sidebar widget displayed next to BuildGLWidget.

The design sidebar contains the following widgets:

The design sidebar is designed to be as much intuitive and self explanatory as possible. It is expected that the user would follow it top to bottom. First, add and remove piece from the structure. Second, select pieces for the solutions. Third, resolve any errors that might occur and if there are none, press "Solve It". The Global piece family selection has strong relation to the detailed piece selection. It directly affects the selection in it and is directly affected by selection made in it.

See also:
BuildGLWidget PicsSelectWidget


Constructor & Destructor Documentation

BuildHelpDlg::BuildHelpDlg ( QWidget *  parent,
MainWindow main,
CubeDoc doc 
)

virtual BuildHelpDlg::~BuildHelpDlg (  )  [inline, virtual]


Member Function Documentation

QSize BuildHelpDlg::minimumSizeHint (  )  const [virtual]

void BuildHelpDlg::changeAction ( bool  remove  )  [slot]

void BuildHelpDlg::setTilesCount ( int  count  )  [slot]

void BuildHelpDlg::setPieceCount ( int  count  )  [slot]

void BuildHelpDlg::completePicsWidgets (  )  [slot]

called when the pieces XML is done downloading and it is ok to create the piece familiy selection widgets.

void BuildHelpDlg::updateZoom ( int  v  )  [slot]

the zoom was externllu changed probably by the mouse wheel.

update the slider with the new status.

void BuildHelpDlg::actionPressed ( int  id  )  [private, slot]

void BuildHelpDlg::statsUpdate ( int  hint,
int  data 
) [private, slot]

void BuildHelpDlg::changedAction ( bool  remove  )  [signal]

void BuildHelpDlg::changedPiecesSelect (  )  [signal]

void BuildHelpDlg::changedFamBox ( int  data,
int  count 
) [signal]

void BuildHelpDlg::switchToPicsTab ( int  family = -1  )  [signal]

void BuildHelpDlg::zoomChanged ( int  d  )  [signal]

void BuildHelpDlg::updateFamCount (  )  [private]

void BuildHelpDlg::updateWarnMsgs (  )  [private]

display the most appropriate message in the message widget choose an icon and set the tooltip text called from statsUpdate()

void BuildHelpDlg::updatePieceCount (  )  [private]

void BuildHelpDlg::enableEditWidgets ( bool  v  )  [private]

edit widgets are disabled when the solution engine is running.

called from statsUpdate()

void BuildHelpDlg::setActionLabel ( bool  enabled  )  [private]


Member Data Documentation

QSlider* BuildHelpDlg::m_zoomSlider [private]

QPushButton* BuildHelpDlg::m_addBot [private]

QPushButton * BuildHelpDlg::m_removeBot [private]

QButtonGroup* BuildHelpDlg::m_buildBots [private]

QLabel* BuildHelpDlg::m_actHelpLabel [private]

QLabel* BuildHelpDlg::m_selPieces [private]

QLabel* BuildHelpDlg::m_warnLabel [private]

QGroupBox* BuildHelpDlg::m_picSel [private]

QMovie* BuildHelpDlg::m_cubeAnim [private]

QLabel* BuildHelpDlg::m_animLabel [private]

QFont BuildHelpDlg::m_boldf [private]

QString BuildHelpDlg::m_picText [private]

QString BuildHelpDlg::m_picPre [private]

QString BuildHelpDlg::m_tilesText [private]

QList<FamCtrl> BuildHelpDlg::m_fams [private]


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