|
JG ROOT Tools libraries
version 5.0 - august 2014
|
#include <RGStringRequester.hh>
Public Member Functions | |
| RGStringRequester (const TGWindow *parent, const TGWindow *main, int &result, string &output, const char *title, const char *message, const ULong_t text_align=kLHintsCenterX|kLHintsExpandX, const char *buttons=rDico.brq_ok_cancel.c_str(), const ULong_t opts=0, const bool auto_start=true) | |
| virtual | ~RGStringRequester () |
| virtual void | MapRequester () |
| virtual void | ReturnPressed () |
| virtual void | TabPressed () |
| virtual void | Button (Int_t n) |
| ClassDef (RGStringRequester, 0) | |
Public Member Functions inherited from 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) | |
| 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) | |
Public Member Functions inherited from RGBaseRequester | |
| 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 | 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 | Quit () |
| ClassDef (RGBaseRequester, 0) | |
Protected Member Functions | |
| RGStringRequester (const RGStringRequester &req) | |
Protected Member Functions inherited from RGMessageRequester | |
| RGMessageRequester (const RGMessageRequester &req) | |
Protected Member Functions inherited from RGBaseRequester | |
| RGBaseRequester (const RGBaseRequester &req) | |
| virtual void | Construct () |
Protected Attributes | |
| string * | io_str |
| Pointer on string to get. | |
| TGTextEntry * | w_string_text |
| Text entry widget. | |
Protected Attributes inherited from RGBaseRequester | |
| int * | result_adr |
| Request resul pointer. | |
| string | req_title |
| Request title. | |
| const char * | req_buttons |
| Buttons texts. | |
| UInt_t | options |
| Request options. | |
| ULong_t | req_button_layout |
| Buttons layout. | |
| TGCompositeFrame * | w_widget_frame |
| Frame for widgets. | |
| TGCompositeFrame * | w_buttons_frame |
| Frame for buttons. | |
| TList | buttons_list |
| List of created buttons. | |
| Bool_t | cancel_close |
| Check for close cancellation. | |
Private Member Functions | |
| GObject (RGStringRequester) | |
Additional Inherited Members | |
Static Protected Attributes inherited from RGBaseRequester | |
| static UInt_t | max_width = 1200 |
| Maximum request width. | |
| static UInt_t | max_height = 800 |
| Maximum request height. | |
class RGStringRequester
Request to ask for a text string.
| RGStringRequester::RGStringRequester | ( | const TGWindow * | parent, |
| const TGWindow * | main, | ||
| int & | result, | ||
| string & | output, | ||
| const char * | title, | ||
| const char * | message, | ||
| const ULong_t | text_align = kLHintsCenterX|kLHintsExpandX, |
||
| const char * | buttons = rDico.brq_ok_cancel.c_str(), |
||
| const ULong_t | opts = 0, |
||
| const bool | auto_start = true |
||
| ) |
Constructor.
The selected validation/cancellation button number is returned in the result argument. The string is returned in the output argument (that may contain the initial text string).
| parent | parent window |
| main | main application window |
| result | return value |
| output | result string (and initial value) |
| title | title |
| message | request message |
| text_align | text alignment |
| buttons | buttons texts |
| opts | options |
| auto_start | flag for execution at construction |
References RGBaseRequester::AddFrame(), io_str, RGBaseRequester::Request(), and w_string_text.
|
protected |
Copy constructor, not implemented.
| req | request to copy |
|
virtual |
Destructor.
|
private |
Macro from GCpp library that defines the following functions:
|
virtual |
Function displaying the request, overloaded from base class.
Reimplemented from RGBaseRequester.
References RGBaseRequester::MapRequester(), and w_string_text.
|
virtual |
Slot called when "return" key is pressed in the text entry.
References Button(), and RGBaseRequester::CloseFromButton().
|
virtual |
Slot called when "tab" is pressed in the text entry.
|
virtual |
Overload of base class function, to update the output string.
Reimplemented from RGBaseRequester.
References io_str, RGBaseRequester::ReqButtonClicked(), RGBaseRequester::result_adr, and w_string_text.
Referenced by ReturnPressed().
| RGStringRequester::ClassDef | ( | RGStringRequester | , |
| 0 | |||
| ) |
For ROOT dictionary.