Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

YQTime.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                                                                      |
00003 |                      __   __    ____ _____ ____                      |
00004 |                      \ \ / /_ _/ ___|_   _|___ \                     |
00005 |                       \ V / _` \___ \ | |   __) |                    |
00006 |                        | | (_| |___) || |  / __/                     |
00007 |                        |_|\__,_|____/ |_| |_____|                    |
00008 |                                                                      |
00009 |                               core system                            |
00010 |                                                        (C) SuSE GmbH |
00011 \----------------------------------------------------------------------/
00012 
00013   File:       YQTime.h
00014 
00015   Author:     Anas Nashif <nashif@suse.de>
00016 
00017 /-*/
00018 
00019 // -*- c++ -*-
00020 
00021 #ifndef YQTime_h
00022 #define YQTime_h
00023 
00024 #include <qdatetimeedit.h>
00025 #include <qvbox.h>
00026 #include <qlabel.h>
00027 #include <ycp/YCPString.h>
00028 #include <ycp/YCPInteger.h>
00029 
00030 #include "YTime.h"
00031 
00032 
00033 class YQTime : public QVBox, public YTime
00034 {
00035     Q_OBJECT
00036 
00037 public:
00038 
00042     YQTime( QWidget *                   parent,
00043              const YWidgetOpt &         opt,
00044              const YCPString    &       label,
00045              const YCPString    &       time );
00046 
00052     void setEnabling( bool enabled );
00053 
00059     long nicesize( YUIDimension dim );
00060     
00064     void setNewTime( const YCPString & text );
00065 
00069     void setSize( long newWidth, long newHeight );
00070 
00074     YCPString getTime();
00075 
00079     void setLabel( const YCPString & label );
00080     
00084     //void setTime( const YCPString & label );
00085     
00086 protected:
00087     QTimeEdit * _qt_timeedit;
00088     QLabel *    _qt_label;
00089 };
00090 
00091 
00092 #endif // YQTime_h

Generated on Wed Sep 14 10:59:02 2005 for yast2-qt by  doxygen 1.4.4