YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
newapplicationwizard.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: LGPL-2.1-or-later
4 */
5
6#ifndef NEWAPPLICATIONWIZARD_H
7#define NEWAPPLICATIONWIZARD_H
8
9#include <QWidget>
10#include <QWizard>
11#include <QWizardPage>
12#include <QLabel>
13#include <QLineEdit>
14#include <QPushButton>
15#include <QComboBox>
16
17#include <yarp/os/Property.h>
19
20class NewApplicationWizard : public QWizard
21{
22 Q_OBJECT
23public:
24 NewApplicationWizard(yarp::os::Property * config, bool _saveAs=false);
25
26public:
27 QString name;
28 QString description;
29 QString version;
30 QString authors;
31 QString fileName;
33
34private:
35 QLabel *nameLbl;
36 QLineEdit *nameEdit;
37 QLabel *descrLbl;
38 QLineEdit *descrEdit;
39 QLabel *versionLbl;
40 QLineEdit *versionEdit;
41 QLabel *authLbl;
42 QLineEdit *authEdit;
43 QLabel *folderLbl;
44 QComboBox *folderCombo;
45 QPushButton *browseBtn;
46 QLabel *fileLbl;
47 QLineEdit *fileEdit;
48
49 yarp::os::Property *m_config;
50 bool saveAs;
51
52
53
54signals:
55 void wizardError(QString);
56
57private slots:
58 void onBrowse();
59 void checkFileAlreadyExists();
60 void onNameChanged(QString name);
61 void onSwitchCall();
62 bool fileExists(QString path);
63 void buildFileName();
64
65public slots:
66 void accept() override;
67};
68
69class CustomWizardPage : public QWizardPage
70{
71 Q_OBJECT
73
74public:
75 CustomWizardPage(QWidget * parent = 0) : QWizardPage(parent){}
76
77
78};
79
80#endif // NEWAPPLICATIONWIZARD_H
CustomWizardPage(QWidget *parent=0)
void wizardError(QString)
A class for storing options and configuration information.
Definition Property.h:33