Gui::Dialog::DlgTipOfTheDayImp Class Reference

Implementation of the well-known Tip-of-the-day dialog. More...

#include <DlgTipOfTheDayImp.h>

Inheritance diagram for Gui::Dialog::DlgTipOfTheDayImp:
Gui::Dialog::Ui_DlgTipOfTheDay Gui::WindowParameter

List of all members.

Public Slots

void on_buttonNextTip_clicked ()
 Shows next tip taken from the Tip-of-the-day site.

Public Member Functions

 DlgTipOfTheDayImp (QWidget *parent=0, Qt::WFlags fl=0)
 Constructs a DlgTipOfTheDayImp which is a child of 'parent', with the name 'name' and widget flags set to 'f'.
void reload ()
 Reloads all tips from Tip-of-the-day site.
 ~DlgTipOfTheDayImp ()
 Destroys the object and frees any allocated resources.

Protected Slots

void onDone (bool)
void onResponseHeaderReceived (const QHttpResponseHeader &)
void onStateChanged (int state)
 Prints some status information.

Detailed Description

Implementation of the well-known Tip-of-the-day dialog.

All the tips are read from the Tip-of-the-day site located in the documentation directory of this installation.

To download the latest online documentation you just have to press "Download online help" in the help menu. If you cannot compile these sources it is also possible to use the program wget specifying the options -r, -k, -E and the URL of the homepage of FreeCAD.

For more details have a look at the FreeCAD homepage (http://apps.sourceforge.net/mediawiki/free-cad/).

You can simply append a new tip by clicking the "EditText" hyperlink and writing a text, e.g: "** this is a new tip"

Author:
Werner Mayer

Definition at line 53 of file DlgTipOfTheDayImp.h.


Constructor & Destructor Documentation

DlgTipOfTheDayImp::DlgTipOfTheDayImp ( QWidget *  parent = 0,
Qt::WFlags  fl = 0 
)

Constructs a DlgTipOfTheDayImp which is a child of 'parent', with the name 'name' and widget flags set to 'f'.

The dialog will by default be modeless, unless you set 'modal' to TRUE to construct a modal dialog.

Definition at line 53 of file DlgTipOfTheDayImp.cpp.

References Gui::Dialog::Ui_DlgTipOfTheDay::checkShowTips, draftlibs::fcgeo::connect(), Gui::WindowParameter::getWindowParameter(), on_buttonNextTip_clicked(), onDone(), onResponseHeaderReceived(), onStateChanged(), reload(), and Gui::Dialog::Ui_DlgTipOfTheDay::setupUi().

DlgTipOfTheDayImp::~DlgTipOfTheDayImp (  ) 

Destroys the object and frees any allocated resources.

Definition at line 77 of file DlgTipOfTheDayImp.cpp.

References Gui::Dialog::Ui_DlgTipOfTheDay::checkShowTips, and Gui::WindowParameter::getWindowParameter().


Member Function Documentation

void DlgTipOfTheDayImp::on_buttonNextTip_clicked (  )  [slot]

Shows next tip taken from the Tip-of-the-day site.

Definition at line 84 of file DlgTipOfTheDayImp.cpp.

References Gui::Dialog::Ui_DlgTipOfTheDay::textTip.

Referenced by DlgTipOfTheDayImp().

void DlgTipOfTheDayImp::onDone ( bool  err  )  [protected, slot]

Definition at line 112 of file DlgTipOfTheDayImp.cpp.

Referenced by DlgTipOfTheDayImp().

void DlgTipOfTheDayImp::onResponseHeaderReceived ( const QHttpResponseHeader &  responseHeader  )  [protected, slot]

Definition at line 103 of file DlgTipOfTheDayImp.cpp.

References Base::Console(), and draftTools::msg().

Referenced by DlgTipOfTheDayImp().

void DlgTipOfTheDayImp::onStateChanged ( int  state  )  [protected, slot]

Prints some status information.

Definition at line 132 of file DlgTipOfTheDayImp.cpp.

References Base::Console().

Referenced by DlgTipOfTheDayImp().

void DlgTipOfTheDayImp::reload (  ) 

Reloads all tips from Tip-of-the-day site.

Definition at line 91 of file DlgTipOfTheDayImp.cpp.

Referenced by DlgTipOfTheDayImp().


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

Generated on Wed Nov 23 19:02:07 2011 for FreeCAD by  doxygen 1.6.1