2017-02-07 21:48:22 -05:00
|
|
|
// Copyright (c) Charles J. Cliffe
|
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
|
|
|
|
2016-12-23 18:45:25 -05:00
|
|
|
#include "ActionDialogBase.h"
|
|
|
|
#include <mutex>
|
|
|
|
|
|
|
|
class ActionDialog : public ActionDialogBase {
|
|
|
|
public:
|
|
|
|
ActionDialog( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("QuestionTitle"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE );
|
|
|
|
~ActionDialog();
|
|
|
|
|
|
|
|
void onClickCancel( wxCommandEvent& event );
|
|
|
|
void onClickOK( wxCommandEvent& event );
|
|
|
|
|
|
|
|
virtual void doClickCancel();
|
|
|
|
virtual void doClickOK();
|
|
|
|
|
|
|
|
static ActionDialog *getActiveDialog();
|
|
|
|
static void setActiveDialog(ActionDialog *dlg);
|
|
|
|
static void showDialog(ActionDialog *dlg);
|
|
|
|
|
|
|
|
private:
|
|
|
|
static ActionDialog *activeDialog;
|
|
|
|
};
|