/****************************************************************************
** ui.h extension file, included from the uic-generated form implementation.
**
** If you want to add, delete, or rename functions or slots, use
** Qt Designer to update this file, preserving your code.
**
** You should not define a constructor or destructor in this file.
** Instead, write your code in functions called init() and destroy().
** These will automatically be called by the form's constructor and
** destructor.
**
**   Created : 
**        by : Varol Okan 
** Copyright : (c) Varol Okan
** License   : GPL v 2.0
**
*****************************************************************************/

#include <qdatetime.h>

void uiDialogExtraction::init ()
{
    m_iSeconds = 0;
}

void uiDialogExtraction::setMenuName( QString qsMenuName)
{
    QString qsMenuTitle = QString ("<p align=\"center\"><b><h2>Handling Menu :<br>%1</h2></b></p>").arg (qsMenuName);
    m_pTextMenu->setText(qsMenuTitle);
}

void uiDialogExtraction::setObjectName( QString qsObjectName)
{
    QString qsObjectTitle = QString ("<p align=\"center\"><b><h2>Menu Object :<br>%1</h2></b></p>").arg(qsObjectName);
    m_pTextObject->setText (qsObjectTitle);
}

void uiDialogExtraction::setTime( QString qsTime)
{
    QString qsTimeTitle = QString ("<p align=\"center\"><b><h2>%1</h2></b></p>").arg(qsTime);
    m_pTextTime->setText (qsTimeTitle);
}

void uiDialogExtraction::slotAddASecond()
{
    QTime theTime;
    theTime = theTime.addSecs (m_iSeconds ++);
    setTime (theTime.toString());  
}
