29#ifndef NOMLIB_GUI_UIQUESTION_DIALOG_BOX_HPP
30#define NOMLIB_GUI_UIQUESTION_DIALOG_BOX_HPP
35#include "nomlib/config.hpp"
36#include "nomlib/math/Point2.hpp"
37#include "nomlib/math/Size2.hpp"
38#include "nomlib/gui/UIMessageBox.hpp"
50 typedef self_type* raw_ptr;
69 nom::size_type num_responses()
const;
79 std::string response(
int pos )
const;
81 void set_response_id(
const std::string&
id );
82 void set_element_type(
const std::string& type );
88 std::string response_id_;
89 std::string element_type_;
UIMessageBox()
Default constructor; initialize default element IDs.
const std::string & element_type() const
The element tag to use for indexing as a possible response choice (i.e.: button).
UIQuestionDialogBox()
Default constructor; initialize default element IDs.
void set_selection(int pos)
Set the current selection index (position).
std::vector< std::string > responses() const
Get the response element IDs.
const std::string & response_id() const
The ID selector used to search for the number of children; the response elements to index,...
int selection() const
Obtain the current selection index (position) of the responses.
virtual ~UIQuestionDialogBox()
Destructor.
int selection_
Selected item, identified by its index (position).