30 #ifndef TBX_QUESTIONWINDOW_H_ 31 #define TBX_QUESTIONWINDOW_H_ 33 #include "textdisplaywindow.h" 65 std::vector<tbx::Command *> *_commands_to_delete;
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:34
Class to show some text in a window in the centre of the screen, with an icon to the left and one or ...
Definition: textdisplaywindow.h:58
Base class for commands in tbx.
Definition: command.h:36
QuestionWindow(const std::string &question)
Construct a question window with the give question.
Definition: questionwindow.cc:95
void delete_commands()
Delete all commands added when dialog exits.
Definition: questionwindow.cc:123
void add_no_command(tbx::Command *no_command)
Add a command to be run if the no button is selected.
Definition: questionwindow.cc:145
void show_question_as_menu(const std::string &question, const std::string &title, tbx::Command *yes_command, tbx::Command *no_command, bool delete_commands)
Show a question in a window centred in the screen.
Definition: questionwindow.cc:79
void title(const std::string &title)
Set the title for the text display window.
Definition: textdisplaywindow.cc:90
void add_yes_command(tbx::Command *yes_command)
Add a command to be run if the yes button is selected.
Definition: questionwindow.cc:133
void show_question(const std::string &question, const std::string &title, tbx::Command *yes_command, tbx::Command *no_command, bool delete_commands)
Show a question in a window centred in the screen.
Definition: questionwindow.cc:50
Class to show a question in a window in the centre of the screen, resizing the window to fit the ques...
Definition: questionwindow.h:63