File: firsttimesetup.h

package info (click to toggle)
wfview 2.11-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,256 kB
  • sloc: cpp: 43,386; ansic: 3,196; sh: 32; xml: 29; makefile: 11
file content (50 lines) | stat: -rw-r--r-- 1,050 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef FIRSTTIMESETUP_H
#define FIRSTTIMESETUP_H

// include <QWidget>
#include <QDialog>

namespace Ui {
class FirstTimeSetup;
}

class FirstTimeSetup : public QDialog
{
    Q_OBJECT

public:
    explicit FirstTimeSetup(QWidget *parent = nullptr);
    ~FirstTimeSetup();

private:
    Ui::FirstTimeSetup *ui;

    enum setupState_t {
        setupInitial,
        setupStep2
    } setupState;
    bool isNetwork = true;
    QString serialText1;
    QString serialText2;
    QString serialText3;

    QString networkText1;
    QString networkText2;
    QString networkText3;

signals:
    void exitProgram();
    void showSettings(bool isNetwork);
    void skipSetup();
private slots:
    void on_exitProgramBtn_clicked();
    void on_nextBtn_clicked();
    void on_onMyOwnBtn_clicked();
    void on_ethernetNetwork_clicked(bool checked);
    void on_WiFiNetwork_clicked(bool checked);
    void on_USBPortThisPC_clicked(bool checked);
    void on_serialPortThisPC_clicked(bool checked);
    void on_backBtn_clicked();
};

#endif // FIRSTTIMESETUP_H