kstars
timeBox Class Reference
This class creates a QHBox with 3 QLineEdit Fields which will contain either Time (Hour, Minute, Second) or Date (Day, Month, Year). More...
#include <timebox.h>
Inheritance diagram for timeBox:

Public Member Functions | |
void | clearFields (void) |
ExtDate | createDate (bool *ok=0) |
QTime | createTime (bool *ok=0) |
void | setEntry (QString s) |
void | showDate (ExtDate t) |
void | showTime (QTime t) |
timeBox (QWidget *parent, const char *n, bool tt=TRUE) | |
bool | timeType (void) const |
~timeBox () |
Detailed Description
This class creates a QHBox with 3 QLineEdit Fields which will contain either Time (Hour, Minute, Second) or Date (Day, Month, Year).Inherits QHBox
- Version:
- 1.0
Definition at line 37 of file timebox.h.
Constructor & Destructor Documentation
timeBox::timeBox | ( | QWidget * | parent, | |
const char * | n, | |||
bool | tt = TRUE | |||
) |
Constructor for the timeBox object.
- Parameters:
-
parent is the parent QWidget n name is the name of the object tt boolean. true means that the object will hold a Time. false means that the object will hold a Date.
Definition at line 27 of file timebox.cpp.
timeBox::~timeBox | ( | ) |
Definition at line 170 of file timebox.cpp.
Member Function Documentation
void timeBox::clearFields | ( | void | ) | [inline] |
ExtDate timeBox::createDate | ( | bool * | ok = 0 |
) |
returns a ExtDate object constructed from the fields of the timebox
Definition at line 151 of file timebox.cpp.
QTime timeBox::createTime | ( | bool * | ok = 0 |
) |
returns a QTime object constructed from the fields of the timebox
Definition at line 53 of file timebox.cpp.
void timeBox::setEntry | ( | QString | s | ) | [inline] |
void timeBox::showDate | ( | ExtDate | t | ) |
Fills the QLineEdit fields of the timebox object from a QTime object showing hours, minutes and seconds.
- Parameters:
-
t QTime object from which to fill the entry fields
Definition at line 47 of file timebox.cpp.
void timeBox::showTime | ( | QTime | t | ) |
Fills the QLineEdit fields of the timebox object from a QTime object showing hours, minutes and seconds.
- Parameters:
-
t QTime object from which to fill the entry fields
Definition at line 42 of file timebox.cpp.
bool timeBox::timeType | ( | void | ) | const [inline] |
The documentation for this class was generated from the following files: