Code::Blocks  SVN r11506
Public Member Functions | Private Attributes | List of all members
cbConfigurationPanel Class Referenceabstract

Base class for plugin configuration panels. More...

#include <configurationpanel.h>

Inheritance diagram for cbConfigurationPanel:
Collaboration diagram for cbConfigurationPanel:

Public Member Functions

 cbConfigurationPanel ()
 
 ~cbConfigurationPanel () override
 
virtual wxString GetTitle () const =0
 
virtual wxString GetBitmapBaseName () const =0
 
virtual void OnApply ()=0
 Called when the user chooses to apply the configuration. More...
 
virtual void OnCancel ()=0
 Called when the user chooses to cancel the configuration. More...
 
void SetParentDialog (wxWindow *dialog)
 Sets the panel's parent dialog. More...
 
wxWindowSetParentDialog ()
 Gets the panel's parent dialog. More...
 
int cbMessageBox (const wxString &message, const wxString &caption=wxEmptyString, int style=wxOK, wxWindow *parent=NULL, int x=-1, int y=-1)
 Call global cbMessageBox with m_parentDialog as parent window when no parent window specified. More...
 

Private Attributes

wxWindowm_parentDialog
 

Detailed Description

Base class for plugin configuration panels.

Definition at line 19 of file configurationpanel.h.

Constructor & Destructor Documentation

◆ cbConfigurationPanel()

cbConfigurationPanel::cbConfigurationPanel ( )
inline

Definition at line 22 of file configurationpanel.h.

◆ ~cbConfigurationPanel()

cbConfigurationPanel::~cbConfigurationPanel ( )
inlineoverride

Definition at line 23 of file configurationpanel.h.

Member Function Documentation

◆ cbMessageBox()

int cbConfigurationPanel::cbMessageBox ( const wxString message,
const wxString caption = wxEmptyString,
int  style = wxOK,
wxWindow parent = NULL,
int  x = -1,
int  y = -1 
)
inline

◆ GetBitmapBaseName()

virtual wxString cbConfigurationPanel::GetBitmapBaseName ( ) const
pure virtual
Returns
the panel's bitmap base name. You must supply two bitmaps: <basename>.png and <basename>-off.png...

Implemented in CompilerOptionsDlg, DebuggerOptionsProjectDlg, CCOptionsDlg, and CCOptionsProjectDlg.

Referenced by CompilerSettingsDlg::AddPluginPanels(), EnvironmentSettingsDlg::AddPluginPanels(), and EditorConfigurationDlg::AddPluginPanels().

◆ GetTitle()

virtual wxString cbConfigurationPanel::GetTitle ( ) const
pure virtual

◆ OnApply()

virtual void cbConfigurationPanel::OnApply ( )
pure virtual

◆ OnCancel()

virtual void cbConfigurationPanel::OnCancel ( )
pure virtual

◆ SetParentDialog() [1/2]

void cbConfigurationPanel::SetParentDialog ( wxWindow dialog)
inline

◆ SetParentDialog() [2/2]

wxWindow* cbConfigurationPanel::SetParentDialog ( )
inline

Gets the panel's parent dialog.

Definition at line 40 of file configurationpanel.h.

Member Data Documentation

◆ m_parentDialog

wxWindow* cbConfigurationPanel::m_parentDialog
private

Definition at line 54 of file configurationpanel.h.


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