2014-06-25 04:11:11 +08:00
|
|
|
#ifndef SETTINGSFORM_H
|
|
|
|
#define SETTINGSFORM_H
|
|
|
|
|
|
|
|
#include <QVBoxLayout>
|
|
|
|
#include <QLabel>
|
|
|
|
#include <QLineEdit>
|
|
|
|
#include <QString>
|
|
|
|
#include <QObject>
|
|
|
|
#include <QSpacerItem>
|
|
|
|
#include "ui_widget.h"
|
2014-06-29 04:11:42 +08:00
|
|
|
#include "widget/selfcamview.h"
|
2014-06-25 04:11:11 +08:00
|
|
|
|
|
|
|
class SettingsForm : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
SettingsForm();
|
|
|
|
~SettingsForm();
|
|
|
|
|
|
|
|
void show(Ui::Widget& ui);
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void setFriendAddress(const QString& friendAddress);
|
|
|
|
|
2014-06-29 04:11:42 +08:00
|
|
|
private slots:
|
|
|
|
void onTestVideoClicked();
|
|
|
|
|
2014-06-25 04:11:11 +08:00
|
|
|
private:
|
|
|
|
QLabel headLabel, nameLabel, statusTextLabel, idLabel, id;
|
2014-06-29 04:11:42 +08:00
|
|
|
QPushButton videoTest;
|
2014-06-25 04:11:11 +08:00
|
|
|
QVBoxLayout layout, headLayout;
|
|
|
|
QWidget *main, *head;
|
2014-06-29 04:11:42 +08:00
|
|
|
SelfCamView* camview;
|
2014-06-25 04:11:11 +08:00
|
|
|
|
|
|
|
public:
|
|
|
|
QLineEdit name, statusText;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SETTINGSFORM_H
|