Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Datebook::View Class Reference

#include </home/clem/local/src/opie/core/pim/datebook2/view.h>

Collaboration diagram for Datebook::View:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 View (MainWindow *window, QWidget *parent)
virtual ~View ()
virtual QPixmap pixmap () const =0
virtual QCString type () const =0
virtual QString name () const =0
virtual QString description () const =0
virtual int currentItem () const =0
void loadConfig (Config *)
void saveConfig (Config *)
virtual void currentRange (const QDateTime &src, const QDateTime &from)=0
virtual void clockChanged ()=0
virtual void dayChanged ()=0
virtual void showDay (const QDate &date)=0
virtual QWidget * widget ()=0
virtual void reschedule ()=0

Static Public Member Functions

static QDate dateFromWeek (int week, int year, bool startOnMonda)
static bool calcWeek (const QDate &d, int &week, int &year, bool startOnMonday=false)

Protected Member Functions

void popup (int uid)
QString toShortText (const OEffectiveEvent &eff) const
QString toText (const OEffectiveEvent &eff) const
virtual void doLoadConfig (Config *)=0
virtual void doSaveConfig (Config *)=0
void add (const QDate &start)
void add (const QDateTime &start, const QDateTime &end)
void edit (int uid)
void remove (int uid)
ODateBookAccess::List allEvents () const
OEffectiveEvent::ValueList events (const QDate &start, const QDate &end)
OEvent event (int uid) const
bool isAP () const
bool weekStartOnMonday () const
QList< OPimRecordrecords (const QDate &on)
QList< OPimRecordrecords (const QDate &start, const QDate &to)

Private Attributes

MainWindowm_win

Constructor & Destructor Documentation

Datebook::View::View MainWindow window,
QWidget *  parent
 

virtual Datebook::View::~View  )  [virtual]
 


Member Function Documentation

void Datebook::View::add const QDateTime start,
const QDateTime end
[protected]
 

create a new event in a given range

void Datebook::View::add const QDate start  )  [protected]
 

create a new event starting on start

ODateBookAccess::List Datebook::View::allEvents  )  const [protected]
 

give access to all events

static bool Datebook::View::calcWeek const QDate d,
int &  week,
int &  year,
bool  startOnMonday = false
[static]
 

virtual void Datebook::View::clockChanged  )  [pure virtual]
 

the clock format changed

virtual int Datebook::View::currentItem  )  const [pure virtual]
 

return the uid of the current item or 0

virtual void Datebook::View::currentRange const QDateTime src,
const QDateTime from
[pure virtual]
 

the current range

Parameters:
src Where to write the start datetime
dest Where to write the end datetime

static QDate Datebook::View::dateFromWeek int  week,
int  year,
bool  startOnMonda
[static]
 

virtual void Datebook::View::dayChanged  )  [pure virtual]
 

the day change means that either monday or sunday is the week start

virtual QString Datebook::View::description  )  const [pure virtual]
 

virtual void Datebook::View::doLoadConfig Config  )  [protected, pure virtual]
 

Referenced by View::loadConfig().

virtual void Datebook::View::doSaveConfig Config  )  [protected, pure virtual]
 

Referenced by View::saveConfig().

void Datebook::View::edit int  uid  )  [protected]
 

will make the MainWindow to open the editor

OEvent Datebook::View::event int  uid  )  const [protected]
 

return an Event

OEffectiveEvent::ValueList Datebook::View::events const QDate start,
const QDate end
[protected]
 

return events

bool Datebook::View::isAP  )  const [protected]
 

Is the clock AP/PM or 24h?

void Datebook::View::loadConfig Config  ) 
 

loadConfig saveConfig

virtual QString Datebook::View::name  )  const [pure virtual]
 

shown to the user

virtual QPixmap Datebook::View::pixmap  )  const [pure virtual]
 

void Datebook::View::popup int  uid  )  [protected]
 

QList<OPimRecord> Datebook::View::records const QDate start,
const QDate to
[protected]
 

QList<OPimRecord> Datebook::View::records const QDate on  )  [protected]
 

return related records for days

void Datebook::View::remove int  uid  )  [protected]
 

remove item with uid

virtual void Datebook::View::reschedule  )  [pure virtual]
 

the view needs an update!

void Datebook::View::saveConfig Config  ) 
 

virtual void Datebook::View::showDay const QDate date  )  [pure virtual]
 

show date in your view!! make the date visible in the current view

QString Datebook::View::toShortText const OEffectiveEvent eff  )  const [protected]
 

QString Datebook::View::toText const OEffectiveEvent eff  )  const [protected]
 

virtual QCString Datebook::View::type  )  const [pure virtual]
 

non translatable name or type

bool Datebook::View::weekStartOnMonday  )  const [protected]
 

if the week starts on monday?

virtual QWidget* Datebook::View::widget  )  [pure virtual]
 

return the widget


Member Data Documentation

MainWindow* Datebook::View::m_win [private]
 

Definition at line 139 of file view.h.

Referenced by View::add(), View::allEvents(), View::edit(), View::event(), View::events(), View::isAP(), View::popup(), View::records(), View::remove(), View::View(), and View::weekStartOnMonday().


The documentation for this class was generated from the following file:
Generated on Sat Nov 5 17:58:52 2005 for OPIE by  doxygen 1.4.2