#include <RGMessageRequester.hh>
|
| RGMessageRequester (const TGWindow *parent, const TGWindow *main, int &result, const char *title, const char *message, const ULong_t text_align=kLHintsCenterX|kLHintsExpandX, const char *buttons=rDico.brq_continue.c_str(), const ULong_t opts=0, const bool auto_start=true) |
|
| RGMessageRequester (const TGWindow *parent, const TGWindow *main, const char *title, const char *message, const ULong_t text_align=kLHintsCenterX|kLHintsExpandX, const char *buttons=rDico.brq_continue.c_str(), const ULong_t opts=0, const bool auto_start=false) |
|
virtual | ~RGMessageRequester () |
|
| ClassDef (RGMessageRequester, 0) |
|
| RGBaseRequester (const TGWindow *parent, const TGWindow *main, int &result, const char *title, const char *buttons=rDico.brq_ok_cancel.c_str(), const ULong_t opts=0, const bool auto_start=true) |
|
| RGBaseRequester (const TGWindow *parent, const TGWindow *main, const char *title, const char *buttons=rDico.brq_ok_cancel.c_str(), const ULong_t opts=0, const bool auto_start=false) |
|
virtual | ~RGBaseRequester () |
|
virtual void | MapRequester () |
|
virtual void | Request () |
|
virtual TGCompositeFrame * | GetFrame () const |
|
virtual TGHorizontalFrame * | GetHFrame () const |
|
virtual TGVerticalFrame * | GetVFrame () const |
|
virtual void | AddFrame (TGFrame *f, TGLayoutHints *l=0) |
|
virtual void | CloseFromButton () |
|
virtual void | CancelClose (const Bool_t b=kTRUE) |
|
virtual void | ReqButtonClicked (Int_t n) |
|
virtual void | ProcessedEvent (Event_t *event) |
|
virtual void | Button (Int_t n) |
|
virtual void | Quit () |
|
| ClassDef (RGBaseRequester, 0) |
|
class RGMessageRequester
Requester containing a message, and waiting for a reply from buttons (see RGBaseRequester base class).
The text message may contain several lines, separated with \n. For long texts, the class RGTextMessageRequester should be used.
RGMessageRequester::RGMessageRequester |
( |
const TGWindow * |
parent, |
|
|
const TGWindow * |
main, |
|
|
int & |
result, |
|
|
const char * |
title, |
|
|
const char * |
message, |
|
|
const ULong_t |
text_align = kLHintsCenterX|kLHintsExpandX , |
|
|
const char * |
buttons = rDico.brq_continue.c_str() , |
|
|
const ULong_t |
opts = 0 , |
|
|
const bool |
auto_start = true |
|
) |
| |
Constructor of a message request with a return value (in the result argument variable). The result corresponds to the button used to close the request.
If the auto_start argument is set to false, the resquest is not executed from the constructor (default is true for this constructor).
- Parameters
-
parent | parent window |
main | main application window |
result | return value |
title | title |
message | request message |
buttons | buttons texts |
text_align | text alignment |
opts | options |
auto_start | flag for execution at construction |
References RGBaseRequester::AddFrame(), RGBaseRequester::GetFrame(), and RGBaseRequester::Request().
RGMessageRequester::RGMessageRequester |
( |
const TGWindow * |
parent, |
|
|
const TGWindow * |
main, |
|
|
const char * |
title, |
|
|
const char * |
message, |
|
|
const ULong_t |
text_align = kLHintsCenterX|kLHintsExpandX , |
|
|
const char * |
buttons = rDico.brq_continue.c_str() , |
|
|
const ULong_t |
opts = 0 , |
|
|
const bool |
auto_start = false |
|
) |
| |
Constructor of a message request without return value. For this constructor, the default auto_start argument value is false.
- Parameters
-
parent | parent window |
main | main application window |
title | title |
message | request message |
buttons | buttons texts |
text_align | text alignment |
opts | options |
auto_start | flag for execution at construction |
References RGBaseRequester::AddFrame(), RGBaseRequester::GetFrame(), and RGBaseRequester::Request().
Copy constructor, not implemented.
- Parameters
-
RGMessageRequester::~RGMessageRequester |
( |
| ) |
|
|
virtual |
Macro from GCpp library that defines the following functions:
- ClassName(): return the real class name of the object
- StaticClassName(): return the used class name of the object (that may be a base class of the real object).
- IsInstanceOf<T>(): return true if the current object is an instance of the template class name argument
- Clone(): return an allocated copy of the object.
The documentation for this class was generated from the following files: