OpenCPN Partial API docs
Loading...
Searching...
No Matches
BaseDialog Class Reference

Dialog layout with content sizer. More...

#include <dialog_base.h>

Inheritance diagram for BaseDialog:
AlertDialog

Public Member Functions

 BaseDialog (wxWindow *parent, const std::string &title, long style=wxDEFAULT_DIALOG_STYLE)
 
void SetInitialSize ()
 Initialize by display geometry.
 
int ShowModal () override
 Show dialog and return response.
 
void AddHtmlContent (const std::stringstream &html)
 Display HTML content.
 

Protected Attributes

wxBoxSizer * m_layout
 
wxBoxSizer * m_content
 

Static Protected Attributes

static const int kDialogPadding = 2
 

Detailed Description

Dialog layout with content sizer.

Definition at line 31 of file dialog_base.h.

Member Function Documentation

◆ AddHtmlContent()

void BaseDialog::AddHtmlContent ( const std::stringstream &  html)

Display HTML content.

Parameters
htmlHTML document.

◆ ShowModal()

int BaseDialog::ShowModal ( )
override

Show dialog and return response.

Returns
YES/NO response.

Member Data Documentation

◆ kDialogPadding

const int BaseDialog::kDialogPadding = 2
staticprotected

Definition at line 58 of file dialog_base.h.

◆ m_content

wxBoxSizer* BaseDialog::m_content
protected

Definition at line 55 of file dialog_base.h.

◆ m_layout

wxBoxSizer* BaseDialog::m_layout
protected

Definition at line 54 of file dialog_base.h.


The documentation for this class was generated from the following file: