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