00001 /*************************************************************************** 00002 calendario.h - description 00003 ------------------- 00004 begin : sáb may 31 2003 00005 copyright : (C) 2003 by Tomeu Borrás Riera 00006 email : tborras@conetxia.com 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef CALENDARIO_H 00019 #define CALENDARIO_H 00020 00021 00022 /***@author Tomeu Borrás Riera */ 00023 #include "qmcdatenav.h" 00024 00025 #include <qdialog.h> 00026 #include <qdatetime.h> 00027 #include <qptrlist.h> 00028 00029 class QmcDateNav; 00030 class QHBoxLayout; 00031 class QTabDialog; 00032 class QPushButton; 00033 class QCheckBox; 00034 class QVBox; 00035 00038 class calendario: public QDialog 00039 { 00040 Q_OBJECT 00041 00042 public: 00043 calendario( class QDialog * parent = 0, const char * name = 0 ); 00044 ~calendario(); 00045 QmcDateNav *dn; 00046 QPtrList<QDate> *eDays; 00047 00048 public slots: 00049 void updateEventDays( int ); 00050 void updateNWDs( int ); 00051 00052 private slots: 00053 void showOptions(); 00054 00055 private: 00056 void init(); 00057 00058 QHBoxLayout *mainLayout; 00059 00060 00061 QPtrList<QDate> *nwDays; 00062 00063 QTabDialog *optionsDialog; 00064 QWidget *optionsWidget; 00065 QPushButton *optionsButton; 00066 00067 // Pages... 00068 QVBox *generalOptions; 00069 QVBox *nwdOptions; 00070 00071 QCheckBox *qcbOutlook; 00072 QCheckBox *qcbFrame; 00073 00074 QCheckBox *qcbWorkMon; 00075 QCheckBox *qcbWorkTue; 00076 QCheckBox *qcbWorkWed; 00077 QCheckBox *qcbWorkThu; 00078 QCheckBox *qcbWorkFri; 00079 QCheckBox *qcbWorkSat; 00080 QCheckBox *qcbWorkSun; 00081 00082 bool nonWorkDays[8]; 00083 00084 00085 // TBR 12/06/03 00086 // bool calendario::eventFilter( QObject *, QEvent * ); 00087 }; 00088 00089 00090 00091 #endif