radio/roboute/views/newappdialogue.h
2018-08-05 00:48:17 +03:00

38 lines
849 B
C++

#ifndef NEWAPPDIALOGUE_H
#define NEWAPPDIALOGUE_H
#include <QtWidgets/QDialog>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QFormLayout>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QLineEdit>
#include <QtCore/QMap>
class NewAppDialogue : public QDialog
{
Q_OBJECT
public:
NewAppDialogue(QWidget* parent = 0);
NewAppDialogue(const QMap<QString, QString>& data, QWidget* parent = 0);
QMap<QString, QString> getData() const;
private:
QLineEdit* name;
QLineEdit* address;
QLineEdit* port;
QLineEdit* login;
QLineEdit* pass;
QLineEdit* log;
QLineEdit* command;
private:
void construct();
void createButtons(QHBoxLayout* layout);
void createForm(QFormLayout* layout);
};
#endif // NEWAPPDIALOGUE_H