#include <questionbox.h>
Inheritance diagram for wftk::QuestionBox:

Public Member Functions | |
| QuestionBox (const std::string &title, const std::string &question, const std::string &border_res_name="dialogbox_frame", const Font &font=Font()) | |
| Create a questionbox. | |
| QuestionBox (const std::string &question) | |
| Create a questionbox, just specifing the question. | |
| void | click (bool) |
| allows the program to trigger the equivalent of a click | |
| bool | getResult () const |
| get the dialog result (true for yes, false for no) | |
Public Attributes | |
| SigC::Signal1< void, bool > | result |
| signal sent with value of click (true for yes, false for no) | |
| wftk::QuestionBox::QuestionBox | ( | const std::string & | title, | |
| const std::string & | question, | |||
| const std::string & | border_res_name = "dialogbox_frame", |
|||
| const Font & | font = Font() | |||
| ) | [inline] |
Create a questionbox.
| title | the title of the questionbox | |
| question | the question the box should ask | |
| border_res_name | std::string containing the name of the ressource to use for the frame. The ressources are
| |
| font | font to use, defaults to Font() |
| wftk::QuestionBox::QuestionBox | ( | const std::string & | question | ) | [inline, explicit] |
Create a questionbox, just specifing the question.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| question | the question the box should ask |
This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.