sptk2 logo
SPTK Home Page

sptk::CAskDialog Class Reference
[GUI Classes]

A Yes/No dialog box. More...

#include <CMessageDialog.h>

Inheritance diagram for sptk::CAskDialog:

sptk::CDialog sptk::CWindow sptk::CLayoutManager sptk::CWindowShape sptk::CLayoutClient sptk::CInputDialog sptk::CMessageDialog

List of all members.

Public Member Functions

 CAskDialog (const char *label, int w=400)
bool execute (std::string msg)
void icon (Fl_Image *image)

Protected Attributes

CInputm_inputBox
 Input box, optionally shown.


Detailed Description

A Yes/No dialog box.

Creates a dialog with the text or HTML text of question (message) and two buttons (Ok/Cancel)


Constructor & Destructor Documentation

sptk::CAskDialog::CAskDialog ( const char *  label,
int  w = 400 
)

Constructor

Parameters:
label const char *, window caption
w int, window width


Member Function Documentation

bool sptk::CAskDialog::execute ( std::string  msg  ) 

Shows message and waits for the user

Parameters:
msg const char *, message to show

void sptk::CAskDialog::icon ( Fl_Image *  image  )  [inline]

Sets icon for the window

Parameters:
image Fl_Pixmap *, icon to use, suggested size is 48x48 XPM


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

Mon Mar 5 11:56:17 2012: SPTK 3.5.7