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

YQTextEntry.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:       YQTextEntry.h
00014 
00015   Author:     Mathias Kettner <kettner@suse.de>
00016   Maintainer: Stefan Hundhammer <sh@suse.de>
00017 
00018 /-*/
00019 
00020 // -*- c++ -*-
00021 
00022 #ifndef YQTextEntry_h
00023 #define YQTextEntry_h
00024 
00025 #include <qvbox.h>
00026 #include <ycp/YCPString.h>
00027 
00028 #include "YTextEntry.h"
00029 
00030 
00031 class QString;
00032 class QLabel;
00033 class QLineEdit;
00034 class QY2CharValidator;
00035 
00036 class YQTextEntry : public QVBox, public YTextEntry
00037 {
00038     Q_OBJECT
00039 
00040 public:
00044     YQTextEntry( QWidget *              parent,
00045                  const YWidgetOpt &     opt,
00046                  const YCPString &      label,
00047                  const YCPString &      text );
00048 
00054     void setEnabling( bool enabled );
00055 
00061     long nicesize( YUIDimension dim );
00062 
00066     void setSize( long newWidth, long newHeight );
00067 
00071     void setText( const YCPString & text );
00072 
00076     YCPString getText();
00077 
00081     void setLabel( const YCPString & label );
00082 
00088     void setValidChars( const YCPString & validChars );
00089 
00093     virtual bool setKeyboardFocus();
00094 
00095 
00096 protected slots:
00101     void changed( const QString & );
00102 
00103 
00104 protected:
00105 
00109     QLabel * _qt_label;
00110 
00114     QLineEdit * _qt_lineedit;
00115 
00119     QY2CharValidator *  _validator;
00120 
00124     bool _shrinkable;
00125 };
00126 
00127 #endif // YQTextEntry_h

Generated on Wed Nov 12 06:11:16 2008 for yast2-qt by  doxygen 1.3.9.1