API Documentation
Loading...
Searching...
No Matches
IPWidget.h
Go to the documentation of this file.
1#pragma once
2#include <QFrame>
3class QLineEdit;
4namespace NDEVR
5{
6 class QCustomLineEdit;
7 class String;
8 class IPWidget : public QFrame
9 {
10 Q_OBJECT
11 public:
12 IPWidget(QWidget* parent = 0);
13 ~IPWidget();
14 String address() const;
15 void clear();
16 void setAddress(const String& address);
17 QSize sizeHint() const;
18 bool checkIfValid() const;
19 public slots:
20 void slotTextChanged(QLineEdit* pEdit);
21 signals:
22 void editedSignal(QLineEdit* pEdit);
23 private:
24 enum
25 {
26 QTUTL_IP_SIZE = 4,
27 MAX_DIGITS = 3
28 };
29
30 QCustomLineEdit* (m_pLineEdit[QTUTL_IP_SIZE]);
31 void MoveNextLineEdit(int i);
32 void MovePrevLineEdit(int i);
33 };
34}
Definition IPWidget.h:9
void editedSignal(QLineEdit *pEdit)
~IPWidget()
Definition IPWidget.cpp:70
void setAddress(const String &address)
Definition IPWidget.cpp:108
bool checkIfValid() const
Definition IPWidget.cpp:129
String address() const
Definition IPWidget.cpp:94
QSize sizeHint() const
Definition IPWidget.cpp:123
void clear()
Definition IPWidget.cpp:102
void slotTextChanged(QLineEdit *pEdit)
Definition IPWidget.cpp:75
IPWidget(QWidget *parent=0)
Definition IPWidget.cpp:10
Definition QCustomLineEdit.h:118
Definition String.h:40
Definition ACIColor.h:37