Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | Related Pages

wftk::QuestionBox Class Reference

Dialog box with question, user answers yes / no. More...

#include <questionbox.h>

Inheritance diagram for wftk::QuestionBox:

wftk::BorderedDialog wftk::Dialog wftk::SingleContainer wftk::Widget wftk::ScreenArea List of all members.

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)


Detailed Description

Dialog box with question, user answers yes / no.


Constructor & Destructor Documentation

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.

Parameters:
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
  • <name>_v for the vertical frames
  • <name>_h for the horizontal frames
  • <name>_edge for the corners
If any of those ressources aren't found, it is left out. Defaults to dialogbox_frame
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.

Parameters:
question the question the box should ask


The documentation for this class was generated from the following files:

Generated Wed Jul 28 17:28:43 2004.
Copyright © 1998-2003 by the respective authors.

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.