Logo Search packages:      
Sourcecode: zeiberbude version File versions

ipinput.hh

/* ipinput.hh 
 * (c) 2002 Christian Töpp <c.toepp@gmx.de>
 */

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef IPINPUT_H
#define IPINPUT_H

#include <qwidget.h>
#include <qframe.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <qlayout.h>
#include <qvalidator.h>
#include <qstringlist.h>

class ipinput:public QFrame
{
Q_OBJECT public:
    ipinput (QWidget * parent = 0);
   ~ipinput ();
public:
    bool setAddress (const QString addr);
  QString address ();
  void clear ();
private:
private:
    QHBoxLayout * box;
  QLineEdit *ed1;
  QLabel *lb1;
  QLineEdit *ed2;
  QLabel *lb2;
  QLineEdit *ed3;
  QLabel *lb3;
  QLineEdit *ed4;
  QIntValidator *v;
  private slots:void slotEd1Change (const QString & s);
  void slotEd2Change (const QString & s);
  void slotEd3Change (const QString & s);
  void slotEd4Change (const QString & s);
    signals:void textChanged (const QString);
};

#endif

Generated by  Doxygen 1.6.0   Back to index