v1.4.4
This commit is contained in:
commit
9c94d113d3
10260 changed files with 1237388 additions and 0 deletions
38
source/frontend/StarConfirmationDialog.hpp
Normal file
38
source/frontend/StarConfirmationDialog.hpp
Normal file
|
@ -0,0 +1,38 @@
|
|||
#ifndef STAR_CONFIRMATION_DIALOG_HPP
|
||||
#define STAR_CONFIRMATION_DIALOG_HPP
|
||||
|
||||
#include "StarPane.hpp"
|
||||
#include "StarRpcPromise.hpp"
|
||||
|
||||
namespace Star {
|
||||
|
||||
STAR_CLASS(ConfirmationDialog);
|
||||
|
||||
class ConfirmationDialog : public Pane {
|
||||
public:
|
||||
ConfirmationDialog();
|
||||
|
||||
virtual ~ConfirmationDialog() {}
|
||||
|
||||
void displayConfirmation(Json const& dialogConfig, RpcPromiseKeeper<Json> resultPromise);
|
||||
void displayConfirmation(Json const& dialogConfig, WidgetCallbackFunc okCallback, WidgetCallbackFunc cancelCallback);
|
||||
|
||||
Maybe<EntityId> sourceEntityId();
|
||||
|
||||
void dismissed() override;
|
||||
|
||||
private:
|
||||
void ok();
|
||||
|
||||
WidgetCallbackFunc m_okCallback;
|
||||
WidgetCallbackFunc m_cancelCallback;
|
||||
bool m_confirmed;
|
||||
|
||||
Maybe<EntityId> m_sourceEntityId;
|
||||
|
||||
Maybe<RpcPromiseKeeper<Json>> m_resultPromise;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue