00001 /**************************************************************************** 00002 ** $Id: wdateedit.h,v 1.5 2008/06/07 15:51:01 app Exp $ 00003 ** 00004 ** Header file of the field plugin of Ananas 00005 ** Designer and Engine applications 00006 ** 00007 ** Created : 20031201 00008 ** 00009 ** Copyright (C) 2003-2004 Grigory Panov, Yoshkar-Ola. 00010 ** 00011 ** This file is part of the Ananas Plugins of the Ananas 00012 ** automation accounting system. 00013 ** 00014 ** This file may be distributed and/or modified under the terms of the 00015 ** GNU General Public License version 2 as published by the Free Software 00016 ** Foundation and appearing in the file LICENSE.GPL included in the 00017 ** packaging of this file. 00018 ** 00019 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00020 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00021 ** 00022 ** See http://www.leaderit.ru/page=ananas or email sales@leaderit.ru 00023 ** See http://www.leaderit.ru/gpl/ for GPL licensing information. 00024 ** 00025 ** Contact org@leaderit.ru if any conditions of this licensing are 00026 ** not clear to you. 00027 ** 00028 **********************************************************************/ 00029 00030 #ifndef WDATEEDIT_H 00031 #define WDATEEDIT_H 00032 00033 #include <qlabel.h> 00034 #include <qdatetimeedit.h> 00035 #include <qwidgetplugin.h> 00036 #include <qwidget.h> 00037 #include <qdialog.h> 00038 #include <qpainter.h> 00039 00047 class wUnknownField : public QLabel 00048 { 00049 Q_OBJECT 00050 public: 00051 wUnknownField( QWidget *parent = 0, const char *name = 0):QLabel(parent, name){}; 00052 00053 }; 00054 00055 00065 class wDateEdit : public QDateEdit 00066 { 00067 Q_OBJECT 00068 public: 00069 wDateEdit(QWidget* parent = 0, const char* name = 0); 00070 wDateEdit(const QDate &date, 00071 QWidget* parent = 0, 00072 const char* name = 0 ); 00073 ~wDateEdit(); 00074 protected: 00075 void focusOutEvent ( QFocusEvent * ); 00076 signals: 00077 void lostFocus(); 00078 }; 00079 00080 #endif