API Documentation
Loading...
Searching...
No Matches
IPWidget.h
Go to the documentation of this file.
1
#pragma once
2
#include <QFrame>
3
class
QLineEdit;
4
namespace
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
}
NDEVR::IPWidget
Definition
IPWidget.h:9
NDEVR::IPWidget::editedSignal
void editedSignal(QLineEdit *pEdit)
NDEVR::IPWidget::~IPWidget
~IPWidget()
Definition
IPWidget.cpp:70
NDEVR::IPWidget::setAddress
void setAddress(const String &address)
Definition
IPWidget.cpp:108
NDEVR::IPWidget::checkIfValid
bool checkIfValid() const
Definition
IPWidget.cpp:129
NDEVR::IPWidget::address
String address() const
Definition
IPWidget.cpp:94
NDEVR::IPWidget::sizeHint
QSize sizeHint() const
Definition
IPWidget.cpp:123
NDEVR::IPWidget::clear
void clear()
Definition
IPWidget.cpp:102
NDEVR::IPWidget::slotTextChanged
void slotTextChanged(QLineEdit *pEdit)
Definition
IPWidget.cpp:75
NDEVR::IPWidget::IPWidget
IPWidget(QWidget *parent=0)
Definition
IPWidget.cpp:10
NDEVR::QCustomLineEdit
Definition
QCustomLineEdit.h:118
NDEVR::String
Definition
String.h:40
NDEVR
Definition
ACIColor.h:37
NDEVRNetworkProtocols
Headers
IPWidget.h