1
#ifndef CONFIGURATIONPANEL_H
2
#define CONFIGURATIONPANEL_H
12
/** @brief Base class for plugin configuration panels. */
13
class DLLIMPORT cbConfigurationPanel : public wxPanel
16
cbConfigurationPanel(){}
17
virtual ~cbConfigurationPanel(){}
19
/// @return the panel's title.
20
virtual wxString GetTitle() const = 0;
21
/// @return the panel's bitmap base name. You must supply two bitmaps: <basename>.png and <basename>-off.png...
22
virtual wxString GetBitmapBaseName() const = 0;
23
/// Called when the user chooses to apply the configuration.
24
virtual void OnApply() = 0;
25
/// Called when the user chooses to cancel the configuration.
26
virtual void OnCancel() = 0;
29
/// @brief A simple dialog that wraps a cbConfigurationPanel.
30
class DLLIMPORT cbConfigurationDialog : public wxDialog
33
cbConfigurationDialog(wxWindow* parent, int id, const wxString& title);
34
void AttachConfigurationPanel(cbConfigurationPanel* panel);
35
~cbConfigurationDialog();
37
void EndModal(int retCode);
39
cbConfigurationPanel* m_pPanel;
46
#endif // CONFIGURATIONPANEL_H