#include <BaseDialog.h>
Public Member Functions | |
uint16_t | getBackMenuItemId () |
void | internalSetVisible (bool visible) override |
void | copyIntoBuffer (const char *sz) override |
void | insertMenuItem (MenuItem *item) |
void | copyHeader (char *buffer, int bufferSize) |
char * | getBufferData () override |
TextMenuItem * | getBufferMenuItem () |
![]() | |
BaseDialog () | |
void | setButtons (ButtonType btn1, ButtonType btn2, int defVal=0) |
void | show (const char *headerPgm, bool allowRemote, CompletedHandlerFn completedHandler=NULL) |
void | showRam (const char *headerRam, bool allowRemote, CompletedHandlerFn completedHandler=NULL) |
void | showController (bool allowRemote, BaseDialogController *controller) |
void | setUserData (void *data) |
void | hide () |
bool | isUsingOOController () |
bool | isInUse () |
bool | isCompressedMode () |
void | dialogRendering (unsigned int currentValue, bool userClicked) |
bool | isMenuItemBased () |
bool | isRenderNeeded () |
bool | isRemoteUpdateNeeded (int remote) |
void | setRemoteUpdateNeeded (int remote, bool b) |
void | setRemoteUpdateNeededAll () |
void | clearRemoteUpdateNeededAll () |
void | setRemoteAllowed (bool allowed) |
void | encodeMessage (TagValueRemoteConnector *remote) |
void | remoteAction (ButtonType type) |
bool | copyButtonText (char *data, int buttonNum, int currentValue, bool isActive) |
bool | copyButtonText (char *data, int buttonNum, int currentValue) |
void | actionPerformed (int btnNum) |
Protected Member Functions | |
void | internalRender (int currentValue) override |
void | resetDialogFields () |
![]() | |
void | setInUse (bool b) |
void | setNeedsDrawing (bool b) |
ButtonType | findActiveBtn (unsigned int currentValue) |
void | internalShow (bool allowRemote) |
Additional Inherited Members | ||
![]() | ||
char | header [20] | |
const char * | headerPgm | |
union { | ||
BaseDialogController * | controller | |
CompletedHandlerFn | completedHandler | |
}; | ||
void * | userData | |
ButtonType | button1 | |
ButtonType | button2 | |
uint8_t | lastBtnVal | |
uint16_t | flags | |
MenuRedrawState | needsDrawing | |
This is an extended dialog based on MenuItem's that are presented to the user, you can add additional menu items that go after the message text and before the first dialog button. there will always be either one or two buttons below that content, as a means to dismiss the dialog. The user can also dismiss (equivalent of cancel) by selecting the back menu item.
overriden in other types to handle show and hide differently
Reimplemented from BaseDialog.
Copy text into the buffer, that will be displayed along with the header.
sz | the text to copy |
Reimplemented from BaseDialog.
|
inlineoverridevirtual |
Reimplemented from BaseDialog.
|
inlineoverrideprotectedvirtual |
not used in this implementation
Implements BaseDialog.