• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

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:

Inheritance graph
[legend]

List of all members.


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

Author:
Pablo de Vicente
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]

Clears all entries.

Definition at line 89 of file timebox.h.

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]

Fills the degrees entry field with string s.

Definition at line 78 of file timebox.h.

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]

returns a boolean.

True indicates that the object holds a Time Box. False that the object holds a Date Box.

Definition at line 84 of file timebox.h.


The documentation for this class was generated from the following files:
  • timebox.h
  • timebox.cpp

kstars

Skip menu "kstars"
  • Main Page
  • Modules
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • keduca
  • kstars
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal