|
JG ROOT Tools libraries
version 5.0 - august 2014
|
#include <RGTextMessageRequester.hh>
Public Member Functions | |
| RGTextMessageRequester (const TGWindow *parent, const TGWindow *main, int &result, const char *title, const char *message, const char *buttons=rDico.brq_done.c_str(), const ULong_t opts=0, const UInt_t wmax=0, const UInt_t hmax=0, const bool auto_start=true) | |
| RGTextMessageRequester (const TGWindow *parent, const TGWindow *main, const char *title, const char *message="", const char *buttons=rDico.brq_done.c_str(), const ULong_t opts=0, const UInt_t wmax=0, const UInt_t hmax=0, const bool auto_start=false) | |
| virtual | ~RGTextMessageRequester () |
| virtual void | Construct () |
| virtual void | SetText (const char *text) |
| virtual void | AddText (const char *text) |
| virtual void | AdjustSize () |
| virtual void | SaveButtonClicked () |
| virtual void | PrintButtonClicked () |
| ClassDef (RGTextMessageRequester, 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 | 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) | |
Static Public Attributes | |
| static string | text_file = "" |
| Default text file name. | |
Protected Member Functions | |
| RGTextMessageRequester (const RGTextMessageRequester &req) | |
Protected Member Functions inherited from RGBaseRequester | |
| RGBaseRequester (const RGBaseRequester &req) | |
Protected Attributes | |
| TGTextView * | w_text_view |
| Text display widget. | |
| TGTextButton * | w_save_button |
| Save to file button. | |
| TGTextButton * | w_print_button |
| Print button. | |
| string | txt_init |
| Texte initial. | |
| UInt_t | txt_max_width |
| Largeur maxi de la zone de texte. | |
| UInt_t | txt_max_height |
| Hauteur maxi de la zone de texte. | |
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 (RGTextMessageRequester) | |
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 RGTextMessageRequester
Request displaying a text message, and getting a button result. This class is different than RGMessageRequester since it uses a TGTextView, to display long texts.
The request may contain two additionnal buttons (that do not close the request):
| RGTextMessageRequester::RGTextMessageRequester | ( | const TGWindow * | parent, |
| const TGWindow * | main, | ||
| int & | result, | ||
| const char * | title, | ||
| const char * | message, | ||
| const char * | buttons = rDico.brq_done.c_str(), |
||
| const ULong_t | opts = 0, |
||
| const UInt_t | wmax = 0, |
||
| const UInt_t | hmax = 0, |
||
| const bool | auto_start = true |
||
| ) |
Constructor with button return value (see RGBaseRequester).
| parent | parent window |
| main | main application window |
| result | return value |
| title | title |
| message | text message |
| buttons | buttons texts |
| opts | options |
| wmax | initial maximum width |
| hmax | initial maximum height |
| auto_start | flag for execution at construction |
References Construct(), RGBaseRequester::Request(), txt_init, txt_max_height, and txt_max_width.
| RGTextMessageRequester::RGTextMessageRequester | ( | const TGWindow * | parent, |
| const TGWindow * | main, | ||
| const char * | title, | ||
| const char * | message = "", |
||
| const char * | buttons = rDico.brq_done.c_str(), |
||
| const ULong_t | opts = 0, |
||
| const UInt_t | wmax = 0, |
||
| const UInt_t | hmax = 0, |
||
| const bool | auto_start = false |
||
| ) |
Constructor without return value (see RGBaseRequester).
| parent | parent window |
| main | main application window |
| title | title |
| message | text message |
| buttons | buttons texts |
| opts | options |
| wmax | initial maximum width |
| hmax | initial maximum height |
| auto_start | flag for execution at construction |
References Construct(), RGBaseRequester::Request(), txt_init, txt_max_height, and txt_max_width.
|
protected |
Copy constructor, not implemented.
| req | request to copy |
|
virtual |
Destructor.
|
private |
Macro from GCpp library that defines the following functions:
|
virtual |
Request construction: add specific widgets to the base class construction.
Reimplemented from RGBaseRequester.
References RGBaseRequester::AddFrame(), AdjustSize(), RGBaseRequester::GetFrame(), RGBaseRequester::options, rDico, RGBaseRequester::req_button_layout, SetText(), RDico::tmrq_print_button, RDico::tmrq_print_button_tip, RDico::tmrq_save_button, RDico::tmrq_save_button_tip, txt_init, RGBaseRequester::w_buttons_frame, w_print_button, w_save_button, and w_text_view.
Referenced by RGTextMessageRequester().
|
virtual |
Replace current text with a new one.
| text | new text |
References w_text_view.
Referenced by Construct().
|
virtual |
|
virtual |
Adjust text area size.
References txt_max_height, txt_max_width, and w_text_view.
Referenced by Construct().
|
virtual |
Slot called by "save" button.
References RDico::brq_continue, RDico::brq_warning, rDico, RSetFileExt(), rTextFileTypes, text_file, RDico::tmrq_file_write_error, and w_text_view.
|
virtual |
Slot called by "print" button.
References RDico::brq_continue, RDico::brq_ok_cancel, RDico::brq_warning, rDico, RDico::tmrq_print_error, RDico::tmrq_print_message, RDico::tmrq_print_title, and w_text_view.
| RGTextMessageRequester::ClassDef | ( | RGTextMessageRequester | , |
| 0 | |||
| ) |
For ROOT dictionary.