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
>
18
#include <
yarp/manager/application.h
>
19
20
class
NewApplicationWizard
:
public
QWizard
21
{
22
Q_OBJECT
23
public
:
24
NewApplicationWizard
(
yarp::os::Property
* config,
bool
_saveAs=
false
);
25
26
public
:
27
QString
name
;
28
QString
description
;
29
QString
version
;
30
QString
authors
;
31
QString
fileName
;
32
bool
alreadyExists
;
33
34
private
:
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
54
signals:
55
void
wizardError
(QString);
56
57
private
slots:
58
void
onBrowse();
59
void
checkFileAlreadyExists();
60
void
onNameChanged(QString
name
);
61
void
onSwitchCall();
62
bool
fileExists(QString path);
63
void
buildFileName();
64
65
public
slots:
66
void
accept
()
override
;
67
};
68
69
class
CustomWizardPage
:
public
QWizardPage
70
{
71
Q_OBJECT
72
friend
class
NewApplicationWizard
;
73
74
public
:
75
CustomWizardPage
(QWidget * parent = 0) : QWizardPage(parent){}
76
77
78
};
79
80
#endif
// NEWAPPLICATIONWIZARD_H
Property.h
application.h
CustomWizardPage
Definition
newapplicationwizard.h:70
CustomWizardPage::CustomWizardPage
CustomWizardPage(QWidget *parent=0)
Definition
newapplicationwizard.h:75
NewApplicationWizard
Definition
newapplicationwizard.h:21
NewApplicationWizard::accept
void accept() override
Definition
newapplicationwizard.cpp:234
NewApplicationWizard::fileName
QString fileName
Definition
newapplicationwizard.h:31
NewApplicationWizard::wizardError
void wizardError(QString)
NewApplicationWizard::alreadyExists
bool alreadyExists
Definition
newapplicationwizard.h:32
NewApplicationWizard::name
QString name
Definition
newapplicationwizard.h:27
NewApplicationWizard::authors
QString authors
Definition
newapplicationwizard.h:30
NewApplicationWizard::version
QString version
Definition
newapplicationwizard.h:29
NewApplicationWizard::description
QString description
Definition
newapplicationwizard.h:28
yarp::os::Property
A class for storing options and configuration information.
Definition
Property.h:33
YARP
3.11.100+20250603.4+gitaa77f8b5c
src
guis
yarpmanager
src-manager
newapplicationwizard.h
Generated on Wed Jun 4 2025 02:40:09 for YARP by
1.9.8