JG ROOT Tools libraries
version 5.0 - august 2014
|
#include <RGPadPrintCommand.hh>
Public Member Functions | |
RGPadPrintCommand (TGWindow *p, const UInt_t opts=0) | |
virtual | ~RGPadPrintCommand () |
void | Construct () |
virtual void | MapSubwindows () |
TGTextEntry * | GetPrintCommandWidget () const |
TGNumberEntry * | GetPrintSizeXWidget () const |
TGNumberEntry * | GetPrintSizeYWidget () const |
TGComboBox * | GetPrintOrientationWidget () const |
string | GetPrintCommand () const |
Double_t | GetPrintSizeX () const |
Double_t | GetPrintSizeY () const |
Int_t | GetPrintOrientation () const |
string | GetPrintOptions () const |
string | GetPrintCommand (const string &file_name) const |
virtual void | SetRootStyle () const |
void | SetPrintCommand (const string &cmd) |
void | SetPrintSizeX (const Double_t x) |
void | SetPrintSizeY (const Double_t y) |
void | SetPrintOrientation (const Int_t opt) |
void | Print (const string &file_name) const |
virtual void | CommandChanged (const char *txt) |
virtual void | SizeXChanged (Double_t s) |
virtual void | SizeYChanged (Double_t s) |
virtual void | OrientationSelected (Int_t opt) |
virtual void | PrintCommandTextChanged (const char *txt) |
virtual void | PrintSizeXChanged (const char *txt) |
virtual void | PrintSizeYChanged (const char *txt) |
virtual void | PrintOrientationSelected (Int_t opt) |
ClassDef (RGPadPrintCommand, 0) | |
Protected Attributes | |
UInt_t | options |
Widget options. | |
TGHorizontalFrame * | w_print_cmd_frame |
Frame for printing command. | |
TGTextEntry * | w_print_cmd |
Printing command. | |
TGHorizontalFrame * | w_print_format_frame |
Frame for format. | |
TGNumberEntry * | w_print_size_x |
Paper X size. | |
TGNumberEntry * | w_print_size_y |
Paper Y size. | |
TGComboBox * | w_print_orient |
Page orientation. | |
Private Types | |
enum | PrintOptions { portrait = 0, landscape = 1 } |
! Printing options | |
Private Member Functions | |
GObject (RGPadPrintCommand) | |
RGPadPrintCommand (const RGPadPrintCommand &original) | |
Widget for printing command of a pad, with options:
Widget option bits:
RGPadPrintCommand::RGPadPrintCommand | ( | TGWindow * | p, |
const UInt_t | opts = 0 |
||
) |
|
private |
Copy constructor, not implemented.
original | object to copy |
|
virtual |
Destructor.
|
private |
Macro from GCpp library that defines the following functions:
void RGPadPrintCommand::Construct | ( | ) |
Widget construction: setting sub-widgets.
References options, RDico::pr_cmd_cmd, RDico::pr_cmd_format, RDico::pr_cmd_info, RDico::pr_cmd_orient, RDico::pr_cmd_size_x, RDico::pr_cmd_size_y, rDico, w_print_cmd, w_print_cmd_frame, w_print_format_frame, w_print_orient, w_print_size_x, and w_print_size_y.
Referenced by RGPadPrintCommand().
|
virtual |
Overload of TGFrame function to select display according to options.
References options, and w_print_format_frame.
|
inline |
Get command line widget pointer.
References w_print_cmd.
|
inline |
Get paper X size widget pointer.
References w_print_size_x.
|
inline |
Get paper Y size widget pointer.
References w_print_size_y.
|
inline |
Get paper orientation widget pointer.
References w_print_orient.
|
inline |
Get the printing command (without filename).
References w_print_cmd.
Referenced by RGPrintRequester::Button(), and Print().
|
inline |
|
inline |
|
inline |
string RGPadPrintCommand::GetPrintOptions | ( | ) | const |
Set printing options for file generation from a ROOT pad.
References w_print_orient.
string RGPadPrintCommand::GetPrintCommand | ( | const string & | file_name | ) | const |
Get the printing command with file name. The file name is place where 'f' format is found, or at the end if not specified.
file_name | name of file to print |
References w_print_cmd.
|
virtual |
Function setting ROOT global style (gStyle pointer).
References w_print_size_x, and w_print_size_y.
Referenced by Print().
|
inline |
Set print command line.
cmd | command line |
References w_print_cmd.
Referenced by RGPrintRequester::Construct().
|
inline |
Set paper size X (cm).
x | size |
References w_print_size_x.
Referenced by RGPrintRequester::Construct().
|
inline |
Set paper size Y (cm).
y | size |
References w_print_size_y.
Referenced by RGPrintRequester::Construct().
|
inline |
Set paper orientation (portrait/landscape).
opt | orientation |
References w_print_orient.
Referenced by RGPrintRequester::Construct().
void RGPadPrintCommand::Print | ( | const string & | file_name | ) | const |
Execute the file printing command.
file_name | name of file to print |
References GetPrintCommand(), and SetRootStyle().
|
inlinevirtual |
Signal sent when command line is changed.
Referenced by PrintCommandTextChanged().
|
inlinevirtual |
Signal sent when paper size X is changed.
Referenced by PrintSizeXChanged().
|
inlinevirtual |
Signal sent when paper size Y is changed.
Referenced by PrintSizeYChanged().
|
inlinevirtual |
Signal sent when paper orientation is changed.
Referenced by PrintOrientationSelected().
|
virtual |
Slot called when command line text is changed.
txt | widget text |
References CommandChanged().
|
virtual |
Slot called when paper X size is changed.
txt | widget text |
References SizeXChanged(), and w_print_size_x.
|
virtual |
Slot called when paper Y size is changed.
txt | widget text |
References SizeYChanged(), and w_print_size_y.
|
virtual |
Slot called when paper orientation is changed.
opt | selected element |
References OrientationSelected().
RGPadPrintCommand::ClassDef | ( | RGPadPrintCommand | , |
0 | |||
) |
For ROOT dictionary.