VAPOR3
3.9.4
apps
vaporgui
PButton.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
PWidget.h
"
4
#include <functional>
5
6
class
VPushButton
;
7
14
15
class
PButton
:
public
PWidget
{
16
typedef
std::function<void(
VAPoR::ParamsBase
*)> Callback;
17
VPushButton
* _button;
18
const
Callback _cb;
19
bool
_disableUndo =
false
;
20
21
public
:
22
PButton
(std::string label, Callback cb);
23
// @copydoc VAPoR::ParamsMgr::SetSaveStateUndoEnabled(bool)
24
PButton
*
DisableUndo
();
25
26
protected
:
27
void
updateGUI
()
const override
{}
28
bool
requireParamsMgr
()
const override
{
return
_disableUndo; }
29
30
private
:
31
void
clicked();
32
};
PWidget.h
PButton
PWidget wrapper for VPushButton.
Definition:
PButton.h:15
PButton::requireParamsMgr
bool requireParamsMgr() const override
Definition:
PButton.h:28
PButton::DisableUndo
PButton * DisableUndo()
PButton::updateGUI
void updateGUI() const override
Definition:
PButton.h:27
PButton::PButton
PButton(std::string label, Callback cb)
PWidget
Definition:
PWidget.h:24
VAPoR::ParamsBase
Nodes with state in Xml tree representation.
Definition:
ParamsBase.h:50
VPushButton
Definition:
VPushButton.h:15
Generated by
1.9.6