X-Git-Url: http://git.maemo.org/git/?p=speedfreak;a=blobdiff_plain;f=Client%2Fcalibratedialog.cpp;h=39c93ab0b1aa2bab03276cbabec75a7f34efb68f;hp=146e85c90dd8664fc018067d7af80ecd1be23e5d;hb=59a7180931986f4d9420f6b4f1beb85f078fd309;hpb=eb8665a8c4b6a15a9d5a9f5b348432293d171ae6 diff --git a/Client/calibratedialog.cpp b/Client/calibratedialog.cpp index 146e85c..39c93ab 100644 --- a/Client/calibratedialog.cpp +++ b/Client/calibratedialog.cpp @@ -1,14 +1,19 @@ /* * Calibrate dialog * - * @author Kai Rasilainen - * @copyright (c) 2010 Speed Freak team - * @license http://opensource.org/licenses/gpl-license.php GNU Public License + * @author Kai Rasilainen + * @author Toni Jussila + * @copyright (c) 2010 Speed Freak team + * @license http://opensource.org/licenses/gpl-license.php GNU Public License */ #include "calibratedialog.h" #include "ui_calibratedialog.h" +/** + * Default constructor for Calibrate dialog class. + * + */ CalibrateDialog::CalibrateDialog(QWidget *parent) : QDialog(parent), ui(new Ui::CalibrateDialog) @@ -17,11 +22,18 @@ CalibrateDialog::CalibrateDialog(QWidget *parent) : this->setWindowTitle("Calibrating..."); } +/** + * Default destructor for Calibrate dialog class. + * Deletes all dynamic objects and sets them to NULL. + */ CalibrateDialog::~CalibrateDialog() { delete ui; } +/** + * + */ void CalibrateDialog::changeEvent(QEvent *e) { QDialog::changeEvent(e); @@ -34,21 +46,39 @@ void CalibrateDialog::changeEvent(QEvent *e) } } +/** + * Set progressbar value. + * + * @param int progressbar value. + */ void CalibrateDialog::setProgressValue(int value) { ui->progressBar->setValue(value); } +/** + * Reset progressbar value. + */ void CalibrateDialog::resetProgressValue() { ui->progressBar->reset(); } +/** + * Set max value. + * + * @param int max + */ void CalibrateDialog::setMaxValue(int max) { ui->progressBar->setMaximum( max ); } +/** + * Set title. + * + * @param QString title + */ void CalibrateDialog::setTitle(QString title) { this->setWindowTitle(title);