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 /**--------------------------------------------------------------------------------------------------
9 \brief A simple widget for entering in an IP address. Multiple QCustomLineEdits allow the user to enter in
10 the parts of the IP connection.
11 **/
12 class IPWidget : public QFrame
13 {
14 Q_OBJECT
15 public:
16 IPWidget(QWidget* parent = 0);
18 String address() const;
19 void clear();
21 QSize sizeHint() const;
22 bool checkIfValid() const;
23 public slots:
24 void slotTextChanged(QLineEdit* pEdit);
25 signals:
26 void editedSignal(QLineEdit* pEdit);
27 private:
28 enum
29 {
30 QTUTL_IP_SIZE = 4,
31 MAX_DIGITS = 3
32 };
33 QCustomLineEdit* (m_pLineEdit[QTUTL_IP_SIZE]);
34 void MoveNextLineEdit(int i);
35 void MovePrevLineEdit(int i);
36 };
37}
A simple widget for entering in an IP address. Multiple QCustomLineEdits allow the user to enter in t...
Definition IPWidget.h:13
void editedSignal(QLineEdit *pEdit)
void setAddress(const String &address)
bool checkIfValid() const
String address() const
QSize sizeHint() const
void slotTextChanged(QLineEdit *pEdit)
IPWidget(QWidget *parent=0)
A line edit allows users to enter and edit a single line of plain text with useful editing functions,...
Definition QCustomLineEdit.h:56
The core String class for the NDEVR API.
Definition String.h:69
Definition ACIColor.h:37