#include <BaseDialog.h>
Public Member Functions | |
virtual void | initialiseAndGetHeader (BaseDialog *dialog, char *buffer, size_t bufferSize)=0 |
virtual void | dialogDismissed (ButtonType buttonType)=0 |
virtual bool | dialogButtonPressed (int buttonNum)=0 |
virtual void | copyCustomButtonText (int buttonNumber, char *buffer, size_t bufferSize)=0 |
This class provides a means of controlling a dialog, in terms of what happens when a dialog is presented, when buttons are pressed, the text that should appear on custom buttons, and also when a dialog is dismissed. You can add extra menu items to the dialog during initialiseAndGetHeader(), the button grid positioning will make space for every additional element that you add.
|
pure virtual |
Initialise the dialog and get the text for the header. It is called once during the dialog being shown. If you need to add extra menu items or buttons, this is the place to add them.
dialog | the dialog object |
buffer | the buffer to copy the title to |
bufferSize | the size of the buffer |
Implemented in DialogMultiPartEditor.
|
pure virtual |
Called when the dialog is dismissed, along with with the button type that was pressed
buttonType | the button type that was pressed |
Implemented in DialogMultiPartEditor.
|
pure virtual |
Called when a dialog button is pressed, the button number from 0..N not the button type.
buttonNum | the button number |
Implemented in DialogMultiPartEditor.
|
pure virtual |
Copy the button text for any custom buttons by their button number
buttonNumber | the button number |
buffer | the buffer to copy text into |
bufferSize | the size of the buffer |
Implemented in DialogMultiPartEditor.