Use common code formatting style.

This commit is contained in:
SET
2020-11-14 14:46:28 +01:00
parent a7146a07b2
commit a721bb0225
16 changed files with 144 additions and 82 deletions

View File

@@ -17,27 +17,33 @@
#include "TransientMessageWidget.h"
using namespace Wt;
/**
* A transient popup window with a forward confirmation
* before deleting a key.
*/
class PopupDelete : public WPopupWidget {
class PopupDelete : public WPopupWidget
{
public:
PopupDelete(WWidget * anchorWidget, TransientMessageWidget * txtMessage, const WLength& width = 350);
virtual ~PopupDelete();
void Create();
/**
* Caller can bind the delete function to this button.
* @return
*/
WPushButton* GetDeleteButton() {return m_btnDelete;}
WPushButton* GetDeleteButton()
{
return m_btnDelete;
}
private:
TransientMessageWidget * m_tmwMessage;
WContainerWidget * m_cwMain;
WCheckBox * m_cbConfirm;
WCheckBox * m_cbReConfirm;
WPushButton * m_btnDelete;
// Visibility management
void Reset();
void OnCbConfirm();