/***************************************************************************
                            QDateTimeEditBase.m -  description
                             -------------------
    begin                : Wed Nov 21 12:08:37 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Nov 21 12:08:37 2001, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This library is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Library General Public License as       *
 *   published by the Free Software Foundation; either version 2 of the    *
 *   License, or (at your option) any later version.                       *
 *                                                                         *
 ***************************************************************************/

#include <qtc/qt_QString.h>
#include <qtc/qt_QCString.h>
#include <qtc/qt_QDateTimeEditBase.h>
#include <qtobjc/QDateTimeEditBase.h>

@implementation  QDateTimeEditBase


- (BOOL) setFocusSection: (int)sec
{
	return (BOOL) qt_QDateTimeEditBase_setFocusSection((qt_QDateTimeEditBase *)[self qt], (int)sec);
}

- (NSString *) sectionFormattedText: (int)sec
{
static qt_QString * _qstring = 0L;
	_qstring = qt_QDateTimeEditBase_sectionFormattedText((qt_QDateTimeEditBase *)[self qt], (int)sec);
	return [NSString fromQString: _qstring];
}

- addNumber: (int)sec num: (int)num
{
	qt_QDateTimeEditBase_addNumber((qt_QDateTimeEditBase *)[self qt], (int)sec, (int)num);
	return self;
}

- removeLastNumber: (int)sec
{
	qt_QDateTimeEditBase_removeLastNumber((qt_QDateTimeEditBase *)[self qt], (int)sec);
	return self;
}

- stepUp
{
	qt_QDateTimeEditBase_stepUp((qt_QDateTimeEditBase *)[self qt]);
	return self;
}

- stepDown
{
	qt_QDateTimeEditBase_stepDown((qt_QDateTimeEditBase *)[self qt]);
	return self;
}

@end
