66 lines
1.2 KiB
C++
66 lines
1.2 KiB
C++
#ifndef WIDGET_H
|
|
#define WIDGET_H
|
|
|
|
#include <QWidget>
|
|
#include <QHBoxLayout>
|
|
#include <QPushButton>
|
|
#include <QLineEdit>
|
|
#include <QLabel>
|
|
#include <QFileDialog>
|
|
#include <QProcess>
|
|
#include <QTimer>
|
|
#include <QDateTime>
|
|
|
|
namespace Ui {
|
|
class Widget;
|
|
}
|
|
|
|
class Widget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit Widget(QWidget *parent = 0);
|
|
~Widget();
|
|
|
|
private:
|
|
Ui::Widget *ui;
|
|
|
|
QHBoxLayout *hlayoutParam[4];
|
|
QHBoxLayout *hlayoutDefault;
|
|
QVBoxLayout *vlayoutButton;
|
|
QVBoxLayout *vlayoutParam;
|
|
QGridLayout *glayout;
|
|
QLineEdit *p_lineUrl;
|
|
QLineEdit *p_lineTime;
|
|
QLineEdit *p_lineProxyFile;
|
|
|
|
|
|
QLabel *p_labelUrl;
|
|
QLabel *p_labelTime;
|
|
QLabel *p_labelProxyFile;
|
|
QLabel *p_labelRecentTime;
|
|
QLabel *p_labelNextTime;
|
|
QLabel *p_labelTimerOnOff;
|
|
QLabel *p_labelRecent;
|
|
QLabel *p_labelNext;
|
|
QLabel *p_labelStatus;
|
|
|
|
QFileDialog *p_FileDialog;
|
|
|
|
QPushButton *p_btnStart;
|
|
QPushButton *p_btnStop;
|
|
QPushButton *p_btnChoose;
|
|
QProcess v_pro;
|
|
QTimer *p_timer;
|
|
|
|
public slots:
|
|
void btnStart();
|
|
void btnStop();
|
|
void btnChoose();
|
|
void update();
|
|
void processFinished();
|
|
};
|
|
|
|
#endif // WIDGET_H
|