Choreonoid
1.8
src
Base
Dialog.h
Go to the documentation of this file.
1
5
#ifndef CNOID_BASE_DIALOG_H
6
#define CNOID_BASE_DIALOG_H
7
8
#include <cnoid/Signal>
9
#include <QDialog>
10
#include "exportdecl.h"
11
12
namespace
cnoid
{
13
14
class
CNOID_EXPORT
Dialog
:
public
QDialog
15
{
16
Q_OBJECT
17
18
public
:
19
Dialog
();
20
Dialog
(QWidget* parent, Qt::WindowFlags f = Qt::WindowFlags());
21
22
SignalProxy
<void()>
sigAccepted
() {
23
return
sigAccepted_;
24
}
25
SignalProxy
<void(
int
)>
sigFinished
() {
26
return
sigFinished_;
27
}
28
SignalProxy
<void()>
sigRejected
() {
29
return
sigRejected_;
30
}
31
32
protected
:
33
virtual
void
onAccepted();
34
virtual
void
onRejected();
35
36
private
Q_SLOTS:
37
void
onSigAccepted();
38
void
onSigFinished(
int
result);
39
void
onSigRejected();
40
41
private
:
42
Signal
<void()> sigAccepted_;
43
Signal
<void(
int
)> sigFinished_;
44
Signal
<void()> sigRejected_;
45
46
void
initialize();
47
};
48
49
}
50
51
#endif
cnoid::Dialog
Definition:
Dialog.h:14
cnoid
Definition:
AbstractSceneLoader.h:11
cnoid::Dialog::sigFinished
SignalProxy< void(int)> sigFinished()
Definition:
Dialog.h:25
cnoid::Signal
Definition:
Signal.h:165
cnoid::SignalProxy
Definition:
Signal.h:470
cnoid::Dialog::sigAccepted
SignalProxy< void()> sigAccepted()
Definition:
Dialog.h:22
cnoid::Dialog::sigRejected
SignalProxy< void()> sigRejected()
Definition:
Dialog.h:28
Generated by
1.8.17